In message <[EMAIL PROTECTED]> j mckitrick writes:
: Well, all of the resources have already been allocated when the ppc device
: has been attached.  The hardware port and interrupt have already been
: reserved and stored in the softc data structure for ppc.  All devices
: attached to ppc, like ppbus, are currently calling macros that call
: hardcoded inb/outb calls in sys/isa/ppcreg.h.  I am trying to figure out if
: i should rewrite the macros to use the correct bus_space calls, or store the
: info lower down, with each device's softc where it is more accessible.  At
: this point, all access to the parallel port IO registers is passed to the
: ppc device, and i am wondering if this should change and be handled be each
: device instead.

You should likely rewrite the macros to either call a method in the
parent device (eg ppbus_read_1()).  The alternative would be to
allocate the resource shared many times and manage it like that.

Warner

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to