From 5fd728aacbead7a5e2e8a439b82d5868ed771149 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 15 Jan 2005 21:08:38 +0000 Subject: Use DIO_SIZE() macro instead of rolling our own implementation of it. --- sys/arch/hp300/dev/dcm.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sys/arch/hp300/dev/dcm.c') diff --git a/sys/arch/hp300/dev/dcm.c b/sys/arch/hp300/dev/dcm.c index a2060d15a10..c69f664ab9f 100644 --- a/sys/arch/hp300/dev/dcm.c +++ b/sys/arch/hp300/dev/dcm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dcm.c,v 1.21 2005/01/14 22:39:25 miod Exp $ */ +/* $OpenBSD: dcm.c,v 1.22 2005/01/15 21:08:36 miod Exp $ */ /* $NetBSD: dcm.c,v 1.41 1997/05/05 20:59:16 thorpej Exp $ */ /* @@ -1507,7 +1507,6 @@ dcm_console_scan(scode, va, arg) { struct dcmdevice *dcm = (struct dcmdevice *)va; struct consdev *cp = arg; - u_char *dioiidev; int force = 0, pri; switch (dcm->dcm_rsid) { @@ -1543,11 +1542,7 @@ dcm_console_scan(scode, va, arg) */ if (((cn_tab == NULL) || (cp->cn_pri > cn_tab->cn_pri)) || force) { cn_tab = cp; - if (scode >= 132) { - dioiidev = (u_char *)va; - return ((dioiidev[0x101] + 1) * 0x100000); - } - return (DIO_DEVSIZE); + return (DIO_SIZE(scode, va)); } return (0); } -- cgit v1.2.3