patch-2.1.15 linux/include/linux/blk.h

Next file: linux/include/linux/blkdev.h
Previous file: linux/include/linux/atalk.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.14/linux/include/linux/blk.h linux/include/linux/blk.h
@@ -105,6 +105,9 @@
 void initrd_init(void);
 
 #endif
+#ifdef CONFIG_BLK_DEV_PS2
+extern int ps2esdi_init(void);
+#endif
 
 #define RO_IOCTLS(dev,where) \
   case BLKROSET: { int __val;  if (!suser()) return -EACCES; \
@@ -202,6 +205,14 @@
 #define DEVICE_ON(device)
 #define DEVICE_OFF(device)
 
+#elif (MAJOR_NR == PS2ESDI_MAJOR)
+
+#define DEVICE_NAME "PS/2 ESDI"
+#define DEVICE_REQUEST do_ps2esdi_request
+#define DEVICE_NR(device) (MINOR(device) >> 6)
+#define DEVICE_ON(device)
+#define DEVICE_OFF(device)
+
 #elif (MAJOR_NR == CDU31A_CDROM_MAJOR)
 
 #define DEVICE_NAME "CDU31A"
@@ -412,7 +423,8 @@
 	add_blkdev_randomness(MAJOR(req->rq_dev));
 #endif
 #ifdef IDE_DRIVER
-	blk_dev[MAJOR(req->rq_dev)].current_request = req->next;
+	hwgroup->drive->queue = req->next;
+	blk_dev[MAJOR(req->rq_dev)].current_request = NULL;
 	hwgroup->rq = NULL;
 #else
 	DEVICE_OFF(req->rq_dev);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov