|
|
1.1 root 1:
2: /* Command word format
3: *
4: * +-----------------------------------------------+
5: * | |B |R |A | | | |
6: * | |C |S |B | DID | | FCN |
7: * | |T |T |T | | | |
8: * +-----------------------------------------------+
9: * 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
10: */
11: /* Function codes */
12: #define NOP 0x0
13: #define BOARD_RESET 0x5
14: #define MASTER_CLEAR 0x6
15:
16: #define ABORT(did) (0x1000 | (did))
17: #define RESET(did) (0x2000 | (did))
18: #define BROAD_CAST(did) (0x4000 | (did))
19:
20:
21: /* SNET status word bits
22: *
23: * +-----------------------------------------------+
24: * | |E |S |I |O | | |
25: * | |O |N |B |B | | |
26: * | |P |K |E |E | | |
27: * +-----------------------------------------------+
28: * 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
29: */
30: #define OUTBUF_E 0x4
31: #define INBUF_E 0x8
32: #define SNACK 0x10 /* transmitter error */
33: #define EOP 0x20 /* we have read and EOP frame */
34:
35: #define NET(dev) ((dev)&255)
36:
37: #define ANRESET (('n'<<8) | 0)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.