-#define vacsrhi vacsr.vacsrbytes.Vacsrhi
-#define vacsrlo vacsr.vacsrbytes.Vacsrlo
-#define VAADDR ((struct varegs *)(UBA0_DEV + 0164000))
-
-/* vacsr.vacsrword bits: */
-#define ERROR 0100000 /* R Some error has occurred */
-#define NPRTIMO 01000 /* R DMA timeout error */
-#define NOTREADY 0400 /* R Something besides NPRTIMO */
-#define DONE 0200 /* R */
-#define IENABLE 0100 /* R/W Interrupt enable */
-#define SUPPLIESLOW 04 /* R */
-#define BOTOFFORM 02 /* R */
-#define BYTEREVERSE 01 /* R/W Reverse byte order in words */
-
-/* Command bytes sent to vacsrhi */
-#define VAPLOT 0340
-#define VAPRINT 0100
-#define VAPRINTPLOT 0160
-#define VAAUTOSTEP 0244
-/* The following commands are not used in this driver: */
-#define VANOAUTOSTEP 0045
-#define VAFORMFEED 0263
-#define VASLEW 0265
-#define VASTEP 0064
-
-struct {
- char va_is_open;
- char va_busy;
- int va_state; /* State: bits are commands in vcmd.h. */
- int va_wcount;
- int va_bufp;
-} vainfo;
-int va_ubinfo;
-
-struct buf rvabuf; /* Used by physio for a buffer. */
-
-vaopen()
+#define vacsw vacs.Vacsw
+#define vacsh vacs.vacsr.Vacsh
+#define vacsl vacs.vacsr.Vacsl
+
+/* vacsw bits */
+#define VA_ERROR 0100000 /* some error has occurred */
+#define VA_NPRTIMO 0001000 /* DMA timeout error */
+#define VA_NOTREADY 0000400 /* something besides NPRTIMO */
+#define VA_DONE 0000200
+#define VA_IENABLE 0000100 /* interrupt enable */
+#define VA_SUPPLIESLOW 0000004
+#define VA_BOTOFFORM 0000002
+#define VA_BYTEREVERSE 0000001 /* reverse byte order in words */
+
+/* vacsh command bytes */
+#define VAPLOT 0000340
+#define VAPRINT 0000100
+#define VAPRINTPLOT 0000160
+#define VAAUTOSTEP 0000244
+#define VANOAUTOSTEP 0000045
+#define VAFORMFEED 0000263
+#define VASLEW 0000265
+#define VASTEP 0000064
+
+struct va_softc {
+ char sc_openf;
+ char sc_busy;
+ int sc_state;
+ int sc_wc;
+ struct buf *sc_bp;
+ int sc_ubinfo;
+} va_softc[NVA];
+
+#define VAUNIT(dev) (minor(dev))
+
+struct buf rvabuf[NVA];
+
+int vaprobe(), vaattach();
+struct uba_device *vadinfo[NVA];
+u_short vastd[] = { 0764000, 0 };
+struct uba_driver vadriver =
+ { vaprobe, 0, vaattach, 0, vastd, "va", vadinfo };
+
+vaprobe(reg)
+ caddr_t reg;