ncr5380: Eliminate PDEBUG*, TDEBUG* and DTCDEBUG* macros
[deliverable/linux.git] / drivers / scsi / dtc.h
1 /*
2 * DTC controller, taken from T128 driver by...
3 * Copyright 1993, Drew Eckhardt
4 * Visionary Computing
5 * (Unix and Linux consulting and custom programming)
6 * drew@colorado.edu
7 * +1 (303) 440-4894
8 */
9
10 #ifndef DTC3280_H
11 #define DTC3280_H
12
13 #ifndef CMD_PER_LUN
14 #define CMD_PER_LUN 2
15 #endif
16
17 #ifndef CAN_QUEUE
18 #define CAN_QUEUE 32
19 #endif
20
21 #define NCR5380_implementation_fields \
22 void __iomem *base
23
24 #define NCR5380_local_declare() \
25 void __iomem *base
26
27 #define NCR5380_setup(instance) \
28 base = ((struct NCR5380_hostdata *)(instance)->hostdata)->base
29
30 #define DTC_address(reg) (base + DTC_5380_OFFSET + reg)
31
32 #define NCR5380_read(reg) (readb(DTC_address(reg)))
33 #define NCR5380_write(reg, value) (writeb(value, DTC_address(reg)))
34
35 #define NCR5380_intr dtc_intr
36 #define NCR5380_queue_command dtc_queue_command
37 #define NCR5380_abort dtc_abort
38 #define NCR5380_bus_reset dtc_bus_reset
39 #define NCR5380_info dtc_info
40 #define NCR5380_show_info dtc_show_info
41 #define NCR5380_write_info dtc_write_info
42
43 /* 15 12 11 10
44 1001 1100 0000 0000 */
45
46 #define DTC_IRQS 0x9c00
47
48
49 #endif /* DTC3280_H */
This page took 0.053067 seconds and 6 git commands to generate.