diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-15 21:08:38 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-15 21:08:38 +0000 |
commit | 5fd728aacbead7a5e2e8a439b82d5868ed771149 (patch) | |
tree | f6bfbd5a4a0d591d9fdcb08f238d64d134635892 /sys/arch/hp300/dev/dcm.c | |
parent | 4cd9cc821b37c055d59aedba60da2bd16a3a3237 (diff) |
Use DIO_SIZE() macro instead of rolling our own implementation of it.
Diffstat (limited to 'sys/arch/hp300/dev/dcm.c')
-rw-r--r-- | sys/arch/hp300/dev/dcm.c | 9 |
1 files changed, 2 insertions, 7 deletions
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); } |