2 * Generic Generic NCR5380 driver defines
4 * Copyright 1993, Drew Eckhardt
6 * (Unix and Linux consulting and custom programming)
10 * NCR53C400 extensions (c) 1994,1995,1996, Kevin Lentin
11 * K.Lentin@cs.monash.edu.au
14 #ifndef GENERIC_NCR5380_H
15 #define GENERIC_NCR5380_H
17 #define DRV_MODULE_NAME "g_NCR5380"
19 #define NCR5380_read(reg) \
20 ioread8(hostdata->io + hostdata->offset + (reg))
21 #define NCR5380_write(reg, value) \
22 iowrite8(value, hostdata->io + hostdata->offset + (reg))
24 #define NCR5380_implementation_fields \
26 int c400_ctl_status; \
31 #define NCR53C400_mem_base 0x3880
32 #define NCR53C400_host_buffer 0x3900
33 #define NCR53C400_region_size 0x3a00
35 #define NCR5380_dma_xfer_len generic_NCR5380_dma_xfer_len
36 #define NCR5380_dma_recv_setup generic_NCR5380_pread
37 #define NCR5380_dma_send_setup generic_NCR5380_pwrite
38 #define NCR5380_dma_residual NCR5380_dma_residual_none
40 #define NCR5380_intr generic_NCR5380_intr
41 #define NCR5380_queue_command generic_NCR5380_queue_command
42 #define NCR5380_abort generic_NCR5380_abort
43 #define NCR5380_bus_reset generic_NCR5380_bus_reset
44 #define NCR5380_info generic_NCR5380_info
46 #define NCR5380_io_delay(x) udelay(x)
48 #define BOARD_NCR5380 0
49 #define BOARD_NCR53C400 1
50 #define BOARD_NCR53C400A 2
51 #define BOARD_DTC3181E 3
52 #define BOARD_HP_C2502 4
56 #endif /* GENERIC_NCR5380_H */