From owner-freebsd-hackers Thu May 24 19: 9:47 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 8CCEF37B423 for ; Thu, 24 May 2001 19:09:43 -0700 (PDT) (envelope-from imp@billy-club.village.org) Received: from billy-club.village.org (billy-club.village.org [10.0.0.3]) by rover.village.org (8.11.3/8.11.3) with ESMTP id f4P29g667879; Thu, 24 May 2001 20:09:42 -0600 (MDT) (envelope-from imp@billy-club.village.org) Received: from billy-club.village.org (localhost [127.0.0.1]) by billy-club.village.org (8.11.2/8.8.3) with ESMTP id f4P29ll39999; Thu, 24 May 2001 20:09:47 -0600 (MDT) Message-Id: <200105250209.f4P29ll39999@billy-club.village.org> To: j mckitrick Subject: Re: softc with resource sharing Cc: freebsd-hackers@FreeBSD.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> Date: Thu, 24 May 2001 20:09:47 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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