Go to the documentation of this file.
39 #define PAS16_PUBLIC_RELEASE 3
41 #define PDEBUG_INIT 0x1
42 #define PDEBUG_TRANSFER 0x2
44 #define PAS16_DEFAULT_BASE_1 0x388
45 #define PAS16_DEFAULT_BASE_2 0x384
46 #define PAS16_DEFAULT_BASE_3 0x38c
47 #define PAS16_DEFAULT_BASE_4 0x288
49 #define PAS16_DEFAULT_BOARD_1_IRQ 10
50 #define PAS16_DEFAULT_BOARD_2_IRQ 12
51 #define PAS16_DEFAULT_BOARD_3_IRQ 14
52 #define PAS16_DEFAULT_BOARD_4_IRQ 15
71 #define P_TIMEOUT_COUNTER_REG 0x4000
72 #define P_TC_DISABLE 0x80
76 #define P_TIMEOUT_STATUS_REG_OFFSET 0x4001
79 #define P_TS_ARM_DRQ_INT 0x08
87 #define P_TS_ENABLE_TO_ERR_INTERRUPT
88 #define P_TS_ENABLE_WAIT
100 #define P_DATA_REG_OFFSET 0x5c00
102 #define P_STATUS_REG_OFFSET 0x5c01
103 #define P_ST_RDY 0x80
105 #define P_IRQ_STATUS 0x5c03
106 #define P_IS_IRQ 0x80
108 #define PCB_CONFIG 0x803
109 #define MASTER_ADDRESS_PTR 0x9a01
110 #define SYS_CONFIG_4 0x8003
111 #define WAIT_STATE 0xbc00
112 #define OPERATION_MODE_1 0xec03
113 #define IO_CONFIG_3 0xf002
125 #define CMD_PER_LUN 2
134 #define NCR5380_implementation_fields \
135 volatile unsigned short io_port
137 #define NCR5380_local_declare() \
138 volatile unsigned short io_port
140 #define NCR5380_setup(instance) \
141 io_port = (instance)->io_port
143 #define PAS16_io_port(reg) ( io_port + pas16_offset[(reg)] )
145 #if !(PDEBUG & PDEBUG_TRANSFER)
146 #define NCR5380_read(reg) ( inb(PAS16_io_port(reg)) )
147 #define NCR5380_write(reg, value) ( outb((value),PAS16_io_port(reg)) )
149 #define NCR5380_read(reg) \
150 (((unsigned char) printk("scsi%d : read register %d at io_port %04x\n"\
151 , instance->hostno, (reg), PAS16_io_port(reg))), inb( PAS16_io_port(reg)) )
153 #define NCR5380_write(reg, value) \
154 (printk("scsi%d : write %02x to register %d at io_port %04x\n", \
155 instance->hostno, (value), (reg), PAS16_io_port(reg)), \
156 outb( (value),PAS16_io_port(reg) ) )
161 #define NCR5380_intr pas16_intr
162 #define do_NCR5380_intr do_pas16_intr
163 #define NCR5380_queue_command pas16_queue_command
164 #define NCR5380_abort pas16_abort
165 #define NCR5380_bus_reset pas16_bus_reset
166 #define NCR5380_proc_info pas16_proc_info
171 #define PAS16_IRQS 0xd4a8