patch-2.3.32 linux/drivers/block/DAC960.c
Next file: linux/drivers/block/DAC960.h
Previous file: linux/drivers/ap1000/ddv.c
Back to the patch index
Back to the overall index
- Lines: 110
- Date:
Sun Dec 12 23:02:23 1999
- Orig file:
v2.3.31/linux/drivers/block/DAC960.c
- Orig date:
Tue Dec 7 09:32:42 1999
diff -u --recursive --new-file v2.3.31/linux/drivers/block/DAC960.c linux/drivers/block/DAC960.c
@@ -1026,7 +1026,7 @@
static boolean DAC960_RegisterBlockDevice(DAC960_Controller_T *Controller)
{
- static void (*RequestFunctions[DAC960_MaxControllers])(void) =
+ static void (*RequestFunctions[DAC960_MaxControllers])(request_queue_t *) =
{ DAC960_RequestFunction0, DAC960_RequestFunction1,
DAC960_RequestFunction2, DAC960_RequestFunction3,
DAC960_RequestFunction4, DAC960_RequestFunction5,
@@ -1046,8 +1046,8 @@
/*
Initialize the I/O Request Function.
*/
- blk_dev[MajorNumber].request_fn =
- RequestFunctions[Controller->ControllerNumber];
+ blk_init_queue(BLK_DEFAULT_QUEUE(MajorNumber),
+ RequestFunctions[Controller->ControllerNumber]);
/*
Initialize the Disk Partitions array, Partition Sizes array, Block Sizes
array, Max Sectors per Request array, and Max Segments per Request array.
@@ -1113,7 +1113,7 @@
/*
Remove the I/O Request Function.
*/
- blk_dev[MajorNumber].request_fn = NULL;
+ blk_cleanup_queue(BLK_DEFAULT_QUEUE(MajorNumber));
/*
Remove the Disk Partitions array, Partition Sizes array, Block Sizes
array, Max Sectors per Request array, and Max Segments per Request array.
@@ -1272,7 +1272,7 @@
boolean WaitForCommand)
{
IO_Request_T **RequestQueuePointer =
- &blk_dev[DAC960_MAJOR + Controller->ControllerNumber].current_request;
+ &blk_dev[DAC960_MAJOR + Controller->ControllerNumber].request_queue.current_request;
IO_Request_T *Request;
DAC960_Command_T *Command;
char *RequestBuffer;
@@ -1375,7 +1375,7 @@
DAC960_RequestFunction0 is the I/O Request Function for DAC960 Controller 0.
*/
-static void DAC960_RequestFunction0(void)
+static void DAC960_RequestFunction0(request_queue_t * q)
{
DAC960_Controller_T *Controller = DAC960_Controllers[0];
ProcessorFlags_T ProcessorFlags;
@@ -1398,7 +1398,7 @@
DAC960_RequestFunction1 is the I/O Request Function for DAC960 Controller 1.
*/
-static void DAC960_RequestFunction1(void)
+static void DAC960_RequestFunction1(request_queue_t * q)
{
DAC960_Controller_T *Controller = DAC960_Controllers[1];
ProcessorFlags_T ProcessorFlags;
@@ -1421,7 +1421,7 @@
DAC960_RequestFunction2 is the I/O Request Function for DAC960 Controller 2.
*/
-static void DAC960_RequestFunction2(void)
+static void DAC960_RequestFunction2(request_queue_t * q)
{
DAC960_Controller_T *Controller = DAC960_Controllers[2];
ProcessorFlags_T ProcessorFlags;
@@ -1444,7 +1444,7 @@
DAC960_RequestFunction3 is the I/O Request Function for DAC960 Controller 3.
*/
-static void DAC960_RequestFunction3(void)
+static void DAC960_RequestFunction3(request_queue_t * q)
{
DAC960_Controller_T *Controller = DAC960_Controllers[3];
ProcessorFlags_T ProcessorFlags;
@@ -1467,7 +1467,7 @@
DAC960_RequestFunction4 is the I/O Request Function for DAC960 Controller 4.
*/
-static void DAC960_RequestFunction4(void)
+static void DAC960_RequestFunction4(request_queue_t * q)
{
DAC960_Controller_T *Controller = DAC960_Controllers[4];
ProcessorFlags_T ProcessorFlags;
@@ -1490,7 +1490,7 @@
DAC960_RequestFunction5 is the I/O Request Function for DAC960 Controller 5.
*/
-static void DAC960_RequestFunction5(void)
+static void DAC960_RequestFunction5(request_queue_t * q)
{
DAC960_Controller_T *Controller = DAC960_Controllers[5];
ProcessorFlags_T ProcessorFlags;
@@ -1513,7 +1513,7 @@
DAC960_RequestFunction6 is the I/O Request Function for DAC960 Controller 6.
*/
-static void DAC960_RequestFunction6(void)
+static void DAC960_RequestFunction6(request_queue_t * q)
{
DAC960_Controller_T *Controller = DAC960_Controllers[6];
ProcessorFlags_T ProcessorFlags;
@@ -1536,7 +1536,7 @@
DAC960_RequestFunction7 is the I/O Request Function for DAC960 Controller 7.
*/
-static void DAC960_RequestFunction7(void)
+static void DAC960_RequestFunction7(request_queue_t * q)
{
DAC960_Controller_T *Controller = DAC960_Controllers[7];
ProcessorFlags_T ProcessorFlags;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)