2 ;;; Copyright (c) 1999 Massachusetts Institute of Technology
4 ;;; This program is free software; you can redistribute it and/or
5 ;;; modify it under the terms of the GNU General Public License as
6 ;;; published by the Free Software Foundation; either version 3 of the
7 ;;; License, or (at your option) any later version.
9 ;;; This program is distributed in the hope that it will be useful,
10 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 ;;; General Public License for more details.
14 ;;; You should have received a copy of the GNU General Public License
15 ;;; along with this program; if not, write to the Free Software
16 ;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 DZNLN==1_DZLNLN ;Number of DZ terminal lines per board
22 DZLNM==DZNLN-1 ;Line number mask given DZ number of TTY
24 %DZLM==3400 ;Line Number Mask
25 %DZLS==8. ;Line number shift
27 %DZRCS==0 ;Control & Status register
29 %DZCMN==10 ;Maintenance
31 %DZCMS==40 ;Master Scan Enable
32 %DZCRE==100 ;Receiver Interrupt Enable
33 %DZCRD==200 ;Receiver Done
34 %DZCSE==10000 ;Silo Alarm Enable
35 %DZCSA==20000 ;Silo Alarm
36 %DZCTE==40000 ;Transmitter Interrupt Enable
37 %DZCTR==100000 ;Transmitter Ready
39 %DZRLP==2 ;Line Parameter register
41 %DZLLM==7 ;Line number mask
42 %DZLCL==10 ;Character Length position
43 %DZLSC==40 ;Stop code bit
44 %DZLPY==100 ;Parity bit
45 %DZLOP==200 ;Odd parity
46 %DZLSP==400 ;Speed code position
47 %DZLSS==8. ;Speed code shift
48 %DZLRO==10000 ;Receiver on
50 %DZRDR==2 ;Read Data register
52 %DZDCM==377 ;Character mask
53 %DZDPE==10000 ;Parity Error
54 %DZDFE==20000 ;Frame Error (break key)
55 %DZDOR==40000 ;Overrun
56 %DZDDV==100000 ;Data valid
58 %DZRTC==4 ;Transmitter Control & Data Terminal registers
60 %DZRTD==6 ;Transmitter Buffer & Break registers
62 %DZTCM==377 ;Character mask
63 %DZTBM==177400 ;Break mask
65 %DZRMS==6 ;Modem status
67 %DZMRI==377 ;Ring detect
68 %DZMCD==177400 ;Carrier detect
71 ; - Add modem control.