-#define VAPLOT 0340
-#define VAPRINT 0100
-#define VAPRINTPLOT 0160
-#define VAAUTOSTEP 0244
-#define VANOAUTOSTEP 0045 /* unused */
-#define VAFORMFEED 0263 /* unused */
-#define VASLEW 0265 /* unused */
-#define VASTEP 0064 /* unused */
-
-struct {
- char va_open;
- char va_busy;
- int va_state; /* State: bits are commands in vcmd.h. */
- int va_wc;
- int va_bufp;
- struct buf *va_bp;
-} va11;
-int va_ubinfo;
-
-struct buf rvabuf; /* Used by physio for a buffer. */
-
-vaopen()
+#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;
+{
+ register int br, cvec; /* value-result */
+ register struct vadevice *vaaddr = (struct vadevice *)reg;
+
+#ifdef lint
+ br = 0; cvec = br; br = cvec;
+ vaintr(0);
+#endif
+ vaaddr->vacsl = VA_IENABLE;
+ vaaddr->vaba = 0;
+ vaaddr->vacsh = VAPLOT;
+ vaaddr->vacsl = 0;
+ vaaddr->vawc = -1;
+ DELAY(10000);
+ vaaddr->vacsl = 0;
+}
+
+/*ARGSUSED*/
+vaattach(ui)
+ struct uba_device *ui;