Commit | Line | Data |
---|---|---|
da7c5cc6 KM |
1 | /* |
2 | * Copyright (c) 1982 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | * | |
6 | * @(#)dmreg.h 6.2 (Berkeley) %G% | |
7 | */ | |
5833b248 SL |
8 | |
9 | /* | |
10 | * DM-11 device register definitions. | |
11 | */ | |
12 | struct dmdevice { | |
13 | short dmcsr; /* control status register */ | |
14 | short dmlstat; /* line status register */ | |
15 | short dmpad1[2]; | |
16 | }; | |
17 | ||
18 | /* bits in dm csr */ | |
19 | #define DM_RF 0100000 /* ring flag */ | |
20 | #define DM_CF 0040000 /* carrier flag */ | |
21 | #define DM_CTS 0020000 /* clear to send */ | |
22 | #define DM_SRF 0010000 /* secondary receive flag */ | |
23 | #define DM_CS 0004000 /* clear scan */ | |
24 | #define DM_CM 0002000 /* clear multiplexor */ | |
25 | #define DM_MM 0001000 /* maintenance mode */ | |
26 | #define DM_STP 0000400 /* step */ | |
27 | #define DM_DONE 0000200 /* scanner is done */ | |
28 | #define DM_IE 0000100 /* interrupt enable */ | |
29 | #define DM_SE 0000040 /* scan enable */ | |
30 | #define DM_BUSY 0000020 /* scan busy */ | |
31 | ||
32 | /* bits in dm lsr */ | |
33 | #define DML_RNG 0000200 /* ring */ | |
34 | #define DML_CAR 0000100 /* carrier detect */ | |
35 | #define DML_CTS 0000040 /* clear to send */ | |
36 | #define DML_SR 0000020 /* secondary receive */ | |
37 | #define DML_ST 0000010 /* secondary transmit */ | |
38 | #define DML_RTS 0000004 /* request to send */ | |
39 | #define DML_DTR 0000002 /* data terminal ready */ | |
40 | #define DML_LE 0000001 /* line enable */ | |
41 | ||
42 | #define DML_ON (DML_DTR|DML_RTS|DML_LE) | |
43 | #define DML_OFF (DML_LE) |