summaryrefslogtreecommitdiffstats
path: root/include/linux/blk.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/blk.h')
-rw-r--r--include/linux/blk.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/blk.h b/include/linux/blk.h
index eb4d603e7..11db342a3 100644
--- a/include/linux/blk.h
+++ b/include/linux/blk.h
@@ -163,6 +163,14 @@ static void floppy_off(unsigned int nr);
#define DEVICE_INTR do_st
#define DEVICE_NR(device) (MINOR(device) & 0x7f)
+#elif (MAJOR_NR == OSST_MAJOR)
+
+#define DEVICE_NAME "onstream"
+#define DEVICE_INTR do_osst
+#define DEVICE_NR(device) (MINOR(device) & 0x7f)
+#define DEVICE_ON(device)
+#define DEVICE_OFF(device)
+
#elif (MAJOR_NR == SCSI_CDROM_MAJOR)
#define DEVICE_NAME "CD-ROM"
@@ -328,7 +336,7 @@ static void floppy_off(unsigned int nr);
#define DEVICE_OFF(device) do {} while (0)
#endif
-#if (MAJOR_NR != SCSI_TAPE_MAJOR)
+#if (MAJOR_NR != SCSI_TAPE_MAJOR) && (MAJOR_NR != OSST_MAJOR)
#if !defined(IDE_DRIVER)
#ifndef CURRENT