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 | |
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>
-rw-r--r-- | drivers/scsi/Kconfig | 4 | ||||
-rw-r--r-- | drivers/scsi/seagate.c | 17 | ||||
-rw-r--r-- | drivers/scsi/seagate.h | 19 |
3 files changed, 11 insertions, 29 deletions
diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig index c4dfcc91ddd..d76c8697913 100644 --- a/drivers/scsi/Kconfig +++ b/drivers/scsi/Kconfig | |||
@@ -1260,8 +1260,8 @@ config SCSI_SEAGATE | |||
1260 | These are 8-bit SCSI controllers; the ST-01 is also supported by | 1260 | These are 8-bit SCSI controllers; the ST-01 is also supported by |
1261 | this driver. It is explained in section 3.9 of the SCSI-HOWTO, | 1261 | this driver. It is explained in section 3.9 of the SCSI-HOWTO, |
1262 | available from <http://www.tldp.org/docs.html#howto>. If it | 1262 | available from <http://www.tldp.org/docs.html#howto>. If it |
1263 | doesn't work out of the box, you may have to change some settings in | 1263 | doesn't work out of the box, you may have to change some macros at |
1264 | <file:drivers/scsi/seagate.h>. | 1264 | compiletime, which are described in <file:drivers/scsi/seagate.c>. |
1265 | 1265 | ||
1266 | To compile this driver as a module, choose M here: the | 1266 | To compile this driver as a module, choose M here: the |
1267 | module will be called seagate. | 1267 | module will be called seagate. |
diff --git a/drivers/scsi/seagate.c b/drivers/scsi/seagate.c index 2679ea8bff1..e8f146d361c 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); |
diff --git a/drivers/scsi/seagate.h b/drivers/scsi/seagate.h deleted file mode 100644 index fb5f380fa4b..00000000000 --- a/drivers/scsi/seagate.h +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /* | ||
2 | * seagate.h Copyright (C) 1992 Drew Eckhardt | ||
3 | * low level scsi driver header for ST01/ST02 by | ||
4 | * Drew Eckhardt | ||
5 | * | ||
6 | * <drew@colorado.edu> | ||
7 | */ | ||
8 | |||
9 | #ifndef _SEAGATE_H | ||
10 | #define SEAGATE_H | ||
11 | |||
12 | static int seagate_st0x_detect(struct scsi_host_template *); | ||
13 | static int seagate_st0x_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); | ||
14 | |||
15 | static int seagate_st0x_abort(Scsi_Cmnd *); | ||
16 | static const char *seagate_st0x_info(struct Scsi_Host *); | ||
17 | static int seagate_st0x_bus_reset(Scsi_Cmnd *); | ||
18 | |||
19 | #endif /* _SEAGATE_H */ | ||