patch-2.4.9 linux/include/linux/major.h
Next file: linux/include/linux/mtd/cfi.h
Previous file: linux/include/linux/lvm.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Sun Aug 12 11:13:59 2001
- Orig file:
v2.4.8/linux/include/linux/major.h
- Orig date:
Thu Apr 12 12:20:31 2001
diff -u --recursive --new-file v2.4.8/linux/include/linux/major.h linux/include/linux/major.h
@@ -176,4 +176,18 @@
return SCSI_BLK_MAJOR(m);
}
+/*
+ * Tests for IDE devices
+ */
+#define IDE_DISK_MAJOR(M) ((M) == IDE0_MAJOR || (M) == IDE1_MAJOR || \
+ (M) == IDE2_MAJOR || (M) == IDE3_MAJOR || \
+ (M) == IDE4_MAJOR || (M) == IDE5_MAJOR || \
+ (M) == IDE6_MAJOR || (M) == IDE7_MAJOR || \
+ (M) == IDE8_MAJOR || (M) == IDE9_MAJOR)
+
+static __inline__ int ide_blk_major(int m)
+{
+ return IDE_DISK_MAJOR(m);
+}
+
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)