From 14b79794068cb638b1269fa742353b83f68e9ff0 Mon Sep 17 00:00:00 2001 From: CSRG Date: Thu, 7 Sep 1989 18:53:52 -0800 Subject: [PATCH] BSD 4_3_Tahoe development Work on file sys Work on file usr/src/sys/GENERIC1.hcx9/ioconf.c Work on file usr/src/sys/GENERIC1.hcx9/vbglue.s Work on file usr/src/sys/GENERIC1.hcx9/vbvec.s Work on file usr/src/sys/GENERIC1.hcx9/imp.h Work on file usr/src/sys/GENERIC1.hcx9/loop.h Work on file usr/src/sys/GENERIC1.hcx9/sl.h Work on file usr/src/sys/GENERIC1.hcx9/tb.h Work on file usr/src/sys/GENERIC1.hcx9/align.h Work on file usr/src/sys/GENERIC1.hcx9/bk.h Work on file usr/src/sys/GENERIC1.hcx9/pty.h Work on file usr/src/sys/GENERIC1.hcx9/vbsc.h Work on file usr/src/sys/GENERIC1.hcx9/ether.h Work on file usr/src/sys/GENERIC1.hcx9/vba.h Work on file usr/src/sys/GENERIC1.hcx9/hy.h Work on file usr/src/sys/GENERIC1.hcx9/ex.h Work on file usr/src/sys/GENERIC1.hcx9/dk.h Work on file usr/src/sys/GENERIC1.hcx9/dr.h Work on file usr/src/sys/GENERIC1.hcx9/enp.h Work on file usr/src/sys/GENERIC1.hcx9/hd.h Work on file usr/src/sys/GENERIC1.hcx9/vx.h Work on file usr/src/sys/GENERIC1.hcx9/yc.h Work on file usr/src/sys/GENERIC1.hcx9/mp.h Work on file usr/src/sys/GENERIC1.hcx9/ik.h Work on file usr/src/sys/GENERIC1.hcx9/ace.h Synthesized-from: CSRG/cd2/4.3tahoe --- sys | 1 + usr/src/sys/GENERIC1.hcx9/ace.h | 1 + usr/src/sys/GENERIC1.hcx9/align.h | 1 + usr/src/sys/GENERIC1.hcx9/bk.h | 1 + usr/src/sys/GENERIC1.hcx9/dk.h | 2 + usr/src/sys/GENERIC1.hcx9/dr.h | 1 + usr/src/sys/GENERIC1.hcx9/enp.h | 1 + usr/src/sys/GENERIC1.hcx9/ether.h | 1 + usr/src/sys/GENERIC1.hcx9/ex.h | 1 + usr/src/sys/GENERIC1.hcx9/hd.h | 2 + usr/src/sys/GENERIC1.hcx9/hy.h | 1 + usr/src/sys/GENERIC1.hcx9/ik.h | 1 + usr/src/sys/GENERIC1.hcx9/imp.h | 1 + usr/src/sys/GENERIC1.hcx9/ioconf.c | 79 ++++++++++++ usr/src/sys/GENERIC1.hcx9/loop.h | 1 + usr/src/sys/GENERIC1.hcx9/mp.h | 1 + usr/src/sys/GENERIC1.hcx9/pty.h | 1 + usr/src/sys/GENERIC1.hcx9/sl.h | 1 + usr/src/sys/GENERIC1.hcx9/tb.h | 1 + usr/src/sys/GENERIC1.hcx9/vba.h | 1 + usr/src/sys/GENERIC1.hcx9/vbglue.s | 194 +++++++++++++++++++++++++++++ usr/src/sys/GENERIC1.hcx9/vbsc.h | 1 + usr/src/sys/GENERIC1.hcx9/vbvec.s | 6 + usr/src/sys/GENERIC1.hcx9/vx.h | 1 + usr/src/sys/GENERIC1.hcx9/yc.h | 1 + 25 files changed, 303 insertions(+) create mode 120000 sys create mode 100644 usr/src/sys/GENERIC1.hcx9/ace.h create mode 100644 usr/src/sys/GENERIC1.hcx9/align.h create mode 100644 usr/src/sys/GENERIC1.hcx9/bk.h create mode 100644 usr/src/sys/GENERIC1.hcx9/dk.h create mode 100644 usr/src/sys/GENERIC1.hcx9/dr.h create mode 100644 usr/src/sys/GENERIC1.hcx9/enp.h create mode 100644 usr/src/sys/GENERIC1.hcx9/ether.h create mode 100644 usr/src/sys/GENERIC1.hcx9/ex.h create mode 100644 usr/src/sys/GENERIC1.hcx9/hd.h create mode 100644 usr/src/sys/GENERIC1.hcx9/hy.h create mode 100644 usr/src/sys/GENERIC1.hcx9/ik.h create mode 100644 usr/src/sys/GENERIC1.hcx9/imp.h create mode 100644 usr/src/sys/GENERIC1.hcx9/ioconf.c create mode 100644 usr/src/sys/GENERIC1.hcx9/loop.h create mode 100644 usr/src/sys/GENERIC1.hcx9/mp.h create mode 100644 usr/src/sys/GENERIC1.hcx9/pty.h create mode 100644 usr/src/sys/GENERIC1.hcx9/sl.h create mode 100644 usr/src/sys/GENERIC1.hcx9/tb.h create mode 100644 usr/src/sys/GENERIC1.hcx9/vba.h create mode 100644 usr/src/sys/GENERIC1.hcx9/vbglue.s create mode 100644 usr/src/sys/GENERIC1.hcx9/vbsc.h create mode 100644 usr/src/sys/GENERIC1.hcx9/vbvec.s create mode 100644 usr/src/sys/GENERIC1.hcx9/vx.h create mode 100644 usr/src/sys/GENERIC1.hcx9/yc.h diff --git a/sys b/sys new file mode 120000 index 0000000000..35bf1a971b --- /dev/null +++ b/sys @@ -0,0 +1 @@ +usr/src/sys \ No newline at end of file diff --git a/usr/src/sys/GENERIC1.hcx9/ace.h b/usr/src/sys/GENERIC1.hcx9/ace.h new file mode 100644 index 0000000000..c324fbd48f --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/ace.h @@ -0,0 +1 @@ +#define NACE 0 diff --git a/usr/src/sys/GENERIC1.hcx9/align.h b/usr/src/sys/GENERIC1.hcx9/align.h new file mode 100644 index 0000000000..85888b03dc --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/align.h @@ -0,0 +1 @@ +#define NALIGN 0 diff --git a/usr/src/sys/GENERIC1.hcx9/bk.h b/usr/src/sys/GENERIC1.hcx9/bk.h new file mode 100644 index 0000000000..679392edc1 --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/bk.h @@ -0,0 +1 @@ +#define NBK 0 diff --git a/usr/src/sys/GENERIC1.hcx9/dk.h b/usr/src/sys/GENERIC1.hcx9/dk.h new file mode 100644 index 0000000000..12842b0f41 --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/dk.h @@ -0,0 +1,2 @@ +#define NDK 12 +#define NVD 3 diff --git a/usr/src/sys/GENERIC1.hcx9/dr.h b/usr/src/sys/GENERIC1.hcx9/dr.h new file mode 100644 index 0000000000..2917798d26 --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/dr.h @@ -0,0 +1 @@ +#define NDR 0 diff --git a/usr/src/sys/GENERIC1.hcx9/enp.h b/usr/src/sys/GENERIC1.hcx9/enp.h new file mode 100644 index 0000000000..97127f3cfe --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/enp.h @@ -0,0 +1 @@ +#define NENP 0 diff --git a/usr/src/sys/GENERIC1.hcx9/ether.h b/usr/src/sys/GENERIC1.hcx9/ether.h new file mode 100644 index 0000000000..28d5f32ecb --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/ether.h @@ -0,0 +1 @@ +#define NETHER 1 diff --git a/usr/src/sys/GENERIC1.hcx9/ex.h b/usr/src/sys/GENERIC1.hcx9/ex.h new file mode 100644 index 0000000000..65d39d225d --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/ex.h @@ -0,0 +1 @@ +#define NEX 1 diff --git a/usr/src/sys/GENERIC1.hcx9/hd.h b/usr/src/sys/GENERIC1.hcx9/hd.h new file mode 100644 index 0000000000..4bf66c44cc --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/hd.h @@ -0,0 +1,2 @@ +#define NHD 12 +#define NHDC 3 diff --git a/usr/src/sys/GENERIC1.hcx9/hy.h b/usr/src/sys/GENERIC1.hcx9/hy.h new file mode 100644 index 0000000000..01dcd1fd17 --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/hy.h @@ -0,0 +1 @@ +#define NHY 0 diff --git a/usr/src/sys/GENERIC1.hcx9/ik.h b/usr/src/sys/GENERIC1.hcx9/ik.h new file mode 100644 index 0000000000..e3983a5ba5 --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/ik.h @@ -0,0 +1 @@ +#define NIK 0 diff --git a/usr/src/sys/GENERIC1.hcx9/imp.h b/usr/src/sys/GENERIC1.hcx9/imp.h new file mode 100644 index 0000000000..ef8ea49c60 --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/imp.h @@ -0,0 +1 @@ +#define NIMP 0 diff --git a/usr/src/sys/GENERIC1.hcx9/ioconf.c b/usr/src/sys/GENERIC1.hcx9/ioconf.c new file mode 100644 index 0000000000..5e536281cc --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/ioconf.c @@ -0,0 +1,79 @@ +#include "../h/param.h" +#include "../machine/pte.h" +#include "../h/buf.h" +#include "../h/map.h" + +#include "../tahoevba/vbavar.h" + +#define C (caddr_t) + +extern struct vba_driver hdcdriver; +extern Xhdintr0(); +int (*hdcint0[])() = { Xhdintr0, 0 } ; +extern struct vba_driver hdcdriver; +extern Xhdintr1(); +int (*hdcint1[])() = { Xhdintr1, 0 } ; +extern struct vba_driver hdcdriver; +extern Xhdintr2(); +int (*hdcint2[])() = { Xhdintr2, 0 } ; +extern struct vba_driver vddriver; +extern Xvdintr0(); +int (*vdint0[])() = { Xvdintr0, 0 } ; +extern struct vba_driver vddriver; +extern Xvdintr1(); +int (*vdint1[])() = { Xvdintr1, 0 } ; +extern struct vba_driver vddriver; +extern Xvdintr2(); +int (*vdint2[])() = { Xvdintr2, 0 } ; +extern struct vba_driver vxdriver; +extern Xvackint0(), Xvcmdrsp0(), Xvunsol0(); +int (*vxint0[])() = { Xvackint0, Xvcmdrsp0, Xvunsol0, 0 } ; +extern struct vba_driver vxdriver; +extern Xvackint1(), Xvcmdrsp1(), Xvunsol1(); +int (*vxint1[])() = { Xvackint1, Xvcmdrsp1, Xvunsol1, 0 } ; +extern struct vba_driver exdriver; +extern Xexintr0(); +int (*exint0[])() = { Xexintr0, 0 } ; + +struct vba_ctlr vbminit[] = { +/* driver, ctlr, vbanum, alive, intr, addr */ + { &hdcdriver, 0, '?', 0, hdcint0, C 0xc4010000 }, + { &hdcdriver, 1, '?', 0, hdcint1, C 0xc5010000 }, + { &hdcdriver, 2, '?', 0, hdcint2, C 0xc6010000 }, + { &vddriver, 0, '?', 0, vdint0, C 0xffff2000 }, + { &vddriver, 1, '?', 0, vdint1, C 0xffff2100 }, + { &vddriver, 2, '?', 0, vdint2, C 0xffff2200 }, + 0 +}; + +struct vba_device vbdinit[] = { + /* driver, unit, ctlr, vbanum, slave, intr, addr, dk, flags*/ + { &hdcdriver, 0, 0, '?', 0, 0, C 0x0 , 1, 0x0 }, + { &hdcdriver, 1, 0, '?', 1, 0, C 0x0 , 1, 0x0 }, + { &hdcdriver, 2, 0, '?', 2, 0, C 0x0 , 1, 0x0 }, + { &hdcdriver, 3, 0, '?', 3, 0, C 0x0 , 1, 0x0 }, + { &hdcdriver, 4, 1, '?', 0, 0, C 0x0 , 1, 0x0 }, + { &hdcdriver, 5, 1, '?', 1, 0, C 0x0 , 1, 0x0 }, + { &hdcdriver, 6, 1, '?', 2, 0, C 0x0 , 1, 0x0 }, + { &hdcdriver, 7, 1, '?', 3, 0, C 0x0 , 1, 0x0 }, + { &hdcdriver, 8, 2, '?', 0, 0, C 0x0 , 1, 0x0 }, + { &hdcdriver, 9, 2, '?', 1, 0, C 0x0 , 1, 0x0 }, + { &hdcdriver, 10, 2, '?', 2, 0, C 0x0 , 1, 0x0 }, + { &hdcdriver, 11, 2, '?', 3, 0, C 0x0 , 1, 0x0 }, + { &vddriver, 0, 0, '?', 0, 0, C 0x0 , 1, 0x0 }, + { &vddriver, 1, 0, '?', 1, 0, C 0x0 , 1, 0x0 }, + { &vddriver, 2, 0, '?', 2, 0, C 0x0 , 1, 0x0 }, + { &vddriver, 3, 0, '?', 3, 0, C 0x0 , 1, 0x0 }, + { &vddriver, 4, 1, '?', 0, 0, C 0x0 , 1, 0x0 }, + { &vddriver, 5, 1, '?', 1, 0, C 0x0 , 1, 0x0 }, + { &vddriver, 6, 1, '?', 2, 0, C 0x0 , 1, 0x0 }, + { &vddriver, 7, 1, '?', 3, 0, C 0x0 , 1, 0x0 }, + { &vddriver, 8, 2, '?', 0, 0, C 0x0 , 1, 0x0 }, + { &vddriver, 9, 2, '?', 1, 0, C 0x0 , 1, 0x0 }, + { &vddriver, 10, 2, '?', 2, 0, C 0x0 , 1, 0x0 }, + { &vddriver, 11, 2, '?', 3, 0, C 0x0 , 1, 0x0 }, + { &vxdriver, 0, -1, '?', -1, vxint0, C 0xcd020000, 0, 0x0 }, + { &vxdriver, 1, -1, '?', -1, vxint1, C 0xce020000, 0, 0x0 }, + { &exdriver, 0, -1, '?', -1, exint0, C 0xfff00000, 0, 0x0 }, + 0 +}; diff --git a/usr/src/sys/GENERIC1.hcx9/loop.h b/usr/src/sys/GENERIC1.hcx9/loop.h new file mode 100644 index 0000000000..15a837a810 --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/loop.h @@ -0,0 +1 @@ +#define NLOOP 1 diff --git a/usr/src/sys/GENERIC1.hcx9/mp.h b/usr/src/sys/GENERIC1.hcx9/mp.h new file mode 100644 index 0000000000..452c3431ba --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/mp.h @@ -0,0 +1 @@ +#define NMP 0 diff --git a/usr/src/sys/GENERIC1.hcx9/pty.h b/usr/src/sys/GENERIC1.hcx9/pty.h new file mode 100644 index 0000000000..3f5c54e28d --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/pty.h @@ -0,0 +1 @@ +#define NPTY 1 diff --git a/usr/src/sys/GENERIC1.hcx9/sl.h b/usr/src/sys/GENERIC1.hcx9/sl.h new file mode 100644 index 0000000000..9914a92ff8 --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/sl.h @@ -0,0 +1 @@ +#define NSL 0 diff --git a/usr/src/sys/GENERIC1.hcx9/tb.h b/usr/src/sys/GENERIC1.hcx9/tb.h new file mode 100644 index 0000000000..5799b0ab18 --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/tb.h @@ -0,0 +1 @@ +#define NTB 0 diff --git a/usr/src/sys/GENERIC1.hcx9/vba.h b/usr/src/sys/GENERIC1.hcx9/vba.h new file mode 100644 index 0000000000..92dae653cb --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/vba.h @@ -0,0 +1 @@ +#define NVBA 1 diff --git a/usr/src/sys/GENERIC1.hcx9/vbglue.s b/usr/src/sys/GENERIC1.hcx9/vbglue.s new file mode 100644 index 0000000000..ed1e91eba2 --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/vbglue.s @@ -0,0 +1,194 @@ +SCBVEC(hdintr0): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*0) + pushl $0 + callf $8,_hdintr + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + +SCBVEC(hdintr1): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*1) + pushl $1 + callf $8,_hdintr + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + +SCBVEC(hdintr2): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*2) + pushl $2 + callf $8,_hdintr + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + +SCBVEC(vdintr0): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*3) + pushl $0 + callf $8,_vdintr + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + +SCBVEC(vdintr1): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*4) + pushl $1 + callf $8,_vdintr + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + +SCBVEC(vdintr2): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*5) + pushl $2 + callf $8,_vdintr + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + +SCBVEC(vackint0): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*6) + pushl $0 + callf $8,_vackint + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + +SCBVEC(vcmdrsp0): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*7) + pushl $0 + callf $8,_vcmdrsp + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + +SCBVEC(vunsol0): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*8) + pushl $0 + callf $8,_vunsol + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + +SCBVEC(vackint1): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*9) + pushl $1 + callf $8,_vackint + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + +SCBVEC(vcmdrsp1): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*10) + pushl $1 + callf $8,_vcmdrsp + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + +SCBVEC(vunsol1): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*11) + pushl $1 + callf $8,_vunsol + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + +SCBVEC(exintr0): + CHECK_SFE(4) + SAVE_FPSTAT(4) + PUSHR + incl _fltintrcnt+(4*12) + pushl $0 + callf $8,_exintr + incl _cnt+V_INTR + POPR + REST_FPSTAT + rei + + + .globl _intrnames + + .globl _eintrnames + .data +_intrnames: + .asciz "clock" + .asciz "cnr" + .asciz "cnx" + .asciz "rmtr" + .asciz "rmtx" + .asciz "buserr" + .asciz "hd0" + .asciz "hd1" + .asciz "hd2" + .asciz "vd0" + .asciz "vd1" + .asciz "vd2" + .asciz "vack0" + .asciz "vcmdrsp0" + .asciz "vunsol0" + .asciz "vack1" + .asciz "vcmdrsp1" + .asciz "vunsol1" + .asciz "ex0" +_eintrnames: + + .globl _intrcnt + + .globl _eintrcnt + .align 2 +_intrcnt: + .space 4 * 6 +_fltintrcnt: + .space 4 * 13 +_eintrcnt: + + .text diff --git a/usr/src/sys/GENERIC1.hcx9/vbsc.h b/usr/src/sys/GENERIC1.hcx9/vbsc.h new file mode 100644 index 0000000000..d9dd5e31e1 --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/vbsc.h @@ -0,0 +1 @@ +#define NVBSC 0 diff --git a/usr/src/sys/GENERIC1.hcx9/vbvec.s b/usr/src/sys/GENERIC1.hcx9/vbvec.s new file mode 100644 index 0000000000..5c6a30da8f --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/vbvec.s @@ -0,0 +1,6 @@ +#define I_CLOCK 0 +#define I_CNR 4 +#define I_CNX 8 +#define I_RMTR 12 +#define I_RMTX 16 +#define I_BUSERR 20 diff --git a/usr/src/sys/GENERIC1.hcx9/vx.h b/usr/src/sys/GENERIC1.hcx9/vx.h new file mode 100644 index 0000000000..96c9cb0abc --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/vx.h @@ -0,0 +1 @@ +#define NVX 2 diff --git a/usr/src/sys/GENERIC1.hcx9/yc.h b/usr/src/sys/GENERIC1.hcx9/yc.h new file mode 100644 index 0000000000..95bbcd1f8f --- /dev/null +++ b/usr/src/sys/GENERIC1.hcx9/yc.h @@ -0,0 +1 @@ +#define NYC 0 -- 2.20.1