summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev/grf_tc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hp300/dev/grf_tc.c')
-rw-r--r--sys/arch/hp300/dev/grf_tc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/hp300/dev/grf_tc.c b/sys/arch/hp300/dev/grf_tc.c
index d6eeff7c23a..5f407139c0e 100644
--- a/sys/arch/hp300/dev/grf_tc.c
+++ b/sys/arch/hp300/dev/grf_tc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grf_tc.c,v 1.11 2003/06/02 23:27:44 millert Exp $ */
+/* $OpenBSD: grf_tc.c,v 1.12 2005/01/08 22:13:53 miod Exp $ */
/* $NetBSD: grf_tc.c,v 1.11 1997/03/31 07:34:18 scottr Exp $ */
/*
@@ -57,6 +57,7 @@
#include <dev/cons.h>
+#include <hp300/dev/dioreg.h>
#include <hp300/dev/diovar.h>
#include <hp300/dev/diodevs.h>
#include <hp300/dev/intiovar.h>
@@ -300,7 +301,7 @@ tc_init(gp, scode, addr)
gi->gd_fbsize = gi->gd_fbwidth * gi->gd_fbheight;
fboff = (tp->fbomsb << 8) | tp->fbolsb;
gi->gd_fbaddr = (caddr_t) (*((u_char *)addr + fboff) << 16);
- if (gi->gd_regaddr >= (caddr_t)DIOIIBASE) {
+ if (gi->gd_regaddr >= (caddr_t)DIOII_BASE) {
/*
* For DIO II space the fbaddr just computed is the
* offset from the select code base (regaddr) of the
@@ -713,7 +714,7 @@ topcat_console_scan(scode, va, arg)
dioiidev = (u_char *)va;
return ((dioiidev[0x101] + 1) * 0x100000);
}
- return (DIOCSIZE);
+ return (DIO_DEVSIZE);
}
return (0);
}