diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-04-25 06:37:20 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-04-25 06:37:20 +0000 |
commit | e5f403bb164d8ffbcf3ed2dfb761fe37d9a5db7e (patch) | |
tree | f79a6c534d589d386f5fdf45e4c8fb5f2a221a2f /sys/arch/hp300/stand | |
parent | fdab626a6398ea411367b27d210f9c1b227f6283 (diff) |
sync w/ Net 960424
Diffstat (limited to 'sys/arch/hp300/stand')
-rw-r--r-- | sys/arch/hp300/stand/dca.c | 8 | ||||
-rw-r--r-- | sys/arch/hp300/stand/dcm.c | 10 | ||||
-rw-r--r-- | sys/arch/hp300/stand/ite.c | 101 | ||||
-rw-r--r-- | sys/arch/hp300/stand/ite_dv.c | 25 | ||||
-rw-r--r-- | sys/arch/hp300/stand/ite_gb.c | 25 | ||||
-rw-r--r-- | sys/arch/hp300/stand/ite_hy.c | 29 | ||||
-rw-r--r-- | sys/arch/hp300/stand/ite_rb.c | 25 | ||||
-rw-r--r-- | sys/arch/hp300/stand/ite_subr.c | 13 | ||||
-rw-r--r-- | sys/arch/hp300/stand/ite_tc.c | 25 |
9 files changed, 157 insertions, 104 deletions
diff --git a/sys/arch/hp300/stand/dca.c b/sys/arch/hp300/stand/dca.c index 9253d141bcc..7091886374d 100644 --- a/sys/arch/hp300/stand/dca.c +++ b/sys/arch/hp300/stand/dca.c @@ -1,4 +1,4 @@ -/* $NetBSD: dca.c,v 1.8 1995/10/04 06:54:44 thorpej Exp $ */ +/* $NetBSD: dca.c,v 1.9 1996/02/26 21:51:25 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -56,13 +56,15 @@ struct dcadevice *dcacnaddr = 0; +#define DCACONSCODE 9 /* XXX */ + void dcaprobe(cp) struct consdev *cp; { register struct dcadevice *dca; - dcacnaddr = (struct dcadevice *) sctoaddr(CONSCODE); + dcacnaddr = (struct dcadevice *) sctoaddr(DCACONSCODE); if (badaddr((char *)dcacnaddr)) { cp->cn_pri = CN_DEAD; return; @@ -86,7 +88,7 @@ dcaprobe(cp) } #endif - curcons_scode = CONSCODE; + curcons_scode = DCACONSCODE; } void diff --git a/sys/arch/hp300/stand/dcm.c b/sys/arch/hp300/stand/dcm.c index 936db32224d..4de3fa555bf 100644 --- a/sys/arch/hp300/stand/dcm.c +++ b/sys/arch/hp300/stand/dcm.c @@ -1,4 +1,4 @@ -/* $NetBSD: dcm.c,v 1.8 1995/10/04 06:54:45 thorpej Exp $ */ +/* $NetBSD: dcm.c,v 1.9 1996/02/27 22:11:44 scottr Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -51,6 +51,8 @@ struct dcmdevice *dcmcnaddr = NULL; +#define DCMCONUNIT 0 /* XXX */ + void dcmprobe(cp) struct consdev *cp; @@ -89,7 +91,7 @@ dcminit(cp) struct consdev *cp; { register struct dcmdevice *dcm = dcmcnaddr; - register int port = CONUNIT; + register int port = DCMCONUNIT; dcm->dcm_ic = IC_ID; while (dcm->dcm_thead[port].ptr != dcm->dcm_ttail[port].ptr) @@ -115,7 +117,7 @@ dcmgetchar(dev) register unsigned head; int c, stat, port; - port = CONUNIT; + port = DCMCONUNIT; pp = dcm_preg(dcm, port); head = pp->r_head & RX_MASK; if (head == (pp->r_tail & RX_MASK)) @@ -150,7 +152,7 @@ dcmputchar(dev, c) unsigned tail; int port, stat; - port = CONUNIT; + port = DCMCONUNIT; pp = dcm_preg(dcm, port); tail = pp->t_tail & TX_MASK; timo = 50000; diff --git a/sys/arch/hp300/stand/ite.c b/sys/arch/hp300/stand/ite.c index b8390e4c0f5..f48d8858427 100644 --- a/sys/arch/hp300/stand/ite.c +++ b/sys/arch/hp300/stand/ite.c @@ -1,4 +1,4 @@ -/* $NetBSD: ite.c,v 1.10 1995/10/04 06:54:47 thorpej Exp $ */ +/* $NetBSD: ite.c,v 1.11 1996/03/03 04:23:33 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -51,57 +51,51 @@ #include <sys/param.h> #include <dev/cons.h> #include <hp300/dev/device.h> -#include <hp300/dev/itevar.h> +#include <hp300/stand/itevar.h> #include <hp300/dev/grfreg.h> #include <hp300/stand/consdefs.h> #include <hp300/stand/samachdep.h> -extern int nodev(); -extern u_char ite_readbyte(); -extern int ite_writeglyph(); - -extern int topcat_init(), topcat_putc(); -extern int topcat_clear(), topcat_cursor(), topcat_scroll(); -extern int gbox_init(), gbox_clear(); -extern int gbox_putc(), gbox_cursor(), gbox_scroll(); -extern int rbox_init(), rbox_clear(); -extern int rbox_putc(), rbox_cursor(), rbox_scroll(); -extern int dvbox_init(), dvbox_clear(); -extern int dvbox_putc(), dvbox_cursor(), dvbox_scroll(); -extern int hyper_init(), hyper_clear(); -extern int hyper_putc(), hyper_cursor(), hyper_scroll(); +void ite_deinit_noop __P((struct ite_data *)); struct itesw itesw[] = { - GID_TOPCAT, - topcat_init, nodev, topcat_clear, topcat_putc, - topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, - GID_GATORBOX, - gbox_init, nodev, gbox_clear, gbox_putc, - gbox_cursor, gbox_scroll, ite_readbyte, ite_writeglyph, - GID_RENAISSANCE, - rbox_init, nodev, rbox_clear, rbox_putc, - rbox_cursor, rbox_scroll, ite_readbyte, ite_writeglyph, - GID_LRCATSEYE, - topcat_init, nodev, topcat_clear, topcat_putc, - topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, - GID_HRCCATSEYE, - topcat_init, nodev, topcat_clear, topcat_putc, - topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, - GID_HRMCATSEYE, - topcat_init, nodev, topcat_clear, topcat_putc, - topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, - GID_DAVINCI, - dvbox_init, nodev, dvbox_clear, dvbox_putc, - dvbox_cursor, dvbox_scroll, ite_readbyte, ite_writeglyph, - GID_HYPERION, - hyper_init, nodev, hyper_clear, hyper_putc, - hyper_cursor, hyper_scroll, ite_readbyte, ite_writeglyph, + { GID_TOPCAT, + topcat_init, ite_deinit_noop, topcat_clear, topcat_putc, + topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph }, + + { GID_GATORBOX, + gbox_init, ite_deinit_noop, gbox_clear, gbox_putc, + gbox_cursor, gbox_scroll, ite_readbyte, ite_writeglyph }, + + { GID_RENAISSANCE, + rbox_init, ite_deinit_noop, rbox_clear, rbox_putc, + rbox_cursor, rbox_scroll, ite_readbyte, ite_writeglyph }, + + { GID_LRCATSEYE, + topcat_init, ite_deinit_noop, topcat_clear, topcat_putc, + topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph }, + + { GID_HRCCATSEYE, + topcat_init, ite_deinit_noop, topcat_clear, topcat_putc, + topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph }, + + { GID_HRMCATSEYE, + topcat_init, ite_deinit_noop, topcat_clear, topcat_putc, + topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph }, + + { GID_DAVINCI, + dvbox_init, ite_deinit_noop, dvbox_clear, dvbox_putc, + dvbox_cursor, dvbox_scroll, ite_readbyte, ite_writeglyph }, + + { GID_HYPERION, + hyper_init, ite_deinit_noop, hyper_clear, hyper_putc, + hyper_cursor, hyper_scroll, ite_readbyte, ite_writeglyph }, }; int nitesw = sizeof(itesw) / sizeof(itesw[0]); /* these guys need to be in initialized data */ int itecons = -1; -struct ite_softc ite_softc[NITE] = { 0 }; +struct ite_data ite_data[NITE] = { 0 }; int ite_scode[NITE] = { 0 }; /* @@ -113,7 +107,7 @@ iteconfig() int dtype, fboff, i; struct hp_hw *hw; struct grfreg *gr; - struct ite_softc *ip; + struct ite_data *ip; i = 0; for (hw = sc_table; hw < &sc_table[MAXCTLRS]; hw++) { @@ -131,7 +125,7 @@ iteconfig() if (i >= NITE) break; ite_scode[i] = hw->hw_sc; - ip = &ite_softc[i]; + ip = &ite_data[i]; ip->isw = &itesw[dtype]; ip->regbase = (caddr_t) gr; fboff = (gr->gr_fbomsb << 8) | gr->gr_fbolsb; @@ -172,7 +166,7 @@ iteprobe(cp) struct consdev *cp; { register int ite; - register struct ite_softc *ip; + register struct ite_data *ip; int unit, pri; #ifdef CONSDEBUG @@ -190,7 +184,7 @@ iteprobe(cp) if (ite < whichconsole) continue; #endif - ip = &ite_softc[ite]; + ip = &ite_data[ite]; if ((ip->flags & (ITE_ALIVE|ITE_CONSOLE)) != (ITE_ALIVE|ITE_CONSOLE)) continue; @@ -212,12 +206,12 @@ iteinit(cp) struct consdev *cp; { int ite = cp->cn_dev; - struct ite_softc *ip; + struct ite_data *ip; if (itecons != -1) return; - ip = &ite_softc[ite]; + ip = &ite_data[ite]; ip->curx = 0; ip->cury = 0; @@ -237,7 +231,7 @@ iteputchar(dev, c) dev_t dev; register int c; { - register struct ite_softc *ip = &ite_softc[itecons]; + register struct ite_data *ip = &ite_data[itecons]; register struct itesw *sp = ip->isw; c &= 0x7F; @@ -276,7 +270,7 @@ iteputchar(dev, c) } itecheckwrap(ip, sp) - register struct ite_softc *ip; + register struct ite_data *ip; register struct itesw *sp; { if (++ip->curx == ip->cols) { @@ -292,7 +286,7 @@ itecheckwrap(ip, sp) } ite_clrtoeol(ip, sp, y, x) - register struct ite_softc *ip; + register struct ite_data *ip; register struct itesw *sp; register int y, x; { @@ -312,3 +306,10 @@ itegetchar(dev) #endif } #endif + +/* ARGSUSED */ +void +ite_deinit_noop(ip) + struct ite_data *ip; +{ +} diff --git a/sys/arch/hp300/stand/ite_dv.c b/sys/arch/hp300/stand/ite_dv.c index b636a2e7549..c7116eba1a4 100644 --- a/sys/arch/hp300/stand/ite_dv.c +++ b/sys/arch/hp300/stand/ite_dv.c @@ -1,4 +1,4 @@ -/* $NetBSD: ite_dv.c,v 1.7 1994/10/26 07:27:31 cgd Exp $ */ +/* $NetBSD: ite_dv.c,v 1.8 1996/03/03 04:23:35 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -47,15 +47,19 @@ #ifdef ITECONSOLE #include <sys/param.h> -#include <hp300/dev/itevar.h> +#include <hp300/stand/itevar.h> #include <hp300/dev/itereg.h> #include <hp300/dev/grf_dvreg.h> #define REGBASE ((struct dvboxfb *)(ip->regbase)) #define WINDOWMOVER dvbox_windowmove +void dvbox_windowmove __P((struct ite_data *, int, int, int, int, + int, int, int)); + +void dvbox_init(ip) - struct ite_softc *ip; + struct ite_data *ip; { int i; @@ -129,8 +133,9 @@ dvbox_init(ip) db_waitbusy(ip->regbase); } +void dvbox_putc(ip, c, dy, dx, mode) - register struct ite_softc *ip; + register struct ite_data *ip; register int dy, dx; int c, mode; { @@ -139,8 +144,9 @@ dvbox_putc(ip, c, dy, dx, mode) ip->ftheight, ip->ftwidth, RR_COPY); } +void dvbox_cursor(ip, flag) - register struct ite_softc *ip; + register struct ite_data *ip; register int flag; { if (flag == DRAW_CURSOR) @@ -153,8 +159,9 @@ dvbox_cursor(ip, flag) erase_cursor(ip) } +void dvbox_clear(ip, sy, sx, h, w) - struct ite_softc *ip; + struct ite_data *ip; register int sy, sx, h, w; { dvbox_windowmove(ip, sy * ip->ftheight, sx * ip->ftwidth, @@ -163,8 +170,9 @@ dvbox_clear(ip, sy, sx, h, w) RR_CLEAR); } +void dvbox_scroll(ip, sy, sx, count, dir) - register struct ite_softc *ip; + register struct ite_data *ip; register int sy, count; int dir, sx; { @@ -179,8 +187,9 @@ dvbox_scroll(ip, sy, sx, count, dir) ip->cols * ip->ftwidth, RR_COPY); } +void dvbox_windowmove(ip, sy, sx, dy, dx, h, w, func) - struct ite_softc *ip; + struct ite_data *ip; int sy, sx, dy, dx, h, w, func; { register struct dvboxfb *dp = REGBASE; diff --git a/sys/arch/hp300/stand/ite_gb.c b/sys/arch/hp300/stand/ite_gb.c index 9a4f7dcce2e..ac89d3845aa 100644 --- a/sys/arch/hp300/stand/ite_gb.c +++ b/sys/arch/hp300/stand/ite_gb.c @@ -1,4 +1,4 @@ -/* $NetBSD: ite_gb.c,v 1.7 1994/10/26 07:27:33 cgd Exp $ */ +/* $NetBSD: ite_gb.c,v 1.8 1996/03/03 04:23:36 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -48,15 +48,19 @@ #include <sys/param.h> -#include <hp300/dev/itevar.h> +#include <hp300/stand/itevar.h> #include <hp300/dev/itereg.h> #include <hp300/dev/grf_gbreg.h> #define REGBASE ((struct gboxfb *)(ip->regbase)) #define WINDOWMOVER gbox_windowmove +void gbox_windowmove __P((struct ite_data *, int, int, int, int, + int, int, int)); + +void gbox_init(ip) - register struct ite_softc *ip; + register struct ite_data *ip; { REGBASE->write_protect = 0x0; REGBASE->interrupt = 0x4; @@ -109,8 +113,9 @@ gbox_init(ip) ip->ftwidth, RR_COPYINVERTED); } +void gbox_putc(ip, c, dy, dx, mode) - register struct ite_softc *ip; + register struct ite_data *ip; register int dy, dx; int c, mode; { @@ -119,8 +124,9 @@ gbox_putc(ip, c, dy, dx, mode) ip->ftheight, ip->ftwidth, RR_COPY); } +void gbox_cursor(ip, flag) - register struct ite_softc *ip; + register struct ite_data *ip; register int flag; { if (flag == DRAW_CURSOR) @@ -133,8 +139,9 @@ gbox_cursor(ip, flag) erase_cursor(ip) } +void gbox_clear(ip, sy, sx, h, w) - struct ite_softc *ip; + struct ite_data *ip; register int sy, sx, h, w; { gbox_windowmove(ip, sy * ip->ftheight, sx * ip->ftwidth, @@ -153,8 +160,9 @@ gbox_clear(ip, sy, sx, h, w) (w) * ip->ftwidth, \ RR_COPY) +void gbox_scroll(ip, sy, sx, count, dir) - register struct ite_softc *ip; + register struct ite_data *ip; register int sy; int dir, sx, count; { @@ -171,8 +179,9 @@ gbox_scroll(ip, sy, sx, count, dir) gbox_blockmove(ip, sy + i, sx, dy + i, 0, 1, ip->cols); } +void gbox_windowmove(ip, sy, sx, dy, dx, h, w, mask) - register struct ite_softc *ip; + register struct ite_data *ip; int sy, sx, dy, dx, mask; register int h, w; { diff --git a/sys/arch/hp300/stand/ite_hy.c b/sys/arch/hp300/stand/ite_hy.c index 5823df0296b..f907cdd5085 100644 --- a/sys/arch/hp300/stand/ite_hy.c +++ b/sys/arch/hp300/stand/ite_hy.c @@ -1,4 +1,4 @@ -/* $NetBSD: ite_hy.c,v 1.2 1994/10/26 07:27:34 cgd Exp $ */ +/* $NetBSD: ite_hy.c,v 1.3 1996/03/03 04:23:37 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -48,7 +48,7 @@ #ifdef ITECONSOLE #include <sys/param.h> -#include <hp300/dev/itevar.h> +#include <hp300/stand/itevar.h> #include <hp300/dev/itereg.h> #include <hp300/dev/grf_hyreg.h> @@ -59,8 +59,13 @@ #define charX(ip,c) \ (((c) % (ip)->cpl) * ((((ip)->ftwidth + 7) / 8) * 8) + (ip)->fontx) +void hyper_ite_fontinit __P((struct ite_data *)); +void hyper_windowmove __P((struct ite_data *, int, int, int, int, + int, int, int)); + +void hyper_init(ip) - register struct ite_softc *ip; + register struct ite_data *ip; { int width; @@ -86,8 +91,9 @@ hyper_init(ip) ip->ftwidth, RR_COPYINVERTED); } +void hyper_ite_fontinit(ip) - register struct ite_softc *ip; + register struct ite_data *ip; { register u_char *fbmem, *dp; int c, l, b; @@ -114,8 +120,9 @@ hyper_ite_fontinit(ip) } } +void hyper_putc(ip, c, dy, dx, mode) - register struct ite_softc *ip; + register struct ite_data *ip; register int dy, dx; int c, mode; { @@ -124,8 +131,9 @@ hyper_putc(ip, c, dy, dx, mode) ip->ftheight, ip->ftwidth, RR_COPY); } +void hyper_cursor(ip, flag) - register struct ite_softc *ip; + register struct ite_data *ip; int flag; { switch (flag) { @@ -141,8 +149,9 @@ hyper_cursor(ip, flag) } } +void hyper_clear(ip, sy, sx, h, w) - struct ite_softc *ip; + struct ite_data *ip; register int sy, sx, h, w; { hyper_windowmove(ip, sy * ip->ftheight, sx * ip->ftwidth, @@ -151,8 +160,9 @@ hyper_clear(ip, sy, sx, h, w) RR_CLEAR); } +void hyper_scroll(ip, sy, sx, count, dir) - register struct ite_softc *ip; + register struct ite_data *ip; register int sy, count; int dir, sx; { @@ -247,8 +257,9 @@ int endtab[32] = 0xFFFFFFFE }; +void hyper_windowmove(ip, sy, sx, dy, dx, h, w, func) - struct ite_softc *ip; + struct ite_data *ip; int sy, sx, dy, dx, h, w, func; { unsigned int *psrcBase, *pdstBase; diff --git a/sys/arch/hp300/stand/ite_rb.c b/sys/arch/hp300/stand/ite_rb.c index a2390cc54a0..f2053da77f6 100644 --- a/sys/arch/hp300/stand/ite_rb.c +++ b/sys/arch/hp300/stand/ite_rb.c @@ -1,4 +1,4 @@ -/* $NetBSD: ite_rb.c,v 1.7 1994/10/26 07:27:37 cgd Exp $ */ +/* $NetBSD: ite_rb.c,v 1.8 1996/03/03 04:23:38 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -47,7 +47,7 @@ #ifdef ITECONSOLE #include <sys/param.h> -#include <hp300/dev/itevar.h> +#include <hp300/stand/itevar.h> #include <hp300/dev/itereg.h> #include <hp300/dev/grf_rbreg.h> @@ -55,8 +55,12 @@ #define REGBASE ((struct rboxfb *)(ip->regbase)) #define WINDOWMOVER rbox_windowmove +void rbox_windowmove __P((struct ite_data *, int, int, int, int, + int, int, int)); + +void rbox_init(ip) - struct ite_softc *ip; + struct ite_data *ip; { int i; @@ -125,8 +129,9 @@ rbox_init(ip) ip->ftwidth, RR_COPYINVERTED); } +void rbox_putc(ip, c, dy, dx, mode) - register struct ite_softc *ip; + register struct ite_data *ip; register int dy, dx; int c, mode; { @@ -135,8 +140,9 @@ rbox_putc(ip, c, dy, dx, mode) ip->ftheight, ip->ftwidth, RR_COPY); } +void rbox_cursor(ip, flag) - register struct ite_softc *ip; + register struct ite_data *ip; register int flag; { if (flag == DRAW_CURSOR) @@ -149,8 +155,9 @@ rbox_cursor(ip, flag) erase_cursor(ip) } +void rbox_clear(ip, sy, sx, h, w) - struct ite_softc *ip; + struct ite_data *ip; register int sy, sx, h, w; { rbox_windowmove(ip, sy * ip->ftheight, sx * ip->ftwidth, @@ -159,8 +166,9 @@ rbox_clear(ip, sy, sx, h, w) RR_CLEAR); } +void rbox_scroll(ip, sy, sx, count, dir) - register struct ite_softc *ip; + register struct ite_data *ip; register int sy, count; int dir, sx; { @@ -175,8 +183,9 @@ rbox_scroll(ip, sy, sx, count, dir) ip->cols * ip->ftwidth, RR_COPY); } +void rbox_windowmove(ip, sy, sx, dy, dx, h, w, func) - struct ite_softc *ip; + struct ite_data *ip; int sy, sx, dy, dx, h, w, func; { register struct rboxfb *rp = REGBASE; diff --git a/sys/arch/hp300/stand/ite_subr.c b/sys/arch/hp300/stand/ite_subr.c index 4a7ceca585e..5be4068b1a3 100644 --- a/sys/arch/hp300/stand/ite_subr.c +++ b/sys/arch/hp300/stand/ite_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: ite_subr.c,v 1.7 1994/10/26 07:27:39 cgd Exp $ */ +/* $NetBSD: ite_subr.c,v 1.8 1996/03/03 04:23:40 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -47,11 +47,11 @@ #ifdef ITECONSOLE #include <sys/param.h> -#include <hp300/dev/itevar.h> +#include <hp300/stand/itevar.h> #include <hp300/dev/itereg.h> ite_fontinfo(ip) - struct ite_softc *ip; + struct ite_data *ip; { u_long fontaddr = getword(ip, getword(ip, FONTROM) + FONTADDR); @@ -83,7 +83,7 @@ ite_fontinfo(ip) } ite_fontinit(ip) - register struct ite_softc *ip; + register struct ite_data *ip; { int bytewidth = (((ip->ftwidth - 1) / 8) + 1); int glyphsize = bytewidth * ip->ftheight; @@ -111,14 +111,15 @@ ite_fontinit(ip) */ u_char ite_readbyte(ip, disp) - struct ite_softc *ip; + struct ite_data *ip; int disp; { return((u_char) *(((u_char *)ip->regbase) + disp)); } +void ite_writeglyph(ip, fbmem, glyphp) - register struct ite_softc *ip; + register struct ite_data *ip; register u_char *fbmem, *glyphp; { register int bn; diff --git a/sys/arch/hp300/stand/ite_tc.c b/sys/arch/hp300/stand/ite_tc.c index cf0ea58df44..2f0d52a48ff 100644 --- a/sys/arch/hp300/stand/ite_tc.c +++ b/sys/arch/hp300/stand/ite_tc.c @@ -1,4 +1,4 @@ -/* $NetBSD: ite_tc.c,v 1.7 1994/10/26 07:27:41 cgd Exp $ */ +/* $NetBSD: ite_tc.c,v 1.8 1996/03/03 04:23:41 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -47,7 +47,7 @@ #ifdef ITECONSOLE #include <sys/param.h> -#include <hp300/dev/itevar.h> +#include <hp300/stand/itevar.h> #include <hp300/dev/itereg.h> #include <hp300/dev/grfreg.h> #include <hp300/dev/grf_tcreg.h> @@ -55,8 +55,12 @@ #define REGBASE ((struct tcboxfb *)(ip->regbase)) #define WINDOWMOVER topcat_windowmove +void topcat_windowmove __P((struct ite_data *, int, int, int, int, + int, int, int)); + +void topcat_init(ip) - register struct ite_softc *ip; + register struct ite_data *ip; { /* @@ -110,8 +114,9 @@ topcat_init(ip) ip->ftwidth, RR_COPYINVERTED); } +void topcat_putc(ip, c, dy, dx, mode) - register struct ite_softc *ip; + register struct ite_data *ip; register int dy, dx; int c, mode; { @@ -120,8 +125,9 @@ topcat_putc(ip, c, dy, dx, mode) ip->ftheight, ip->ftwidth, RR_COPY); } +void topcat_cursor(ip, flag) - register struct ite_softc *ip; + register struct ite_data *ip; register int flag; { if (flag == DRAW_CURSOR) @@ -134,8 +140,9 @@ topcat_cursor(ip, flag) erase_cursor(ip) } +void topcat_clear(ip, sy, sx, h, w) - struct ite_softc *ip; + struct ite_data *ip; register int sy, sx, h, w; { topcat_windowmove(ip, sy * ip->ftheight, sx * ip->ftwidth, @@ -144,8 +151,9 @@ topcat_clear(ip, sy, sx, h, w) RR_CLEAR); } +void topcat_scroll(ip, sy, sx, count, dir) - register struct ite_softc *ip; + register struct ite_data *ip; register int sy, count; int dir, sx; { @@ -160,8 +168,9 @@ topcat_scroll(ip, sy, sx, count, dir) ip->cols * ip->ftwidth, RR_COPY); } +void topcat_windowmove(ip, sy, sx, dy, dx, h, w, func) - struct ite_softc *ip; + struct ite_data *ip; int sy, sx, dy, dx, h, w, func; { register struct tcboxfb *rp = REGBASE; |