newbus ioport usage

Nate Lawson nate at root.org
Mon Jan 26 14:04:09 PST 2004


I have a driver that knows the IO port it wants.  It's not set up by a
parent bus, so I can't use bus_set_resource().  This call returns NULL.
Any idea how to debug why newbus is rejecting this request?  The io port
is not in use and the rid is unique.

  bus_alloc_resource(dev, SYS_RES_IOPORT, rid, 0x101c, 0x101c, 1,
    RF_ACTIVE);

Thanks,
-Nate


More information about the freebsd-arch mailing list