summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/cgsix.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc/dev/cgsix.c')
-rw-r--r--sys/arch/sparc/dev/cgsix.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/cgsix.c b/sys/arch/sparc/dev/cgsix.c
index 259024c7da6..dd967ebf558 100644
--- a/sys/arch/sparc/dev/cgsix.c
+++ b/sys/arch/sparc/dev/cgsix.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: cgsix.c,v 1.7 1996/08/13 08:05:22 downsj Exp $ */
/* $NetBSD: cgsix.c,v 1.25 1996/04/01 17:30:00 christos Exp $ */
/*
@@ -291,13 +292,13 @@ cgsixattach(parent, self, args)
#if defined(SUN4)
if (CPU_ISSUN4) {
struct eeprom *eep = (struct eeprom *)eeprom_va;
- int constype = (fb->fb_flags & FB_PFOUR) ? EE_CONS_P4OPT :
- EE_CONS_COLOR;
+ int constype = (fb->fb_flags & FB_PFOUR) ? EED_CONS_P4 :
+ EED_CONS_COLOR;
/*
* Assume this is the console if there's no eeprom info
* to be found.
*/
- if (eep == NULL || eep->eeConsole == constype)
+ if (eep == NULL || eep->ee_diag.eed_console == constype)
isconsole = (fbconstty != NULL);
else
isconsole = 0;