Go to the documentation of this file.
32 #define DTCDEBUG_INIT 0x1
33 #define DTCDEBUG_TRANSFER 0x2
50 #define NCR5380_implementation_fields \
53 #define NCR5380_local_declare() \
56 #define NCR5380_setup(instance) \
57 base = ((struct NCR5380_hostdata *)(instance)->hostdata)->base
59 #define DTC_address(reg) (base + DTC_5380_OFFSET + reg)
61 #define dbNCR5380_read(reg) \
62 (rval=readb(DTC_address(reg)), \
63 (((unsigned char) printk("DTC : read register %d at addr %p is: %02x\n"\
64 , (reg), DTC_address(reg), rval)), rval ) )
66 #define dbNCR5380_write(reg, value) do { \
67 printk("DTC : write %02x to register %d at address %p\n", \
68 (value), (reg), DTC_address(reg)); \
69 writeb(value, DTC_address(reg));} while(0)
72 #if !(DTCDEBUG & DTCDEBUG_TRANSFER)
73 #define NCR5380_read(reg) (readb(DTC_address(reg)))
74 #define NCR5380_write(reg, value) (writeb(value, DTC_address(reg)))
76 #define NCR5380_read(reg) (readb(DTC_address(reg)))
77 #define xNCR5380_read(reg) \
78 (((unsigned char) printk("DTC : read register %d at address %p\n"\
79 , (reg), DTC_address(reg))), readb(DTC_address(reg)))
81 #define NCR5380_write(reg, value) do { \
82 printk("DTC : write %02x to register %d at address %p\n", \
83 (value), (reg), DTC_address(reg)); \
84 writeb(value, DTC_address(reg));} while(0)
87 #define NCR5380_intr dtc_intr
88 #define NCR5380_queue_command dtc_queue_command
89 #define NCR5380_abort dtc_abort
90 #define NCR5380_bus_reset dtc_bus_reset
91 #define NCR5380_proc_info dtc_proc_info
96 #define DTC_IRQS 0x9c00