From 73d78bcc40a727f0cae5f4d9c0908246d4d06f46 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 30 Dec 2005 18:00:24 +0000 Subject: Introduce symbolic constants for the magic conscode values. No functional change. --- sys/arch/hp300/dev/gbox.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch/hp300/dev/gbox.c') diff --git a/sys/arch/hp300/dev/gbox.c b/sys/arch/hp300/dev/gbox.c index d67f9ce1356..133acdeffa0 100644 --- a/sys/arch/hp300/dev/gbox.c +++ b/sys/arch/hp300/dev/gbox.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gbox.c,v 1.9 2005/01/27 21:24:48 miod Exp $ */ +/* $OpenBSD: gbox.c,v 1.10 2005/12/30 18:00:20 miod Exp $ */ /* * Copyright (c) 2005, Miodrag Vallat @@ -172,7 +172,7 @@ gbox_intio_attach(struct device *parent, struct device *self, void *aux) struct diofbreg *fbr; fbr = (struct diofbreg *)IIOV(GRFIADDR); - sc->sc_scode = -1; /* XXX internal i/o */ + sc->sc_scode = CONSCODE_INTERNAL; if (sc->sc_scode == conscode) { sc->sc_fb = &diofb_cn; @@ -511,7 +511,7 @@ gboxcnprobe(struct consdev *cp) cp->cn_pri = CN_INTERNAL; #ifdef CONSCODE - if (CONSCODE == -1) { + if (CONSCODE == CONSCODE_INTERNAL) { force = conforced = 1; } #endif @@ -528,7 +528,7 @@ gboxcnprobe(struct consdev *cp) cn_tab = cp; if (convasize) iounmap(conaddr, convasize); - conscode = -1; + conscode = CONSCODE_INTERNAL; conaddr = va; convasize = 0; } -- cgit v1.2.3