patch-2.4.14 linux/drivers/scsi/dtc.h
Next file: linux/drivers/scsi/fastlane.c
Previous file: linux/drivers/scsi/cyberstormII.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Thu Oct 25 13:53:51 2001
- Orig file:
v2.4.13/linux/drivers/scsi/dtc.h
- Orig date:
Mon Sep 18 14:12:01 2000
diff -u --recursive --new-file v2.4.13/linux/drivers/scsi/dtc.h linux/drivers/scsi/dtc.h
@@ -80,29 +80,29 @@
#define DTC_address(reg) (base + DTC_5380_OFFSET + reg)
#define dbNCR5380_read(reg) \
- (rval=readb(DTC_address(reg)), \
+ (rval=isa_readb(DTC_address(reg)), \
(((unsigned char) printk("DTC : read register %d at addr %08x is: %02x\n"\
, (reg), (int)DTC_address(reg), rval)), rval ) )
#define dbNCR5380_write(reg, value) do { \
printk("DTC : write %02x to register %d at address %08x\n", \
(value), (reg), (int)DTC_address(reg)); \
- writeb(value, DTC_address(reg));} while(0)
+ isa_writeb(value, DTC_address(reg));} while(0)
#if !(DTCDEBUG & DTCDEBUG_TRANSFER)
-#define NCR5380_read(reg) (readb(DTC_address(reg)))
-#define NCR5380_write(reg, value) (writeb(value, DTC_address(reg)))
+#define NCR5380_read(reg) (isa_readb(DTC_address(reg)))
+#define NCR5380_write(reg, value) (isa_writeb(value, DTC_address(reg)))
#else
-#define NCR5380_read(reg) (readb(DTC_address(reg)))
+#define NCR5380_read(reg) (isa_readb(DTC_address(reg)))
#define xNCR5380_read(reg) \
(((unsigned char) printk("DTC : read register %d at address %08x\n"\
- , (reg), DTC_address(reg))), readb(DTC_address(reg)))
+ , (reg), DTC_address(reg))), isa_readb(DTC_address(reg)))
#define NCR5380_write(reg, value) do { \
printk("DTC : write %02x to register %d at address %08x\n", \
(value), (reg), (int)DTC_address(reg)); \
- writeb(value, DTC_address(reg));} while(0)
+ isa_writeb(value, DTC_address(reg));} while(0)
#endif
#define NCR5380_intr dtc_intr
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)