* A Little patch for DTC SCSI Controller
@ 2001-10-20 0:37 Casper Boon
0 siblings, 0 replies; only message in thread
From: Casper Boon @ 2001-10-20 0:37 UTC (permalink / raw)
To: linux-kernel; +Cc: alan
TWIMC
The patch below is for the DTC3x80 controller which stopped working
under
2.4 series. The change is only to the header and changes readb to
isa_readb
and writeb to isa_writeb. Without this patch the kernel panics at
startup.
========================================================================
Casper A. Boon casper@ambinet.com.au
Ambinet Systems 0417 171 505
========================================================================
diff -u linux-2.4.10/drivers/scsi/dtc.h
linux-2.4.10-cab/drivers/scsi/dtc.h
--- linux-2.4.10/drivers/scsi/dtc.h Tue Sep 19 05:12:01 2000
+++ linux-2.4.10-cab/drivers/scsi/dtc.h Sat Oct 13 18:09:01 2001
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-10-20 0:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-20 0:37 A Little patch for DTC SCSI Controller Casper Boon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome