diff options
Diffstat (limited to 'drivers/scsi/seagate.c')
-rw-r--r-- | drivers/scsi/seagate.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/drivers/scsi/seagate.c b/drivers/scsi/seagate.c index 2679ea8bff1a..4e6666ceae26 100644 --- a/drivers/scsi/seagate.c +++ b/drivers/scsi/seagate.c | |||
@@ -94,7 +94,6 @@ | |||
94 | #include <linux/string.h> | 94 | #include <linux/string.h> |
95 | #include <linux/proc_fs.h> | 95 | #include <linux/proc_fs.h> |
96 | #include <linux/init.h> | 96 | #include <linux/init.h> |
97 | #include <linux/delay.h> | ||
98 | #include <linux/blkdev.h> | 97 | #include <linux/blkdev.h> |
99 | #include <linux/stat.h> | 98 | #include <linux/stat.h> |
100 | #include <linux/delay.h> | 99 | #include <linux/delay.h> |
@@ -103,12 +102,13 @@ | |||
103 | #include <asm/system.h> | 102 | #include <asm/system.h> |
104 | #include <asm/uaccess.h> | 103 | #include <asm/uaccess.h> |
105 | 104 | ||
106 | #include "scsi.h" | 105 | #include <scsi/scsi_cmnd.h> |
106 | #include <scsi/scsi_device.h> | ||
107 | #include <scsi/scsi.h> | ||
108 | |||
107 | #include <scsi/scsi_dbg.h> | 109 | #include <scsi/scsi_dbg.h> |
108 | #include <scsi/scsi_host.h> | 110 | #include <scsi/scsi_host.h> |
109 | #include "seagate.h" | ||
110 | 111 | ||
111 | #include <scsi/scsi_ioctl.h> | ||
112 | 112 | ||
113 | #ifdef DEBUG | 113 | #ifdef DEBUG |
114 | #define DPRINTK( when, msg... ) do { if ( (DEBUG & (when)) == (when) ) printk( msg ); } while (0) | 114 | #define DPRINTK( when, msg... ) do { if ( (DEBUG & (when)) == (when) ) printk( msg ); } while (0) |
@@ -322,6 +322,7 @@ static Signature __initdata signatures[] = { | |||
322 | static int hostno = -1; | 322 | static int hostno = -1; |
323 | static void seagate_reconnect_intr (int, void *, struct pt_regs *); | 323 | static void seagate_reconnect_intr (int, void *, struct pt_regs *); |
324 | static irqreturn_t do_seagate_reconnect_intr (int, void *, struct pt_regs *); | 324 | static irqreturn_t do_seagate_reconnect_intr (int, void *, struct pt_regs *); |
325 | static int seagate_st0x_bus_reset(struct scsi_cmnd *); | ||
325 | 326 | ||
326 | #ifdef FAST | 327 | #ifdef FAST |
327 | static int fast = 1; | 328 | static int fast = 1; |
@@ -585,8 +586,8 @@ static int linked_connected = 0; | |||
585 | static unsigned char linked_target, linked_lun; | 586 | static unsigned char linked_target, linked_lun; |
586 | #endif | 587 | #endif |
587 | 588 | ||
588 | static void (*done_fn) (Scsi_Cmnd *) = NULL; | 589 | static void (*done_fn) (struct scsi_cmnd *) = NULL; |
589 | static Scsi_Cmnd *SCint = NULL; | 590 | static struct scsi_cmnd *SCint = NULL; |
590 | 591 | ||
591 | /* | 592 | /* |
592 | * These control whether or not disconnect / reconnect will be attempted, | 593 | * These control whether or not disconnect / reconnect will be attempted, |
@@ -633,7 +634,7 @@ static irqreturn_t do_seagate_reconnect_intr(int irq, void *dev_id, | |||
633 | static void seagate_reconnect_intr (int irq, void *dev_id, struct pt_regs *regs) | 634 | static void seagate_reconnect_intr (int irq, void *dev_id, struct pt_regs *regs) |
634 | { | 635 | { |
635 | int temp; | 636 | int temp; |
636 | Scsi_Cmnd *SCtmp; | 637 | struct scsi_cmnd *SCtmp; |
637 | 638 | ||
638 | DPRINTK (PHASE_RESELECT, "scsi%d : seagate_reconnect_intr() called\n", hostno); | 639 | DPRINTK (PHASE_RESELECT, "scsi%d : seagate_reconnect_intr() called\n", hostno); |
639 | 640 | ||
@@ -675,10 +676,11 @@ static void seagate_reconnect_intr (int irq, void *dev_id, struct pt_regs *regs) | |||
675 | 676 | ||
676 | static int recursion_depth = 0; | 677 | static int recursion_depth = 0; |
677 | 678 | ||
678 | static int seagate_st0x_queue_command (Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *)) | 679 | static int seagate_st0x_queue_command(struct scsi_cmnd * SCpnt, |
680 | void (*done) (struct scsi_cmnd *)) | ||
679 | { | 681 | { |
680 | int result, reconnect; | 682 | int result, reconnect; |
681 | Scsi_Cmnd *SCtmp; | 683 | struct scsi_cmnd *SCtmp; |
682 | 684 | ||
683 | DANY ("seagate: que_command"); | 685 | DANY ("seagate: que_command"); |
684 | done_fn = done; | 686 | done_fn = done; |
@@ -1609,7 +1611,7 @@ connect_loop: | |||
1609 | return retcode (st0x_aborted); | 1611 | return retcode (st0x_aborted); |
1610 | } /* end of internal_command */ | 1612 | } /* end of internal_command */ |
1611 | 1613 | ||
1612 | static int seagate_st0x_abort (Scsi_Cmnd * SCpnt) | 1614 | static int seagate_st0x_abort(struct scsi_cmnd * SCpnt) |
1613 | { | 1615 | { |
1614 | st0x_aborted = DID_ABORT; | 1616 | st0x_aborted = DID_ABORT; |
1615 | return SUCCESS; | 1617 | return SUCCESS; |
@@ -1624,7 +1626,7 @@ static int seagate_st0x_abort (Scsi_Cmnd * SCpnt) | |||
1624 | * May be called with SCpnt = NULL | 1626 | * May be called with SCpnt = NULL |
1625 | */ | 1627 | */ |
1626 | 1628 | ||
1627 | static int seagate_st0x_bus_reset(Scsi_Cmnd * SCpnt) | 1629 | static int seagate_st0x_bus_reset(struct scsi_cmnd * SCpnt) |
1628 | { | 1630 | { |
1629 | /* No timeouts - this command is going to fail because it was reset. */ | 1631 | /* No timeouts - this command is going to fail because it was reset. */ |
1630 | DANY ("scsi%d: Reseting bus... ", hostno); | 1632 | DANY ("scsi%d: Reseting bus... ", hostno); |