]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ncr5380: Add support for HP C2502
authorOndrej Zary <linux@rainbow-software.org>
Sun, 3 Jan 2016 05:06:19 +0000 (16:06 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jan 2016 02:43:13 +0000 (21:43 -0500)
commitc6084cbce435fbf800f47026896137b3bae483c3
tree5409c66fdcfb657ab03f8f316f7c82f6248b170b
parent42fc6370c95df507b925b11372e8baa17eb0da41
ncr5380: Add support for HP C2502

HP C2502 cards (based on 53C400A chips) use different magic numbers for
software-based I/O address configuration than other cards.
The configuration is also extended to allow setting the IRQ.

Move the configuration to a new function magic_configure() and move
magic the magic numbers into an array. Add new magic numbers for these
HP cards and hp_c2502 module parameter to use them, e.g.:
modprobe g_NCR5380 ncr_irq=7 ncr_addr=0x280 hp_c2502=1

Tested with HP C2502 and DTCT-436P.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/g_NCR5380.c
drivers/scsi/g_NCR5380.h