1: struct djdevice {
2: short djcsr;
3: short djrbuf;
4: short djtcr;
5: #define djbcr djtcr
6: struct {
7: char djtbufl;
8: char djtbufh;
9: } dj_un;
10: };
11:
12: /* bits in djcsr */
13: #define DJ_TRDY 0100000 /* transmitter ready */
14: #define DJ_TIE 0040000 /* transmitter interrupt enable */
15: #define DJ_FIFO 0020000 /* FIFO full */
16: #define DJ_BSIE 0010000 /* FIFO buffer status interrupt enable*/
17: /* bit 11 is unused */
18: #define DJ_BRS 0002000 /* break register select */
19: /* bit 9 is unused */
20: #define DJ_MTSE 0000400 /* master transmit scan enable */
21: #define DJ_RDONE 0000200 /* receiver done */
22: #define DJ_RIE 0000100 /* receiver interrupt enable */
23: /* bit 5 is unused */
24: #define DJ_BCLR 0000020 /* busy clear */
25: #define DJ_MCLR 0000010 /* MOS clear */
26: #define DJ_MM 0000004 /* maintenance mode */
27: #define DJ_HDX 0000002 /* half duplex select */
28: #define DJ_RE 0000001 /* receiver enable */
29: #define DJ_BITS \
30: "\10\20TRDY\17TIE\16FIFO\15BSIE\13BRS\11MTSE\10RDONE\
31: \7RIE\5BCLR\4MCLR\3MM\2HDX\1RE"
32:
33: /* bits in djrbuf */
34: #define DJRBUF_DPR 0100000 /* data present */
35: #define DJRBUF_OVERRUN 0040000 /* overrun */
36: #define DJRBUF_FE 0020000 /* framing error */
37: #define DJRBUF_RDPE 0010000 /* received data parity error */
38: /* bits 11-8 are the line number */
39: /* bits 7-0 are the received data */
40: #define DJRBUF_BITS "\10\20DPR\17OVERRUN\16FE\15RDPE"
Defined struct's
Defined macros
DJ_MM
defined in line
26;
never used
DJ_RE
defined in line
28;
never used
djbcr
defined in line
5;
never used