Skip to content

Commit a8cfbca

Browse files
Ondrej Zarymartinkpetersen
authored andcommitted
scsi: g_NCR5380: Stop using scsi_module.c
Convert g_NCR5380 to use scsi_add_host instead of scsi_module.c Use pnp_driver and isa_driver to manage cards. In order to support multiple cards, new module parameter format is introduced. The old parameters are kept for compatibility. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Acked-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent d91f5af commit a8cfbca

File tree

3 files changed

+215
-152
lines changed

3 files changed

+215
-152
lines changed

Documentation/scsi/g_NCR5380.txt

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ time. More info to come in the future.
2828
This driver works as a module.
2929
When included as a module, parameters can be passed on the insmod/modprobe
3030
command line:
31+
irq=xx[,...] the interrupt(s)
32+
base=xx[,...] the port or base address(es) (for port or memory mapped, resp.)
33+
card=xx[,...] card type(s):
34+
0 = NCR5380,
35+
1 = NCR53C400,
36+
2 = NCR53C400A,
37+
3 = Domex Technology Corp 3181E (DTC3181E)
38+
4 = Hewlett Packard C2502
39+
40+
These old-style parameters can support only one card:
3141
ncr_irq=xx the interrupt
3242
ncr_addr=xx the port or base address (for port or memory
3343
mapped, resp.)
@@ -36,11 +46,19 @@ command line:
3646
ncr_53c400a=1 to set up for a NCR53C400A board
3747
dtc_3181e=1 to set up for a Domex Technology Corp 3181E board
3848
hp_c2502=1 to set up for a Hewlett Packard C2502 board
49+
3950
e.g.
40-
modprobe g_NCR5380 ncr_irq=5 ncr_addr=0x350 ncr_5380=1
51+
OLD: modprobe g_NCR5380 ncr_irq=5 ncr_addr=0x350 ncr_5380=1
52+
NEW: modprobe g_NCR5380 irq=5 base=0x350 card=0
4153
for a port mapped NCR5380 board or
42-
modprobe g_NCR5380 ncr_irq=255 ncr_addr=0xc8000 ncr_53c400=1
43-
for a memory mapped NCR53C400 board with interrupts disabled.
54+
55+
OLD: modprobe g_NCR5380 ncr_irq=255 ncr_addr=0xc8000 ncr_53c400=1
56+
NEW: modprobe g_NCR5380 irq=255 base=0xc8000 card=1
57+
for a memory mapped NCR53C400 board with interrupts disabled or
58+
59+
NEW: modprobe g_NCR5380 irq=0,7 base=0x240,0x300 card=3,4
60+
for two cards: DTC3181 (in non-PnP mode) at 0x240 with no IRQ
61+
and HP C2502 at 0x300 with IRQ 7
4462

4563
(255 should be specified for no or DMA interrupt, 254 to autoprobe for an
4664
IRQ line if overridden on the command line.)

0 commit comments

Comments
 (0)