Skip to content

Commit 667c667

Browse files
HenneJames Bottomley
authored andcommitted
[SCSI] scsi: t128 scsi_cmnd convertion
Changes the obsolete Scsi_Cmnd to struct scsi_cmnd and remove the trailing whitespaces. Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent 297295a commit 667c667

1 file changed

Lines changed: 20 additions & 19 deletions

File tree

‎drivers/scsi/t128.h‎

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
* drew@colorado.edu
99
* +1 (303) 440-4894
1010
*
11-
* DISTRIBUTION RELEASE 3.
11+
* DISTRIBUTION RELEASE 3.
1212
*
13-
* For more information, please consult
13+
* For more information, please consult
1414
*
1515
* Trantor Systems, Ltd.
1616
* T128/T128F/T228 SCSI Host Adapter
1717
* Hardware Specifications
18-
*
19-
* Trantor Systems, Ltd.
18+
*
19+
* Trantor Systems, Ltd.
2020
* 5415 Randall Place
2121
* Fremont, CA 94538
2222
* 1+ (415) 770-1400, FAX 1+ (415) 770-9910
23-
*
24-
* and
23+
*
24+
* and
2525
*
2626
* NCR 5380 Family
2727
* SCSI Protocol Controller
@@ -48,15 +48,15 @@
4848
#define TDEBUG_TRANSFER 0x2
4949

5050
/*
51-
* The trantor boards are memory mapped. They use an NCR5380 or
51+
* The trantor boards are memory mapped. They use an NCR5380 or
5252
* equivalent (my sample board had part second sourced from ZILOG).
53-
* NCR's recommended "Pseudo-DMA" architecture is used, where
53+
* NCR's recommended "Pseudo-DMA" architecture is used, where
5454
* a PAL drives the DMA signals on the 5380 allowing fast, blind
55-
* transfers with proper handshaking.
55+
* transfers with proper handshaking.
5656
*/
5757

5858
/*
59-
* Note : a boot switch is provided for the purpose of informing the
59+
* Note : a boot switch is provided for the purpose of informing the
6060
* firmware to boot or not boot from attached SCSI devices. So, I imagine
6161
* there are fewer people who've yanked the ROM like they do on the Seagate
6262
* to make bootup faster, and I'll probably use this for autodetection.
@@ -92,19 +92,20 @@
9292
#define T_DATA_REG_OFFSET 0x1e00 /* rw 512 bytes long */
9393

9494
#ifndef ASM
95-
static int t128_abort(Scsi_Cmnd *);
95+
static int t128_abort(struct scsi_cmnd *);
9696
static int t128_biosparam(struct scsi_device *, struct block_device *,
9797
sector_t, int*);
9898
static int t128_detect(struct scsi_host_template *);
99-
static int t128_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
100-
static int t128_bus_reset(Scsi_Cmnd *);
99+
static int t128_queue_command(struct scsi_cmnd *,
100+
void (*done)(struct scsi_cmnd *));
101+
static int t128_bus_reset(struct scsi_cmnd *);
101102

102103
#ifndef CMD_PER_LUN
103104
#define CMD_PER_LUN 2
104105
#endif
105106

106107
#ifndef CAN_QUEUE
107-
#define CAN_QUEUE 32
108+
#define CAN_QUEUE 32
108109
#endif
109110

110111
#ifndef HOSTS_C
@@ -120,7 +121,7 @@ static int t128_bus_reset(Scsi_Cmnd *);
120121

121122
#define T128_address(reg) (base + T_5380_OFFSET + ((reg) * 0x20))
122123

123-
#if !(TDEBUG & TDEBUG_TRANSFER)
124+
#if !(TDEBUG & TDEBUG_TRANSFER)
124125
#define NCR5380_read(reg) readb(T128_address(reg))
125126
#define NCR5380_write(reg, value) writeb((value),(T128_address(reg)))
126127
#else
@@ -129,7 +130,7 @@ static int t128_bus_reset(Scsi_Cmnd *);
129130
, instance->hostno, (reg), T128_address(reg))), readb(T128_address(reg)))
130131

131132
#define NCR5380_write(reg, value) { \
132-
printk("scsi%d : write %02x to register %d at address %08x\n", \
133+
printk("scsi%d : write %02x to register %d at address %08x\n", \
133134
instance->hostno, (value), (reg), T128_address(reg)); \
134135
writeb((value), (T128_address(reg))); \
135136
}
@@ -142,10 +143,10 @@ static int t128_bus_reset(Scsi_Cmnd *);
142143
#define NCR5380_bus_reset t128_bus_reset
143144
#define NCR5380_proc_info t128_proc_info
144145

145-
/* 15 14 12 10 7 5 3
146+
/* 15 14 12 10 7 5 3
146147
1101 0100 1010 1000 */
147-
148-
#define T128_IRQS 0xc4a8
148+
149+
#define T128_IRQS 0xc4a8
149150

150151
#endif /* else def HOSTS_C */
151152
#endif /* ndef ASM */

0 commit comments

Comments
 (0)