patch-2.3.16 linux/include/linux/blk.h
Next file: linux/include/linux/blkdev.h
Previous file: linux/include/linux/bigmem.h
Back to the patch index
Back to the overall index
- Lines: 63
- Date:
Tue Aug 31 16:13:53 1999
- Orig file:
v2.3.15/linux/include/linux/blk.h
- Orig date:
Wed Aug 18 16:44:16 1999
diff -u --recursive --new-file v2.3.15/linux/include/linux/blk.h linux/include/linux/blk.h
@@ -19,7 +19,7 @@
* NOTE that writes may use only the low 2/3 of these: reads
* take precedence.
*/
-#define NR_REQUEST 64
+#define NR_REQUEST 128
/*
* This is used in the elevator algorithm. We don't prioritise reads
@@ -86,6 +86,19 @@
#endif
+/*
+ * end_request() and friends. Must be called with the request queue spinlock
+ * acquired. All functions called within end_request() _must_be_ atomic.
+ *
+ * Several drivers define their own end_request and call
+ * end_that_request_first() and end_that_request_last()
+ * for parts of the original function. This prevents
+ * code duplication in drivers.
+ */
+
+int end_that_request_first(struct request *req, int uptodate, char *name);
+void end_that_request_last(struct request *req);
+
#if defined(MAJOR_NR) || defined(IDE_DRIVER)
/*
@@ -359,6 +372,15 @@
#define DEVICE_ON(device)
#define DEVICE_OFF(device)
+#elif (MAJOR_NR == COMPAQ_SMART2_MAJOR)
+
+#define DEVICE_NAME "ida"
+#define TIMEOUT_VALUE (25*HZ)
+#define DEVICE_REQUEST do_ida_request0
+#define DEVICE_NR(device) (MINOR(device) >> 4)
+#define DEVICE_ON(device)
+#define DEVICE_OFF(device)
+
#endif /* MAJOR_NR == whatever */
#if (MAJOR_NR != SCSI_TAPE_MAJOR)
@@ -421,17 +443,6 @@
#endif /* !defined(IDE_DRIVER) */
-/*
- * end_request() and friends. Must be called with the request queue spinlock
- * acquired. All functions called within end_request() _must_be_ atomic.
- *
- * Several drivers define their own end_request and call end_that_request_first()
- * and end_that_request_last() for parts of the original function. This prevents
- * code duplication in drivers.
- */
-
-int end_that_request_first(struct request *req, int uptodate, char *name);
-void end_that_request_last(struct request *req);
#ifndef LOCAL_END_REQUEST /* If we have our own end_request, we do not want to include this mess */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)