Date: Thu, 24 May 2001 20:09:47 -0600 From: Warner Losh <imp@village.org> To: j mckitrick <jcm@FreeBSD-uk.eu.org> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: softc with resource sharing Message-ID: <200105250209.f4P29ll39999@billy-club.village.org> In-Reply-To: Your message of "Thu, 24 May 2001 03:34:53 BST." <20010524033453.A57329@dogma.freebsd-uk.eu.org> References: <20010524033453.A57329@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010524033453.A57329@dogma.freebsd-uk.eu.org> j mckitrick writes: : Any devices using the ppbus will end up sharing the hardware port. If i want : to access this resource info, should i store it in my local driver's softc : structure, or extract it from the parent device (ppbus)? There should be a method for getting the resource for the parent. bus_alloc_resource is that method. The parent should manage its children's resources, even if they all map to the same port(s). You shouldn't be extracting it more directly from the parent. 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?200105250209.f4P29ll39999>