]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/scsi/g_NCR5380.h
HID: usbhid: Add HID_QUIRK_NOGET for Aten CS-1758 KVM switch
[mirror_ubuntu-artful-kernel.git] / drivers / scsi / g_NCR5380.h
1 /*
2 * Generic Generic NCR5380 driver defines
3 *
4 * Copyright 1993, Drew Eckhardt
5 * Visionary Computing
6 * (Unix and Linux consulting and custom programming)
7 * drew@colorado.edu
8 * +1 (303) 440-4894
9 *
10 * NCR53C400 extensions (c) 1994,1995,1996, Kevin Lentin
11 * K.Lentin@cs.monash.edu.au
12 */
13
14 #ifndef GENERIC_NCR5380_H
15 #define GENERIC_NCR5380_H
16
17 #define DRV_MODULE_NAME "g_NCR5380"
18
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))
23
24 #define NCR5380_implementation_fields \
25 int offset; \
26 int c400_ctl_status; \
27 int c400_blk_cnt; \
28 int c400_host_buf; \
29 int io_width;
30
31 #define NCR53C400_mem_base 0x3880
32 #define NCR53C400_host_buffer 0x3900
33 #define NCR53C400_region_size 0x3a00
34
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
39
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
45
46 #define NCR5380_io_delay(x) udelay(x)
47
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
53
54 #define IRQ_AUTO 254
55
56 #endif /* GENERIC_NCR5380_H */