In message <[EMAIL PROTECTED]> j mckitrick writes:
: The newbus routines use a certain amount of overhead, but once done, you
: forget about it. In some device drivers, the probe methods often need to
: try a variety of hardware ports. In the past, inb/outb was used, along with
: an often hardcoded port address.
:
: Does it make sense to call bus_allocate_resource for every hardware port we
: probe? What is the best way to handle this so NO inb/out is used, even for
: probing?
Most of the drivers in the past that have done the soul searching for
hardware have been convereted to not do the soul searching but instead
rely strictly on the hints. I think that's what we need to do for the
parallel drivers as well.
If it must do the soul searching, and I see no reason why it should be
special as it causes other problems for wiring when you have multiple
parallel ports, then you should likely bus_alloc_resource for every
hardware address. This gives you a modest probability that those
addresses are not used by another device and you won't hork hardware
that otherwise resides there.
Warenr
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message