-struct pdma dzpdma[] = {
- (struct device *)(DZADDR), NULL, NULL, (int)&dz_tty[0], dzxint,
- (struct device *)(DZADDR), NULL, NULL, (int)&dz_tty[1], dzxint,
- (struct device *)(DZADDR), NULL, NULL, (int)&dz_tty[2], dzxint,
- (struct device *)(DZADDR), NULL, NULL, (int)&dz_tty[3], dzxint,
- (struct device *)(DZADDR), NULL, NULL, (int)&dz_tty[4], dzxint,
- (struct device *)(DZADDR), NULL, NULL, (int)&dz_tty[5], dzxint,
- (struct device *)(DZADDR), NULL, NULL, (int)&dz_tty[6], dzxint,
- (struct device *)(DZADDR), NULL, NULL, (int)&dz_tty[7], dzxint,
-#ifdef ERNIE
- (struct device *)(DZADDR+010), NULL, NULL, (int)&dz_tty[8], dzxint,
- (struct device *)(DZADDR+010), NULL, NULL, (int)&dz_tty[9], dzxint,
- (struct device *)(DZADDR+010), NULL, NULL, (int)&dz_tty[10], dzxint,
- (struct device *)(DZADDR+010), NULL, NULL, (int)&dz_tty[11], dzxint,
- (struct device *)(DZADDR+010), NULL, NULL, (int)&dz_tty[12], dzxint,
- (struct device *)(DZADDR+010), NULL, NULL, (int)&dz_tty[13], dzxint,
- (struct device *)(DZADDR+010), NULL, NULL, (int)&dz_tty[14], dzxint,
- (struct device *)(DZADDR+010), NULL, NULL, (int)&dz_tty[15], dzxint,
- (struct device *)(DZADDR+020), NULL, NULL, (int)&dz_tty[16], dzxint,
- (struct device *)(DZADDR+020), NULL, NULL, (int)&dz_tty[17], dzxint,
- (struct device *)(DZADDR+020), NULL, NULL, (int)&dz_tty[18], dzxint,
- (struct device *)(DZADDR+020), NULL, NULL, (int)&dz_tty[19], dzxint,
- (struct device *)(DZADDR+020), NULL, NULL, (int)&dz_tty[20], dzxint,
- (struct device *)(DZADDR+020), NULL, NULL, (int)&dz_tty[21], dzxint,
- (struct device *)(DZADDR+020), NULL, NULL, (int)&dz_tty[22], dzxint,
- (struct device *)(DZADDR+020), NULL, NULL, (int)&dz_tty[23], dzxint,
-#endif
-};
-char dz_timer;
-char dz_speeds[] = {
- 0, 020 , 021 , 022 , 023 , 024 , 0, 025,
- 026 , 027 , 030 , 032 , 034 , 036 , 0 , 0,
-};
+#define dzlpr dzrbuf
+#define dzmsr dzun.dz11.dzbrk0
+#define dztcr dzun.dz11.dztcr0
+#define dzdtr dzun.dz11.dzdtr0
+#define dztbuf dzun.dz11.dztbuf0
+#define dzlcs dzun.dz32.dzlcs0
+#define dzbrk dzmsr
+#define dzlnen dzun.dz32.dzlnen0
+#define dzmtsr dzun.dz32.dztbuf0;
+
+#define dzwait(x) while (((x)->dzlcs & DZ_ACK) == 0)
+
+/*
+ * Software copy of dzbrk since it isn't readable
+ */
+char dz_brk[NDZ];
+char dzsoftCAR[NDZ];
+char dz_lnen[NDZ]; /* saved line enable bits for DZ32 */
+
+/*
+ * The dz11 doesn't interrupt on carrier transitions, so
+ * we have to use a timer to watch it.
+ */
+char dz_timer; /* timer started? */
+
+/*
+ * Pdma structures for fast output code
+ */
+struct pdma dzpdma[NDZLINE];
+
+char dz_speeds[] =
+ { 0,020,021,022,023,024,0,025,026,027,030,032,034,036,0,0 };