11da177e4SLinus Torvalds /* 21da177e4SLinus Torvalds * NCR 5380 defines 31da177e4SLinus Torvalds * 41da177e4SLinus Torvalds * Copyright 1993, Drew Eckhardt 51da177e4SLinus Torvalds * Visionary Computing 61da177e4SLinus Torvalds * (Unix consulting and custom programming) 71da177e4SLinus Torvalds * drew@colorado.edu 81da177e4SLinus Torvalds * +1 (303) 666-5836 91da177e4SLinus Torvalds * 101da177e4SLinus Torvalds * For more information, please consult 111da177e4SLinus Torvalds * 121da177e4SLinus Torvalds * NCR 5380 Family 131da177e4SLinus Torvalds * SCSI Protocol Controller 141da177e4SLinus Torvalds * Databook 151da177e4SLinus Torvalds * NCR Microelectronics 161da177e4SLinus Torvalds * 1635 Aeroplaza Drive 171da177e4SLinus Torvalds * Colorado Springs, CO 80916 181da177e4SLinus Torvalds * 1+ (719) 578-3400 191da177e4SLinus Torvalds * 1+ (800) 334-5454 201da177e4SLinus Torvalds */ 211da177e4SLinus Torvalds 221da177e4SLinus Torvalds #ifndef NCR5380_H 231da177e4SLinus Torvalds #define NCR5380_H 241da177e4SLinus Torvalds 25161c0059SFinn Thain #include <linux/delay.h> 261da177e4SLinus Torvalds #include <linux/interrupt.h> 2732b26a10SFinn Thain #include <linux/list.h> 28161c0059SFinn Thain #include <linux/workqueue.h> 29161c0059SFinn Thain #include <scsi/scsi_dbg.h> 3028424d3aSBoaz Harrosh #include <scsi/scsi_eh.h> 31161c0059SFinn Thain #include <scsi/scsi_transport_spi.h> 3228424d3aSBoaz Harrosh 331da177e4SLinus Torvalds #define NDEBUG_ARBITRATION 0x1 341da177e4SLinus Torvalds #define NDEBUG_AUTOSENSE 0x2 351da177e4SLinus Torvalds #define NDEBUG_DMA 0x4 361da177e4SLinus Torvalds #define NDEBUG_HANDSHAKE 0x8 371da177e4SLinus Torvalds #define NDEBUG_INFORMATION 0x10 381da177e4SLinus Torvalds #define NDEBUG_INIT 0x20 391da177e4SLinus Torvalds #define NDEBUG_INTR 0x40 401da177e4SLinus Torvalds #define NDEBUG_LINKED 0x80 411da177e4SLinus Torvalds #define NDEBUG_MAIN 0x100 421da177e4SLinus Torvalds #define NDEBUG_NO_DATAOUT 0x200 431da177e4SLinus Torvalds #define NDEBUG_NO_WRITE 0x400 441da177e4SLinus Torvalds #define NDEBUG_PIO 0x800 451da177e4SLinus Torvalds #define NDEBUG_PSEUDO_DMA 0x1000 461da177e4SLinus Torvalds #define NDEBUG_QUEUES 0x2000 471da177e4SLinus Torvalds #define NDEBUG_RESELECTION 0x4000 481da177e4SLinus Torvalds #define NDEBUG_SELECTION 0x8000 491da177e4SLinus Torvalds #define NDEBUG_USLEEP 0x10000 501da177e4SLinus Torvalds #define NDEBUG_LAST_BYTE_SENT 0x20000 511da177e4SLinus Torvalds #define NDEBUG_RESTART_SELECT 0x40000 521da177e4SLinus Torvalds #define NDEBUG_EXTENDED 0x80000 531da177e4SLinus Torvalds #define NDEBUG_C400_PREAD 0x100000 541da177e4SLinus Torvalds #define NDEBUG_C400_PWRITE 0x200000 551da177e4SLinus Torvalds #define NDEBUG_LISTS 0x400000 569829e528SFinn Thain #define NDEBUG_ABORT 0x800000 579829e528SFinn Thain #define NDEBUG_TAGS 0x1000000 589829e528SFinn Thain #define NDEBUG_MERGING 0x2000000 591da177e4SLinus Torvalds 601da177e4SLinus Torvalds #define NDEBUG_ANY 0xFFFFFFFFUL 611da177e4SLinus Torvalds 621da177e4SLinus Torvalds /* 631da177e4SLinus Torvalds * The contents of the OUTPUT DATA register are asserted on the bus when 641da177e4SLinus Torvalds * either arbitration is occurring or the phase-indicating signals ( 651da177e4SLinus Torvalds * IO, CD, MSG) in the TARGET COMMAND register and the ASSERT DATA 661da177e4SLinus Torvalds * bit in the INITIATOR COMMAND register is set. 671da177e4SLinus Torvalds */ 681da177e4SLinus Torvalds 691da177e4SLinus Torvalds #define OUTPUT_DATA_REG 0 /* wo DATA lines on SCSI bus */ 701da177e4SLinus Torvalds #define CURRENT_SCSI_DATA_REG 0 /* ro same */ 711da177e4SLinus Torvalds 721da177e4SLinus Torvalds #define INITIATOR_COMMAND_REG 1 /* rw */ 731da177e4SLinus Torvalds #define ICR_ASSERT_RST 0x80 /* rw Set to assert RST */ 741da177e4SLinus Torvalds #define ICR_ARBITRATION_PROGRESS 0x40 /* ro Indicates arbitration complete */ 751da177e4SLinus Torvalds #define ICR_TRI_STATE 0x40 /* wo Set to tri-state drivers */ 761da177e4SLinus Torvalds #define ICR_ARBITRATION_LOST 0x20 /* ro Indicates arbitration lost */ 771da177e4SLinus Torvalds #define ICR_DIFF_ENABLE 0x20 /* wo Set to enable diff. drivers */ 781da177e4SLinus Torvalds #define ICR_ASSERT_ACK 0x10 /* rw ini Set to assert ACK */ 791da177e4SLinus Torvalds #define ICR_ASSERT_BSY 0x08 /* rw Set to assert BSY */ 801da177e4SLinus Torvalds #define ICR_ASSERT_SEL 0x04 /* rw Set to assert SEL */ 811da177e4SLinus Torvalds #define ICR_ASSERT_ATN 0x02 /* rw Set to assert ATN */ 821da177e4SLinus Torvalds #define ICR_ASSERT_DATA 0x01 /* rw SCSI_DATA_REG is asserted */ 831da177e4SLinus Torvalds 841da177e4SLinus Torvalds #ifdef DIFFERENTIAL 851da177e4SLinus Torvalds #define ICR_BASE ICR_DIFF_ENABLE 861da177e4SLinus Torvalds #else 871da177e4SLinus Torvalds #define ICR_BASE 0 881da177e4SLinus Torvalds #endif 891da177e4SLinus Torvalds 901da177e4SLinus Torvalds #define MODE_REG 2 911da177e4SLinus Torvalds /* 921da177e4SLinus Torvalds * Note : BLOCK_DMA code will keep DRQ asserted for the duration of the 931da177e4SLinus Torvalds * transfer, causing the chip to hog the bus. You probably don't want 941da177e4SLinus Torvalds * this. 951da177e4SLinus Torvalds */ 961da177e4SLinus Torvalds #define MR_BLOCK_DMA_MODE 0x80 /* rw block mode DMA */ 971da177e4SLinus Torvalds #define MR_TARGET 0x40 /* rw target mode */ 981da177e4SLinus Torvalds #define MR_ENABLE_PAR_CHECK 0x20 /* rw enable parity checking */ 991da177e4SLinus Torvalds #define MR_ENABLE_PAR_INTR 0x10 /* rw enable bad parity interrupt */ 1001da177e4SLinus Torvalds #define MR_ENABLE_EOP_INTR 0x08 /* rw enable eop interrupt */ 1011da177e4SLinus Torvalds #define MR_MONITOR_BSY 0x04 /* rw enable int on unexpected bsy fail */ 1021da177e4SLinus Torvalds #define MR_DMA_MODE 0x02 /* rw DMA / pseudo DMA mode */ 1031da177e4SLinus Torvalds #define MR_ARBITRATE 0x01 /* rw start arbitration */ 1041da177e4SLinus Torvalds 1051da177e4SLinus Torvalds #ifdef PARITY 1061da177e4SLinus Torvalds #define MR_BASE MR_ENABLE_PAR_CHECK 1071da177e4SLinus Torvalds #else 1081da177e4SLinus Torvalds #define MR_BASE 0 1091da177e4SLinus Torvalds #endif 1101da177e4SLinus Torvalds 1111da177e4SLinus Torvalds #define TARGET_COMMAND_REG 3 1121da177e4SLinus Torvalds #define TCR_LAST_BYTE_SENT 0x80 /* ro DMA done */ 1131da177e4SLinus Torvalds #define TCR_ASSERT_REQ 0x08 /* tgt rw assert REQ */ 1141da177e4SLinus Torvalds #define TCR_ASSERT_MSG 0x04 /* tgt rw assert MSG */ 1151da177e4SLinus Torvalds #define TCR_ASSERT_CD 0x02 /* tgt rw assert CD */ 1161da177e4SLinus Torvalds #define TCR_ASSERT_IO 0x01 /* tgt rw assert IO */ 1171da177e4SLinus Torvalds 1181da177e4SLinus Torvalds #define STATUS_REG 4 /* ro */ 1191da177e4SLinus Torvalds /* 1201da177e4SLinus Torvalds * Note : a set bit indicates an active signal, driven by us or another 1211da177e4SLinus Torvalds * device. 1221da177e4SLinus Torvalds */ 1231da177e4SLinus Torvalds #define SR_RST 0x80 1241da177e4SLinus Torvalds #define SR_BSY 0x40 1251da177e4SLinus Torvalds #define SR_REQ 0x20 1261da177e4SLinus Torvalds #define SR_MSG 0x10 1271da177e4SLinus Torvalds #define SR_CD 0x08 1281da177e4SLinus Torvalds #define SR_IO 0x04 1291da177e4SLinus Torvalds #define SR_SEL 0x02 1301da177e4SLinus Torvalds #define SR_DBP 0x01 1311da177e4SLinus Torvalds 1321da177e4SLinus Torvalds /* 1331da177e4SLinus Torvalds * Setting a bit in this register will cause an interrupt to be generated when 1341da177e4SLinus Torvalds * BSY is false and SEL true and this bit is asserted on the bus. 1351da177e4SLinus Torvalds */ 1361da177e4SLinus Torvalds #define SELECT_ENABLE_REG 4 /* wo */ 1371da177e4SLinus Torvalds 1381da177e4SLinus Torvalds #define BUS_AND_STATUS_REG 5 /* ro */ 1391da177e4SLinus Torvalds #define BASR_END_DMA_TRANSFER 0x80 /* ro set on end of transfer */ 1401da177e4SLinus Torvalds #define BASR_DRQ 0x40 /* ro mirror of DRQ pin */ 1411da177e4SLinus Torvalds #define BASR_PARITY_ERROR 0x20 /* ro parity error detected */ 1421da177e4SLinus Torvalds #define BASR_IRQ 0x10 /* ro mirror of IRQ pin */ 1431da177e4SLinus Torvalds #define BASR_PHASE_MATCH 0x08 /* ro Set when MSG CD IO match TCR */ 1441da177e4SLinus Torvalds #define BASR_BUSY_ERROR 0x04 /* ro Unexpected change to inactive state */ 1451da177e4SLinus Torvalds #define BASR_ATN 0x02 /* ro BUS status */ 1461da177e4SLinus Torvalds #define BASR_ACK 0x01 /* ro BUS status */ 1471da177e4SLinus Torvalds 1481da177e4SLinus Torvalds /* Write any value to this register to start a DMA send */ 1491da177e4SLinus Torvalds #define START_DMA_SEND_REG 5 /* wo */ 1501da177e4SLinus Torvalds 1511da177e4SLinus Torvalds /* 1521da177e4SLinus Torvalds * Used in DMA transfer mode, data is latched from the SCSI bus on 1531da177e4SLinus Torvalds * the falling edge of REQ (ini) or ACK (tgt) 1541da177e4SLinus Torvalds */ 1551da177e4SLinus Torvalds #define INPUT_DATA_REG 6 /* ro */ 1561da177e4SLinus Torvalds 1571da177e4SLinus Torvalds /* Write any value to this register to start a DMA receive */ 1581da177e4SLinus Torvalds #define START_DMA_TARGET_RECEIVE_REG 6 /* wo */ 1591da177e4SLinus Torvalds 1601da177e4SLinus Torvalds /* Read this register to clear interrupt conditions */ 1611da177e4SLinus Torvalds #define RESET_PARITY_INTERRUPT_REG 7 /* ro */ 1621da177e4SLinus Torvalds 1631da177e4SLinus Torvalds /* Write any value to this register to start an ini mode DMA receive */ 1641da177e4SLinus Torvalds #define START_DMA_INITIATOR_RECEIVE_REG 7 /* wo */ 1651da177e4SLinus Torvalds 16612150797SOndrej Zary /* NCR 53C400(A) Control Status Register bits: */ 1671da177e4SLinus Torvalds #define CSR_RESET 0x80 /* wo Resets 53c400 */ 1681da177e4SLinus Torvalds #define CSR_53C80_REG 0x80 /* ro 5380 registers busy */ 1691da177e4SLinus Torvalds #define CSR_TRANS_DIR 0x40 /* rw Data transfer direction */ 1701da177e4SLinus Torvalds #define CSR_SCSI_BUFF_INTR 0x20 /* rw Enable int on transfer ready */ 1711da177e4SLinus Torvalds #define CSR_53C80_INTR 0x10 /* rw Enable 53c80 interrupts */ 1721da177e4SLinus Torvalds #define CSR_SHARED_INTR 0x08 /* rw Interrupt sharing */ 1731da177e4SLinus Torvalds #define CSR_HOST_BUF_NOT_RDY 0x04 /* ro Is Host buffer ready */ 1741da177e4SLinus Torvalds #define CSR_SCSI_BUF_RDY 0x02 /* ro SCSI buffer read */ 1751da177e4SLinus Torvalds #define CSR_GATED_53C80_IRQ 0x01 /* ro Last block xferred */ 1761da177e4SLinus Torvalds 1771da177e4SLinus Torvalds #if 0 1781da177e4SLinus Torvalds #define CSR_BASE CSR_SCSI_BUFF_INTR | CSR_53C80_INTR 1791da177e4SLinus Torvalds #else 1801da177e4SLinus Torvalds #define CSR_BASE CSR_53C80_INTR 1811da177e4SLinus Torvalds #endif 1821da177e4SLinus Torvalds 1831da177e4SLinus Torvalds /* Note : PHASE_* macros are based on the values of the STATUS register */ 1841da177e4SLinus Torvalds #define PHASE_MASK (SR_MSG | SR_CD | SR_IO) 1851da177e4SLinus Torvalds 1861da177e4SLinus Torvalds #define PHASE_DATAOUT 0 1871da177e4SLinus Torvalds #define PHASE_DATAIN SR_IO 1881da177e4SLinus Torvalds #define PHASE_CMDOUT SR_CD 1891da177e4SLinus Torvalds #define PHASE_STATIN (SR_CD | SR_IO) 1901da177e4SLinus Torvalds #define PHASE_MSGOUT (SR_MSG | SR_CD) 1911da177e4SLinus Torvalds #define PHASE_MSGIN (SR_MSG | SR_CD | SR_IO) 1921da177e4SLinus Torvalds #define PHASE_UNKNOWN 0xff 1931da177e4SLinus Torvalds 1941da177e4SLinus Torvalds /* 1951da177e4SLinus Torvalds * Convert status register phase to something we can use to set phase in 1961da177e4SLinus Torvalds * the target register so we can get phase mismatch interrupts on DMA 1971da177e4SLinus Torvalds * transfers. 1981da177e4SLinus Torvalds */ 1991da177e4SLinus Torvalds 2001da177e4SLinus Torvalds #define PHASE_SR_TO_TCR(phase) ((phase) >> 2) 2011da177e4SLinus Torvalds 2021da177e4SLinus Torvalds /* 2031da177e4SLinus Torvalds * These are "special" values for the irq and dma_channel fields of the 2041da177e4SLinus Torvalds * Scsi_Host structure 2051da177e4SLinus Torvalds */ 2061da177e4SLinus Torvalds 2071da177e4SLinus Torvalds #define DMA_NONE 255 2081da177e4SLinus Torvalds #define IRQ_AUTO 254 2091da177e4SLinus Torvalds #define DMA_AUTO 254 2101da177e4SLinus Torvalds #define PORT_AUTO 0xffff /* autoprobe io port for 53c400a */ 2111da177e4SLinus Torvalds 21222f5f10dSFinn Thain #ifndef NO_IRQ 21322f5f10dSFinn Thain #define NO_IRQ 0 21422f5f10dSFinn Thain #endif 21522f5f10dSFinn Thain 2161bb46002SFinn Thain #define FLAG_DMA_FIXUP 1 /* Use DMA errata workarounds */ 2171da177e4SLinus Torvalds #define FLAG_NO_PSEUDO_DMA 8 /* Inhibit DMA */ 218ef1081cbSFinn Thain #define FLAG_LATE_DMA_SETUP 32 /* Setup NCR before DMA H/W */ 2199c3f0e2bSFinn Thain #define FLAG_TOSHIBA_DELAY 128 /* Allow for borken CD-ROMs */ 2201da177e4SLinus Torvalds 2211da177e4SLinus Torvalds struct NCR5380_hostdata { 22225894d1fSFinn Thain NCR5380_implementation_fields; /* Board-specific data */ 223820682b1SFinn Thain u8 __iomem *io; /* Remapped 5380 address */ 224820682b1SFinn Thain u8 __iomem *pdma_io; /* Remapped PDMA address */ 22525894d1fSFinn Thain unsigned long poll_loops; /* Register polling limit */ 22625894d1fSFinn Thain spinlock_t lock; /* Protects this struct */ 22725894d1fSFinn Thain struct scsi_cmnd *connected; /* Currently connected cmnd */ 22825894d1fSFinn Thain struct list_head disconnected; /* Waiting for reconnect */ 22925894d1fSFinn Thain struct Scsi_Host *host; /* SCSI host backpointer */ 23025894d1fSFinn Thain struct workqueue_struct *work_q; /* SCSI host work queue */ 23125894d1fSFinn Thain struct work_struct main_task; /* Work item for main loop */ 23225894d1fSFinn Thain int flags; /* Board-specific quirks */ 23325894d1fSFinn Thain int dma_len; /* Requested length of DMA */ 23425894d1fSFinn Thain int read_overruns; /* Transfer size reduction for DMA erratum */ 235820682b1SFinn Thain unsigned long io_port; /* Device IO port */ 236820682b1SFinn Thain unsigned long base; /* Device base address */ 23725894d1fSFinn Thain struct list_head unissued; /* Waiting to be issued */ 23825894d1fSFinn Thain struct scsi_cmnd *selecting; /* Cmnd to be connected */ 23925894d1fSFinn Thain struct list_head autosense; /* Priority cmnd queue */ 24025894d1fSFinn Thain struct scsi_cmnd *sensing; /* Cmnd needing autosense */ 24125894d1fSFinn Thain struct scsi_eh_save ses; /* Cmnd state saved for EH */ 24225894d1fSFinn Thain unsigned char busy[8]; /* Index = target, bit = lun */ 24325894d1fSFinn Thain unsigned char id_mask; /* 1 << Host ID */ 24425894d1fSFinn Thain unsigned char id_higher_mask; /* All bits above id_mask */ 24525894d1fSFinn Thain unsigned char last_message; /* Last Message Out */ 246820682b1SFinn Thain unsigned long region_size; /* Size of address/port range */ 2478c32513bSFinn Thain char info[256]; 2481da177e4SLinus Torvalds }; 2491da177e4SLinus Torvalds 2501da177e4SLinus Torvalds #ifdef __KERNEL__ 2511da177e4SLinus Torvalds 25232b26a10SFinn Thain struct NCR5380_cmd { 25332b26a10SFinn Thain struct list_head list; 25432b26a10SFinn Thain }; 25532b26a10SFinn Thain 25632b26a10SFinn Thain #define NCR5380_CMD_SIZE (sizeof(struct NCR5380_cmd)) 25732b26a10SFinn Thain 25808348b1cSFinn Thain #define NCR5380_PIO_CHUNK_SIZE 256 25908348b1cSFinn Thain 260d4408dd7SFinn Thain /* Time limit (ms) to poll registers when IRQs are disabled, e.g. during PDMA */ 2614822827aSFinn Thain #define NCR5380_REG_POLL_TIME 15 262d4408dd7SFinn Thain 26332b26a10SFinn Thain static inline struct scsi_cmnd *NCR5380_to_scmd(struct NCR5380_cmd *ncmd_ptr) 26432b26a10SFinn Thain { 26532b26a10SFinn Thain return ((struct scsi_cmnd *)ncmd_ptr) - 1; 26632b26a10SFinn Thain } 26732b26a10SFinn Thain 2689829e528SFinn Thain #ifndef NDEBUG 2699829e528SFinn Thain #define NDEBUG (0) 2709829e528SFinn Thain #endif 2719829e528SFinn Thain 27216b9d870SFinn Thain #define dprintk(flg, fmt, ...) \ 273d61c5427SFinn Thain do { if ((NDEBUG) & (flg)) \ 274d61c5427SFinn Thain printk(KERN_DEBUG fmt, ## __VA_ARGS__); } while (0) 27516b9d870SFinn Thain 276dbb6b350SFinn Thain #define dsprintk(flg, host, fmt, ...) \ 277dbb6b350SFinn Thain do { if ((NDEBUG) & (flg)) \ 278dbb6b350SFinn Thain shost_printk(KERN_DEBUG, host, fmt, ## __VA_ARGS__); \ 279dbb6b350SFinn Thain } while (0) 280dbb6b350SFinn Thain 2819829e528SFinn Thain #if NDEBUG 2829829e528SFinn Thain #define NCR5380_dprint(flg, arg) \ 2839829e528SFinn Thain do { if ((NDEBUG) & (flg)) NCR5380_print(arg); } while (0) 2849829e528SFinn Thain #define NCR5380_dprint_phase(flg, arg) \ 2859829e528SFinn Thain do { if ((NDEBUG) & (flg)) NCR5380_print_phase(arg); } while (0) 2869829e528SFinn Thain static void NCR5380_print_phase(struct Scsi_Host *instance); 2879829e528SFinn Thain static void NCR5380_print(struct Scsi_Host *instance); 2889829e528SFinn Thain #else 28952a6a1cbSFinn Thain #define NCR5380_dprint(flg, arg) do {} while (0) 29052a6a1cbSFinn Thain #define NCR5380_dprint_phase(flg, arg) do {} while (0) 2919829e528SFinn Thain #endif 2921da177e4SLinus Torvalds 2931da177e4SLinus Torvalds static int NCR5380_probe_irq(struct Scsi_Host *instance, int possible); 2941da177e4SLinus Torvalds static int NCR5380_init(struct Scsi_Host *instance, int flags); 295b6488f97SFinn Thain static int NCR5380_maybe_reset_bus(struct Scsi_Host *); 2961da177e4SLinus Torvalds static void NCR5380_exit(struct Scsi_Host *instance); 2971da177e4SLinus Torvalds static void NCR5380_information_transfer(struct Scsi_Host *instance); 2987d12e780SDavid Howells static irqreturn_t NCR5380_intr(int irq, void *dev_id); 299c4028958SDavid Howells static void NCR5380_main(struct work_struct *work); 3008c32513bSFinn Thain static const char *NCR5380_info(struct Scsi_Host *instance); 3011da177e4SLinus Torvalds static void NCR5380_reselect(struct Scsi_Host *instance); 302707d62b3SFinn Thain static struct scsi_cmnd *NCR5380_select(struct Scsi_Host *, struct scsi_cmnd *); 3031da177e4SLinus Torvalds static int NCR5380_transfer_dma(struct Scsi_Host *instance, unsigned char *phase, int *count, unsigned char **data); 3041da177e4SLinus Torvalds static int NCR5380_transfer_pio(struct Scsi_Host *instance, unsigned char *phase, int *count, unsigned char **data); 305*d5d37a0aSFinn Thain static int NCR5380_poll_politely2(struct NCR5380_hostdata *, 30661e1ce58SFinn Thain unsigned int, u8, u8, 30761e1ce58SFinn Thain unsigned int, u8, u8, unsigned long); 3081da177e4SLinus Torvalds 309*d5d37a0aSFinn Thain static inline int NCR5380_poll_politely(struct NCR5380_hostdata *hostdata, 31061e1ce58SFinn Thain unsigned int reg, u8 bit, u8 val, 31161e1ce58SFinn Thain unsigned long wait) 31201f17641SFinn Thain { 313*d5d37a0aSFinn Thain return NCR5380_poll_politely2(hostdata, reg, bit, val, 31401f17641SFinn Thain reg, bit, val, wait); 31501f17641SFinn Thain } 31601f17641SFinn Thain 3171da177e4SLinus Torvalds #endif /* __KERNEL__ */ 3181da177e4SLinus Torvalds #endif /* NCR5380_H */ 319