Commit | Line | Data |
---|---|---|
da7c5cc6 | 1 | /* |
0880b18e | 2 | * Copyright (c) 1982, 1986 Regents of the University of California. |
da7c5cc6 KM |
3 | * All rights reserved. The Berkeley software License Agreement |
4 | * specifies the terms and conditions for redistribution. | |
5 | * | |
0880b18e | 6 | * @(#)uureg.h 7.1 (Berkeley) %G% |
da7c5cc6 | 7 | */ |
9319a1ad | 8 | |
9319a1ad HS |
9 | |
10 | /* | |
2956d092 | 11 | * DL11-E/DL11-W UNIBUS (for TU58) controller registers |
9319a1ad | 12 | */ |
2956d092 | 13 | struct uudevice { |
8c1c8933 HS |
14 | short rcs; /* receiver status register */ |
15 | short rdb; /* receiver data buffer register */ | |
16 | short tcs; /* transmitter status register */ | |
17 | short tdb; /* transmitter data buffer register */ | |
9319a1ad HS |
18 | }; |
19 | ||
20 | /* | |
8c1c8933 | 21 | * Receiver/transmitter status register status/command bits |
9319a1ad | 22 | */ |
8c1c8933 HS |
23 | #define UUCS_DONE 0x80 /* done/ready */ |
24 | #define UUCS_READY 0x80 | |
25 | #define UUCS_INTR 0x40 /* interrupt enable */ | |
26 | #define UUCS_MAINT 0x02 /* maintenance check (xmitter only) */ | |
27 | #define UUCS_BREAK 0x01 /* send break (xmitter only) */ | |
9319a1ad HS |
28 | |
29 | /* | |
30 | * Receiver data buffer register status bits | |
31 | */ | |
2956d092 HS |
32 | #define UURDB_ERROR 0x8000 /* Error (overrun or break) */ |
33 | #define UURDB_ORUN 0x4000 /* Data overrun error */ | |
34 | #define UURDB_BREAK 0x2000 /* TU58 break */ | |
9319a1ad | 35 | |
2956d092 | 36 | #define UUDB_DMASK 0x00ff /* data mask (send and receive data) */ |
9319a1ad | 37 |