|
|
1.1 ! root 1: /* ! 2: * Definitions for CHAOS-11 interface card used as Chaosnet link. ! 3: */ ! 4: ! 5: /* ! 6: * structure needed for each transmitter. (member of xminfo union). ! 7: */ ! 8: struct ch11info { ! 9: int ch_rtries; /* number of retries */ ! 10: }; ! 11: ! 12: #define CH11BASE 0764140 /* base UNIBUS address for ch11's */ ! 13: #define CH11INC 020 /* increment between ch11's (wrong!)*/ ! 14: /* ! 15: * Arrangement of chaos11 registers ! 16: */ ! 17: struct ch11 { ! 18: short ch_csr; /* Command and status register */ ! 19: short ch_wbf; /* Write buffer */ ! 20: short ch_rbf; /* Read buffer */ ! 21: short ch_rbc; /* Read bit counter */ ! 22: short ch_nop; /* Unused */ ! 23: short ch_xmt; /* Initiate transmission */ ! 24: }; ! 25: #define ch_myaddr ch_wbf /* When read, ch_wbf is interface address */ ! 26: /* ! 27: * ch_csr bit definitions ! 28: */ ! 29: #define CHBUSY 01 /* Transmitter busy */ ! 30: #define CHLPBK 02 /* Loop back in interface */ ! 31: #define CHSPY 04 /* Spy - accept any message */ ! 32: #define CHREN 010 /* Receive enable */ ! 33: #define CHRIEN 020 /* Receive interrupt enable */ ! 34: #define CHTIEN 040 /* Transmit interrupt enable */ ! 35: #define CHABRT 0100 /* Transmit aborted by conflict */ ! 36: #define CHTDN 0200 /* Transmission done */ ! 37: #define CHTCLR 0400 /* Transmitter clear */ ! 38: #define CHLC 017000 /* Count of messages lost */ ! 39: #define CHLCPOS 9 /* Bit position of lost count */ ! 40: #define CHLCMASK 017 /* Mask after shift is messages lost */ ! 41: #define CHRST 020000 /* I/O reset for interface */ ! 42: #define CHCRC 040000 /* CRC error */ ! 43: #define CHRDN 0100000 /* Input done */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.