aboutsummaryrefslogtreecommitdiffstats
path: root/xenolinux-2.4.21-pre4-sparse/include/linux/blk.h
diff options
context:
space:
mode:
Diffstat (limited to 'xenolinux-2.4.21-pre4-sparse/include/linux/blk.h')
-rw-r--r--xenolinux-2.4.21-pre4-sparse/include/linux/blk.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xenolinux-2.4.21-pre4-sparse/include/linux/blk.h b/xenolinux-2.4.21-pre4-sparse/include/linux/blk.h
index 0be65ab99d..e7fa201955 100644
--- a/xenolinux-2.4.21-pre4-sparse/include/linux/blk.h
+++ b/xenolinux-2.4.21-pre4-sparse/include/linux/blk.h
@@ -328,6 +328,13 @@ static void floppy_off(unsigned int nr);
/* #define DEVICE_INTR */
#define DEVICE_NR(device) (MINOR(device))
+#elif (MAJOR_NR == XLSEG_MAJOR)
+
+#define DEVICE_NAME "xeno segment"
+#define DEVICE_REQUEST do_xlseg_request
+/* #define DEVICE_INTR */
+#define DEVICE_NR(device) (MINOR(device))
+
#endif /* MAJOR_NR == whatever */
/* provide DEVICE_xxx defaults, if not explicitly defined