patch-2.0.13 linux/include/linux/major.h
Next file: linux/include/linux/pci.h
Previous file: linux/include/linux/if_strip.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Thu Aug 15 09:54:46 1996
- Orig file:
v2.0.12/linux/include/linux/major.h
- Orig date:
Mon Aug 5 10:13:54 1996
diff -u --recursive --new-file v2.0.12/linux/include/linux/major.h linux/include/linux/major.h
@@ -73,14 +73,12 @@
* Tests for SCSI devices.
*/
-#define SCSI_MAJOR(M) \
+#define SCSI_BLK_MAJOR(M) \
((M) == SCSI_DISK_MAJOR \
- || (M) == SCSI_TAPE_MAJOR \
- || (M) == SCSI_CDROM_MAJOR \
- || (M) == SCSI_GENERIC_MAJOR)
+ || (M) == SCSI_CDROM_MAJOR)
-static inline int scsi_major(int m) {
- return SCSI_MAJOR(m);
+static inline int scsi_blk_major(int m) {
+ return SCSI_BLK_MAJOR(m);
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov