On Tue, 8 May 2001, Mike Smith wrote:
> > I'm sure this probably reeks of cluelessness, but I'm wondering how I can
> > find each bus in the system, and if it's PCI/ISA/whatever, so that I could
> > say "1 PCI bus, 1 ISA bus in system", etc. without having to probe the
> > system directly, since I want to make what I'm working on portable.
>
> See libdevinfo in -current. There's nothing really portable for this
Thanks, looks like a start.
> sort of thing, though.
Yeah, I figured there wouldn't be, but I figured I'd try asking. I'm
trying to implement a '/sbin/hinv' for *BSD, and have been trying to make
it as generic as possible, so I don't end up over-relying on certain
hardware existing, etc.
Thanks
/joseph
>
> --
> ... every activity meets with opposition, everyone who acts has his
> rivals and unfortunately opponents also. But not because people want
> to be opponents, rather because the tasks and relationships force
> people to take different points of view. [Dr. Fritz Todt]
> V I C T O R Y N O T V E N G E A N C E
>
>
--
[ Joseph Mallett <jmallett@[newgold.net|xmrg.com|xMach.org]> ]
[ xMach Core Team xMach: Proactively Unbloated Microkernel BSD ]
[ Proud {Free,Net}BSD User; (Obj)C(++) Programmer ] [ http://xMach.org ]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message