Subject: Re: Generic configuration requests outside of config files?
To: Peter Seebach <seebs@plethora.net>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 02/20/2006 10:23:47
On Sun, Feb 19, 2006 at 07:12:34PM -0600, Peter Seebach wrote:
> 	if (board_info_get("%s-mac", sc->sc_dev->dv_xname)) {
> 		...
> 	}

For another example of such a hack gid for prom_getether()

> BTW, if the answer is "we already have this, why aren't you using it", I'd
> love to hear it.  :)

Well, on ports with sane firmware (where you can "setenv XXX yyy") we
already have it, but there is no MI way to query it. A start for an API
can be found in sys/dev/sparc/include/promlib.h.

Martin