;-*-MIDAS-*-
; DZ11 definitions

DZLNLN==3
DZNLN==1_DZLNLN			;Number of DZ terminal lines per board
DZLNM==DZNLN-1			;Line number mask given DZ number of TTY

%DZLM==3400			;Line Number Mask
%DZLS==8.			;Line number shift

%DZRCS==0			;Control & Status register
; CSR Bits and fields
%DZCMN==10			;Maintenance
%DZCCL==20			;Clear
%DZCMS==40			;Master Scan Enable
%DZCRE==100			;Receiver Interrupt Enable
%DZCRD==200			;Receiver Done
%DZCSE==10000			;Silo Alarm Enable
%DZCSA==20000			;Silo Alarm
%DZCTE==40000			;Transmitter Interrupt Enable
%DZCTR==100000			;Transmitter Ready

%DZRLP==2			;Line Parameter register
; LPR Bits and fields
%DZLLM==7			;Line number mask
%DZLCL==10			;Character Length position
%DZLSC==40			;Stop code bit
%DZLPY==100			;Parity bit
%DZLOP==200			;Odd parity
%DZLSP==400			;Speed code position
%DZLSS==8.			;Speed code shift
%DZLRO==10000			;Receiver on

%DZRDR==2			;Read Data register
; RDR Bits and fields
%DZDCM==377			;Character mask
%DZDPE==10000			;Parity Error
%DZDFE==20000			;Frame Error (break key)
%DZDOR==40000			;Overrun
%DZDDV==100000			;Data valid

%DZRTC==4			;Transmitter Control & Data Terminal registers

%DZRTD==6			;Transmitter Buffer & Break registers
; TDR and BR fields
%DZTCM==377			;Character mask
%DZTBM==177400			;Break mask

%DZRMS==6			;Modem status
; MSR fields
%DZMRI==377			;Ring detect
%DZMCD==177400			;Carrier detect

;	To do:
; - Add modem control.

