aboutsummaryrefslogtreecommitdiffstats
path: root/xenolinux-2.4.21-pre4-sparse/include/linux/blk.h
diff options
context:
space:
mode:
authorach61@labyrinth.cl.cam.ac.uk <ach61@labyrinth.cl.cam.ac.uk>2003-03-06 15:52:22 +0000
committerach61@labyrinth.cl.cam.ac.uk <ach61@labyrinth.cl.cam.ac.uk>2003-03-06 15:52:22 +0000
commit454a736db481ae4527360d5630ca9cd4148567c9 (patch)
treed80087eb7811b798b3d695f36bb292baaa2140bb /xenolinux-2.4.21-pre4-sparse/include/linux/blk.h
parentf3c8dfc6270a0d4ac5f81d64b59a42623e45f82e (diff)
downloadxen-454a736db481ae4527360d5630ca9cd4148567c9.tar.gz
xen-454a736db481ae4527360d5630ca9cd4148567c9.tar.bz2
xen-454a736db481ae4527360d5630ca9cd4148567c9.zip
bitkeeper revision 1.108 (3e676eb6Jy0anfrUlVCNnVZnDDSlQg)
virtual block device support
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