Date: Thu, 24 May 2001 20:12:26 -0600 From: Warner Losh <imp@village.org> To: j mckitrick <jcm@FreeBSD-uk.eu.org> Cc: Alexander Langer <alex@big.endian.de>, freebsd-hackers@FreeBSD.ORG Subject: Re: softc with resource sharing Message-ID: <200105250212.f4P2CQl40015@billy-club.village.org> In-Reply-To: Your message of "Thu, 24 May 2001 12:23:35 BST." <20010524122335.A87551@dogma.freebsd-uk.eu.org> References: <20010524122335.A87551@dogma.freebsd-uk.eu.org> <20010524033453.A57329@dogma.freebsd-uk.eu.org> <20010524113815.C981@zerogravity.kawo2.rwth-aachen.d>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010524122335.A87551@dogma.freebsd-uk.eu.org> 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105250212.f4P2CQl40015>