ppbus probe problem
"M. Warner Losh" <[email protected]> Thu, 18 Mar 2004 16:10:06 +0800 (CST)
| Newsgroups | gmane.os.freebsd.devel.new-bus |
|---|---|
| Message-ID | <[email protected]> |
: What is the correct way to fix the probe call incrementing problem?
Typically this is done by checking to see if there's a child already.
However, all the ISA drivers don't do this... At work we've worked
around this problem like so:
static void
sub00798identify(driver_t * driver, device_t parent)
{
devclass_t dc;
dc = devclass_find(DRIVERNAME);
if (devclass_get_device(dc, 0) == NULL)
{
if (BUS_ADD_CHILD(parent, 0, DRIVERNAME, 0) == 0)
panic("failed to add " DRIVERNAME);
}
}
Warner
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus
To unsubscribe, send any mail to "[email protected]"