summaryrefslogtreecommitdiffstats
path: root/Documentation/scsi
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2016-12-05 01:07:20 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2016-12-08 16:58:22 -0500
commit70439e93345ec5605f1cb3fa7a8f70bc968e6cb2 (patch)
tree4560583b2fcb294efb97d6229ce45a0f7d7ec403 /Documentation/scsi
parent145c3ae4c1933d0dceb11d19a36de3458d1872cb (diff)
scsi: g_NCR5380: Autoprobe board IRQ by default
Automatically probe the board irq when no irq parameter is provided, to simulate PnP. The old default behaviour was to disable the irq. Update driver documentation accordingly and add some printk messages to make this behaviour visible. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Tested-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'Documentation/scsi')
-rw-r--r--Documentation/scsi/g_NCR5380.txt46
1 files changed, 23 insertions, 23 deletions
diff --git a/Documentation/scsi/g_NCR5380.txt b/Documentation/scsi/g_NCR5380.txt
index e2c187947e58..37b1967a00a9 100644
--- a/Documentation/scsi/g_NCR5380.txt
+++ b/Documentation/scsi/g_NCR5380.txt
@@ -6,17 +6,15 @@ NCR53c400 extensions (c) 1994,1995,1996 Kevin Lentin
6This file documents the NCR53c400 extensions by Kevin Lentin and some 6This file documents the NCR53c400 extensions by Kevin Lentin and some
7enhancements to the NCR5380 core. 7enhancements to the NCR5380 core.
8 8
9This driver supports both NCR5380 and NCR53c400 cards in port or memory 9This driver supports NCR5380 and NCR53c400 and compatible cards in port or
10mapped modes. Currently this driver can only support one of those mapping 10memory mapped modes.
11modes at a time but it does support both of these chips at the same time.
12The next release of this driver will support port & memory mapped cards at
13the same time. It should be able to handle multiple different cards in the
14same machine.
15 11
16The drivers/scsi/Makefile has an override in it for the most common 12Use of an interrupt is recommended, if supported by the board, as this will
17NCR53c400 card, the Trantor T130B in its default configuration: 13allow targets to disconnect and thereby improve SCSI bus utilization.
18 Port: 0x350 14
19 IRQ : 5 15If the irq parameter is 254 or is omitted entirely, the driver will probe
16for the correct IRQ line automatically. If the irq parameter is 0 or 255
17then no IRQ will be used.
20 18
21The NCR53c400 does not support DMA but it does have Pseudo-DMA which is 19The NCR53c400 does not support DMA but it does have Pseudo-DMA which is
22supported by the driver. 20supported by the driver.
@@ -47,22 +45,24 @@ These old-style parameters can support only one card:
47 dtc_3181e=1 to set up for a Domex Technology Corp 3181E board 45 dtc_3181e=1 to set up for a Domex Technology Corp 3181E board
48 hp_c2502=1 to set up for a Hewlett Packard C2502 board 46 hp_c2502=1 to set up for a Hewlett Packard C2502 board
49 47
50e.g. 48E.g. Trantor T130B in its default configuration:
51OLD: modprobe g_NCR5380 ncr_irq=5 ncr_addr=0x350 ncr_5380=1 49modprobe g_NCR5380 irq=5 base=0x350 card=1
52NEW: modprobe g_NCR5380 irq=5 base=0x350 card=0 50or alternatively, using the old syntax,
53 for a port mapped NCR5380 board or 51modprobe g_NCR5380 ncr_irq=5 ncr_addr=0x350 ncr_53c400=1
54
55OLD: modprobe g_NCR5380 ncr_irq=255 ncr_addr=0xc8000 ncr_53c400=1
56NEW: modprobe g_NCR5380 irq=255 base=0xc8000 card=1
57 for a memory mapped NCR53C400 board with interrupts disabled or
58 52
59NEW: modprobe g_NCR5380 irq=0,7 base=0x240,0x300 card=3,4 53E.g. a port mapped NCR5380 board, driver to probe for IRQ:
60 for two cards: DTC3181 (in non-PnP mode) at 0x240 with no IRQ 54modprobe g_NCR5380 base=0x350 card=0
61 and HP C2502 at 0x300 with IRQ 7 55or alternatively,
56modprobe g_NCR5380 ncr_addr=0x350 ncr_5380=1
62 57
63(255 should be specified for no or DMA interrupt, 254 to autoprobe for an 58E.g. a memory mapped NCR53C400 board with no IRQ:
64 IRQ line if overridden on the command line.) 59modprobe g_NCR5380 irq=255 base=0xc8000 card=1
60or alternatively,
61modprobe g_NCR5380 ncr_irq=255 ncr_addr=0xc8000 ncr_53c400=1
65 62
63E.g. two cards, DTC3181 (in non-PnP mode) at 0x240 with no IRQ
64and HP C2502 at 0x300 with IRQ 7:
65modprobe g_NCR5380 irq=0,7 base=0x240,0x300 card=3,4
66 66
67Kevin Lentin 67Kevin Lentin
68K.Lentin@cs.monash.edu.au 68K.Lentin@cs.monash.edu.au