patch-2.3.1 linux/drivers/scsi/aha152x.c
Next file: linux/drivers/scsi/atari_scsi.c
Previous file: linux/drivers/sbus/char/zs.h
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Wed May 12 13:19:17 1999
- Orig file:
v2.3.0/linux/drivers/scsi/aha152x.c
- Orig date:
Mon Apr 12 16:18:26 1999
diff -u --recursive --new-file v2.3.0/linux/drivers/scsi/aha152x.c linux/drivers/scsi/aha152x.c
@@ -414,8 +414,13 @@
#define P_PARITY 2
/* possible irq range */
+#ifdef PCMCIA
+#define IRQ_MIN 0
+#define IRQ_MAX 16
+#else
#define IRQ_MIN 9
#define IRQ_MAX 12
+#endif
#define IRQS IRQ_MAX-IRQ_MIN+1
enum {
@@ -746,7 +751,7 @@
if(!aha152x_porttest(setup->io_port))
return 0;
- if(setup->irq<IRQ_MIN && setup->irq>IRQ_MAX)
+ if((setup->irq<IRQ_MIN) || (setup->irq>IRQ_MAX))
return 0;
if((setup->scsiid < 0) || (setup->scsiid > 7))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)