|
|
1.1 ! root 1: /* (-lgl ! 2: * COHERENT 386 Device Driver Kit release 2.0 ! 3: * Copyright (c) 1982, 1992 by Mark Williams Company. ! 4: * All rights reserved. May not be copied without permission. ! 5: -lgl) */ ! 6: /* ! 7: * ss.h ! 8: * ! 9: * Header for Seagate ST01/ST02 and Future Domain SCSI host adapters. ! 10: */ ! 11: #ifndef __SYS_SS_H__ ! 12: #define __SYS_SS_H__ ! 13: ! 14: /* ! 15: * Constants. ! 16: */ ! 17: #define SS_RAM 0x1800 /* Offset of parameter RAM */ ! 18: #define SS_CSR 0x1A00 /* Offset of control/status register */ ! 19: #define SS_DAT 0x1C00 /* Offset of data port */ ! 20: ! 21: #define SS_RAM_LEN 128 /* ST0x has 128 bytes of RAM */ ! 22: #define SS_DAT_LEN 0x400 /* Byte range mapped to data port */ ! 23: #define SS_SEL_LEN 0x2000 /* Total size of memory-mapped area */ ! 24: ! 25: #define WC_ENABLE_SCSI 0x80 /* Write Control (WC) register bits */ ! 26: #define WC_ENABLE_IRPT 0x40 ! 27: #define WC_ENABLE_PRTY 0x20 ! 28: #define WC_ARBITRATE 0x10 ! 29: #define WC_ATTENTION 0x08 ! 30: #define WC_BUSY 0x04 ! 31: #define WC_SELECT 0x02 ! 32: #define WC_SCSI_RESET 0x01 ! 33: ! 34: #define RS_ARBIT_COMPL 0x80 /* Read STATUS (RS) register bits */ ! 35: #define RS_PRTY_ERROR 0x40 ! 36: #define RS_SELECT 0x20 ! 37: #define RS_REQUEST 0x10 ! 38: #define RS_CTRL_DATA 0x08 ! 39: #define RS_I_O 0x04 ! 40: #define RS_MESSAGE 0x02 ! 41: #define RS_BUSY 0x01 ! 42: ! 43: /* ! 44: * Import Functions. ! 45: */ ! 46: ! 47: /* functions from ssqueue.c */ ! 48: extern void ssq_wr_tail(); ! 49: extern BUF * ssq_rd_head(); ! 50: extern BUF * ssq_rm_head(); ! 51: ! 52: /* functions from ssas.s */ ! 53: extern void ss_get(); ! 54: extern int ss_put(); ! 55: ! 56: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.