blob: fcb0a8ea7bda8616ac4bc033c5505f8a2b0f7c10 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 */
9
10#ifndef DTC3280_H
11#define DTC3280_H
12
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#define NCR5380_implementation_fields \
14 void __iomem *base
15
Finn Thain54d8fe42016-01-03 16:05:06 +110016#define DTC_address(reg) \
17 (((struct NCR5380_hostdata *)shost_priv(instance))->base + DTC_5380_OFFSET + reg)
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
Linus Torvalds1da177e2005-04-16 15:20:36 -070019#define NCR5380_read(reg) (readb(DTC_address(reg)))
20#define NCR5380_write(reg, value) (writeb(value, DTC_address(reg)))
Linus Torvalds1da177e2005-04-16 15:20:36 -070021
Finn Thainff3d4572016-01-03 16:05:25 +110022#define NCR5380_dma_xfer_len(instance, cmd, phase) \
23 dtc_dma_xfer_len(cmd)
Finn Thain6c4b88c2016-03-23 21:10:17 +110024#define NCR5380_dma_recv_setup dtc_pread
25#define NCR5380_dma_send_setup dtc_pwrite
Finn Thain8053b0e2016-03-23 21:10:19 +110026#define NCR5380_dma_residual(instance) (0)
Finn Thainff3d4572016-01-03 16:05:25 +110027
Linus Torvalds1da177e2005-04-16 15:20:36 -070028#define NCR5380_intr dtc_intr
29#define NCR5380_queue_command dtc_queue_command
30#define NCR5380_abort dtc_abort
31#define NCR5380_bus_reset dtc_bus_reset
Finn Thain8c325132014-11-12 16:11:58 +110032#define NCR5380_info dtc_info
Linus Torvalds1da177e2005-04-16 15:20:36 -070033
Finn Thaine5d55d12016-03-23 21:10:16 +110034#define NCR5380_io_delay(x) udelay(x)
35
Linus Torvalds1da177e2005-04-16 15:20:36 -070036/* 15 12 11 10
37 1001 1100 0000 0000 */
38
39#define DTC_IRQS 0x9c00
40
41
42#endif /* DTC3280_H */