diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-04-16 11:56:40 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-04-16 11:56:40 +0000 |
commit | ab08be91e5dc66cfc42b85763d4caf94e2fd3d09 (patch) | |
tree | 89caace66e8787764cc54b781a8cbfd881b69458 /sys/arch/hp300/dev/grf_tc.c | |
parent | 75113d46e0ad67778c0741a5bfc96d9d686f7eec (diff) |
Merge portions of NetBSD up to 970415.
This includes:
* All of the prototyping and KNF changes.
* The new interrupt system.
* Portions of the Domain Keyboard support from Mike Smith.
This does not include:
* m68k changes, namely generic dumps.
Various sundry changes and fixes by me.
Diffstat (limited to 'sys/arch/hp300/dev/grf_tc.c')
-rw-r--r-- | sys/arch/hp300/dev/grf_tc.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/sys/arch/hp300/dev/grf_tc.c b/sys/arch/hp300/dev/grf_tc.c index c5093815de7..2fdd1c56b17 100644 --- a/sys/arch/hp300/dev/grf_tc.c +++ b/sys/arch/hp300/dev/grf_tc.c @@ -1,5 +1,5 @@ -/* $OpenBSD: grf_tc.c,v 1.5 1997/02/05 16:01:16 downsj Exp $ */ -/* $NetBSD: grf_tc.c,v 1.10 1997/01/30 09:18:50 thorpej Exp $ */ +/* $OpenBSD: grf_tc.c,v 1.6 1997/04/16 11:56:05 downsj Exp $ */ +/* $NetBSD: grf_tc.c,v 1.11 1997/03/31 07:34:18 scottr Exp $ */ /* * Copyright (c) 1996 Jason R. Thorpe. All rights reserved. @@ -86,6 +86,10 @@ void topcat_intio_attach __P((struct device *, struct device *, void *)); int topcat_dio_match __P((struct device *, void *, void *)); void topcat_dio_attach __P((struct device *, struct device *, void *)); +int topcat_console_scan __P((int, caddr_t, void *)); +void topcatcnprobe __P((struct consdev *cp)); +void topcatcninit __P((struct consdev *cp)); + struct cfattach topcat_intio_ca = { sizeof(struct grfdev_softc), topcat_intio_match, topcat_intio_attach }; @@ -279,7 +283,7 @@ tc_init(gp, scode, addr) int scode; caddr_t addr; { - register struct tcboxfb *tp = (struct tcboxfb *) addr; + struct tcboxfb *tp = (struct tcboxfb *) addr; struct grfinfo *gi = &gp->g_display; volatile u_char *fbp; u_char save; @@ -305,7 +309,7 @@ tc_init(gp, scode, addr) * For DIO II space the fbaddr just computed is the * offset from the select code base (regaddr) of the * framebuffer. Hence it is also implicitly the - * size of the register set. + * size of the set. */ gi->gd_regsize = (int) gi->gd_fbaddr; gi->gd_fbaddr += (int) gi->gd_regaddr; @@ -604,10 +608,10 @@ topcat_scroll(ip, sy, sx, count, dir) struct ite_data *ip; int sy, count, dir, sx; { - register int dy; - register int dx = sx; - register int height = 1; - register int width = ip->cols; + int dy; + int dx = sx; + int height = 1; + int width = ip->cols; if (dir == SCROLL_UP) { dy = sy - count; @@ -639,7 +643,7 @@ topcat_windowmove(ip, sy, sx, dy, dx, h, w, func) struct ite_data *ip; int sy, sx, dy, dx, h, w, func; { - register struct tcboxfb *rp = REGBASE; + struct tcboxfb *rp = REGBASE; if (h == 0 || w == 0) return; |