]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - 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
CommitLineData
1da177e4
LT
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
1da177e4
LT
12 */
13
1da177e4
LT
14#ifndef GENERIC_NCR5380_H
15#define GENERIC_NCR5380_H
16
aa2e2cb1 17#define DRV_MODULE_NAME "g_NCR5380"
1da177e4 18
54d8fe44 19#define NCR5380_read(reg) \
61e1ce58 20 ioread8(hostdata->io + hostdata->offset + (reg))
54d8fe44 21#define NCR5380_write(reg, value) \
61e1ce58 22 iowrite8(value, hostdata->io + hostdata->offset + (reg))
1da177e4 23
12150797 24#define NCR5380_implementation_fields \
b61bacbc 25 int offset; \
12150797
OZ
26 int c400_ctl_status; \
27 int c400_blk_cnt; \
aeb51152
OZ
28 int c400_host_buf; \
29 int io_width;
c818cb64 30
1da177e4
LT
31#define NCR53C400_mem_base 0x3880
32#define NCR53C400_host_buffer 0x3900
9d376402 33#define NCR53C400_region_size 0x3a00
1da177e4 34
4a98f896 35#define NCR5380_dma_xfer_len generic_NCR5380_dma_xfer_len
6c4b88ca
FT
36#define NCR5380_dma_recv_setup generic_NCR5380_pread
37#define NCR5380_dma_send_setup generic_NCR5380_pwrite
4a98f896 38#define NCR5380_dma_residual NCR5380_dma_residual_none
ff3d4578 39
1da177e4
LT
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
8c32513b 44#define NCR5380_info generic_NCR5380_info
1da177e4 45
e5d55d1a
FT
46#define NCR5380_io_delay(x) udelay(x)
47
1da177e4
LT
48#define BOARD_NCR5380 0
49#define BOARD_NCR53C400 1
50#define BOARD_NCR53C400A 2
51#define BOARD_DTC3181E 3
c6084cbc 52#define BOARD_HP_C2502 4
1da177e4 53
906e4a3c
OZ
54#define IRQ_AUTO 254
55
1da177e4 56#endif /* GENERIC_NCR5380_H */