diff options
author | Henrik Kretzschmar <henne@nachtwindheim.de> | 2006-09-15 12:50:34 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-09-26 12:23:17 -0400 |
commit | d7694f8c0bb61829b1bd4d5543a51c66f04a6c3e (patch) | |
tree | 465aa9f213226af84f08ad3ca2bb6ed50fdc1436 /drivers/scsi/seagate.c | |
parent | 15d1f53fc7654d62af7e9b23049ae3b71f5b161c (diff) |
[SCSI] seagate: remove header and convert to struct scsi_cmnd
Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/seagate.c')
-rw-r--r-- | drivers/scsi/seagate.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/scsi/seagate.c b/drivers/scsi/seagate.c index 2679ea8bff1a..e8f146d361c6 100644 --- a/drivers/scsi/seagate.c +++ b/drivers/scsi/seagate.c | |||
@@ -106,7 +106,6 @@ | |||
106 | #include "scsi.h" | 106 | #include "scsi.h" |
107 | #include <scsi/scsi_dbg.h> | 107 | #include <scsi/scsi_dbg.h> |
108 | #include <scsi/scsi_host.h> | 108 | #include <scsi/scsi_host.h> |
109 | #include "seagate.h" | ||
110 | 109 | ||
111 | #include <scsi/scsi_ioctl.h> | 110 | #include <scsi/scsi_ioctl.h> |
112 | 111 | ||
@@ -322,6 +321,7 @@ static Signature __initdata signatures[] = { | |||
322 | static int hostno = -1; | 321 | static int hostno = -1; |
323 | static void seagate_reconnect_intr (int, void *, struct pt_regs *); | 322 | static void seagate_reconnect_intr (int, void *, struct pt_regs *); |
324 | static irqreturn_t do_seagate_reconnect_intr (int, void *, struct pt_regs *); | 323 | static irqreturn_t do_seagate_reconnect_intr (int, void *, struct pt_regs *); |
324 | static int seagate_st0x_bus_reset(struct scsi_cmnd *); | ||
325 | 325 | ||
326 | #ifdef FAST | 326 | #ifdef FAST |
327 | static int fast = 1; | 327 | static int fast = 1; |
@@ -585,8 +585,8 @@ static int linked_connected = 0; | |||
585 | static unsigned char linked_target, linked_lun; | 585 | static unsigned char linked_target, linked_lun; |
586 | #endif | 586 | #endif |
587 | 587 | ||
588 | static void (*done_fn) (Scsi_Cmnd *) = NULL; | 588 | static void (*done_fn) (struct scsi_cmnd *) = NULL; |
589 | static Scsi_Cmnd *SCint = NULL; | 589 | static struct scsi_cmnd *SCint = NULL; |
590 | 590 | ||
591 | /* | 591 | /* |
592 | * These control whether or not disconnect / reconnect will be attempted, | 592 | * These control whether or not disconnect / reconnect will be attempted, |
@@ -633,7 +633,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) | 633 | static void seagate_reconnect_intr (int irq, void *dev_id, struct pt_regs *regs) |
634 | { | 634 | { |
635 | int temp; | 635 | int temp; |
636 | Scsi_Cmnd *SCtmp; | 636 | struct scsi_cmnd *SCtmp; |
637 | 637 | ||
638 | DPRINTK (PHASE_RESELECT, "scsi%d : seagate_reconnect_intr() called\n", hostno); | 638 | DPRINTK (PHASE_RESELECT, "scsi%d : seagate_reconnect_intr() called\n", hostno); |
639 | 639 | ||
@@ -675,10 +675,11 @@ static void seagate_reconnect_intr (int irq, void *dev_id, struct pt_regs *regs) | |||
675 | 675 | ||
676 | static int recursion_depth = 0; | 676 | static int recursion_depth = 0; |
677 | 677 | ||
678 | static int seagate_st0x_queue_command (Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *)) | 678 | static int seagate_st0x_queue_command(struct scsi_cmnd * SCpnt, |
679 | void (*done) (struct scsi_cmnd *)) | ||
679 | { | 680 | { |
680 | int result, reconnect; | 681 | int result, reconnect; |
681 | Scsi_Cmnd *SCtmp; | 682 | struct scsi_cmnd *SCtmp; |
682 | 683 | ||
683 | DANY ("seagate: que_command"); | 684 | DANY ("seagate: que_command"); |
684 | done_fn = done; | 685 | done_fn = done; |
@@ -1609,7 +1610,7 @@ connect_loop: | |||
1609 | return retcode (st0x_aborted); | 1610 | return retcode (st0x_aborted); |
1610 | } /* end of internal_command */ | 1611 | } /* end of internal_command */ |
1611 | 1612 | ||
1612 | static int seagate_st0x_abort (Scsi_Cmnd * SCpnt) | 1613 | static int seagate_st0x_abort(struct scsi_cmnd * SCpnt) |
1613 | { | 1614 | { |
1614 | st0x_aborted = DID_ABORT; | 1615 | st0x_aborted = DID_ABORT; |
1615 | return SUCCESS; | 1616 | return SUCCESS; |
@@ -1624,7 +1625,7 @@ static int seagate_st0x_abort (Scsi_Cmnd * SCpnt) | |||
1624 | * May be called with SCpnt = NULL | 1625 | * May be called with SCpnt = NULL |
1625 | */ | 1626 | */ |
1626 | 1627 | ||
1627 | static int seagate_st0x_bus_reset(Scsi_Cmnd * SCpnt) | 1628 | static int seagate_st0x_bus_reset(struct scsi_cmnd * SCpnt) |
1628 | { | 1629 | { |
1629 | /* No timeouts - this command is going to fail because it was reset. */ | 1630 | /* No timeouts - this command is going to fail because it was reset. */ |
1630 | DANY ("scsi%d: Reseting bus... ", hostno); | 1631 | DANY ("scsi%d: Reseting bus... ", hostno); |