fdomain: Add PCMCIA support
PATCH 1/1 fdomain: Add PCMCIA support
Add PCMCIA card support to Future Domain SCSI driver.
Tested with IBM SCSI PCMCIA Adapter 40G1890.
Signed-off-by Ondrej Zary <[email protected]>
--- drivers/scsi/fdomain.c | 7 ++- drivers/scsi/pcmcia/Kconfig | 10 +++++ drivers/scsi/pcmcia/Makefile | 1 + drivers/scsi/pcmcia/fdomain_cs.c | 95 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 111 insertions(+), 2 deletions(-) create mode 100644 drivers/scsi/pcmcia/fdomain_cs.c
drivers/scsi/fdomain.c +5 -2
@@ -510,6 +510,7 @@ struct Scsi_Host *fdomain_create(int base, int irq, int this_id,static const char *const chip_names[] = {"Unknown" ,"TMC-1800" ,"TMC-18C50" ,"TMC-18C30" }; +unsigned long irq_flags =0 ; chip =fdomain_identify (base);if (!chip)
@@ -541,8 +542,10 @@ struct Scsi_Host *fdomain_create(int base, int irq, int this_id, fd->chip = chip;INIT_WORK (&fd->work, fdomain_work); -if (request_irq (irq, fdomain_irq,dev_is_pci (dev) ?IRQF_SHARED :0 , -"fdomain" , fd)) +if (dev_is_pci (dev) || !strcmp (dev->bus->name,"pcmcia" )) + irq_flags =IRQF_SHARED ; + +if (request_irq (irq, fdomain_irq, irq_flags,"fdomain" , fd)) goto fail_put; shost_printk(KERN_INFO, sh, "%s chip at 0x%x irq %d SCSI ID %d\n",
drivers/scsi/pcmcia/Kconfig +10 -0
@@ -19,6 +19,16 @@ config PCMCIA_AHA152X To compile this driver as a module, choose M here: the module will be called aha152x_cs. +config PCMCIA_FDOMAIN + tristate "Future Domain PCMCIA support" + select SCSI_FDOMAIN + help + Say Y here if you intend to attach this type of PCMCIA SCSI host + adapter to your computer. + + To compile this driver as a module, choose M here: the + module will be called fdomain_cs. + config PCMCIA_NINJA_SCSI tristate "NinjaSCSI-3 / NinjaSCSI-32Bi (16bit) PCMCIA support" depends on !64BIT
drivers/scsi/pcmcia/Makefile +1 -0
@@ -4,6 +4,7 @@ ccflags-y := -I $(srctree)/drivers/scsi # 16-bit client drivers obj-$(CONFIG_PCMCIA_QLOGIC) += qlogic_cs.o +obj-$(CONFIG_PCMCIA_FDOMAIN) += fdomain_cs.o obj-$(CONFIG_PCMCIA_AHA152X) += aha152x_cs.o obj-$(CONFIG_PCMCIA_NINJA_SCSI) += nsp_cs.o obj-$(CONFIG_PCMCIA_SYM53C500) += sym53c500_cs.o
drivers/scsi/pcmcia/fdomain_cs.c new file +95 -0
95 lines not on this page · raw message
Signature · 1 line
Ondrej Zary
Martin K. Petersen
AppliedOndrej,
Quoted 3 lines
Add PCMCIA card support to Future Domain SCSI driver.
Tested with IBM SCSI PCMCIA Adapter 40G1890.
Applied to 5.3/scsi-queue, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering