From 242d365b7009e000cd0f9d0ca69d701e3d2c7d57 Mon Sep 17 00:00:00 2001 From: pk Date: Tue, 8 Apr 1997 20:08:53 +0000 Subject: [PATCH] Move "range" property description out of generic `romaux'. Add getproplen() function. --- sys/arch/sparc/sparc/autoconf.c | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/sys/arch/sparc/sparc/autoconf.c b/sys/arch/sparc/sparc/autoconf.c index 42dab97994a6..7b1e78711519 100644 --- a/sys/arch/sparc/sparc/autoconf.c +++ b/sys/arch/sparc/sparc/autoconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.c,v 1.70 1997/03/31 17:21:00 mycroft Exp $ */ +/* $NetBSD: autoconf.c,v 1.71 1997/04/08 20:08:53 pk Exp $ */ /* * Copyright (c) 1996 @@ -1022,17 +1022,6 @@ romprop(rp, cp, node) #endif } -#if defined(SUN4M) - if (CPU_ISSUN4M) { - len = getprop(node, "ranges", (void *)&rp->ra_range, - sizeof rp->ra_range); - if (len == -1) - len = 0; - rp->ra_nrange = len / sizeof(struct rom_range); - } else -#endif - rp->ra_nrange = 0; - return (1); } @@ -1502,6 +1491,19 @@ getprop(node, name, buf, bufsiz) #endif } +/* + * Internal form of proplen(). Returns the property length. + */ +int +getproplen(node, name) + int node; + char *name; +{ + register struct nodeops *no = promvec->pv_nodeops; + + return (no->no_proplen(node, name)); +} + /* * Return a string property. There is a (small) limit on the length; * the string is fetched into a static buffer which is overwritten on