From owner-freebsd-hackers Sat Jan 15 20: 7:36 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [63.67.141.99]) by hub.freebsd.org (Postfix) with ESMTP id 9AC4B15007 for ; Sat, 15 Jan 2000 20:07:34 -0800 (PST) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.9.3/8.8.7) with ESMTP id XAA32782; Sat, 15 Jan 2000 23:07:23 -0500 (EST) Date: Sat, 15 Jan 2000 23:07:23 -0500 (EST) From: "Matthew N. Dodd" To: Michael Kennett Cc: hackers@FreeBSD.ORG Subject: Re: Use of newbus in sys/pci/pci.c In-Reply-To: <200001150332.LAA24167@laurasia.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 15 Jan 2000, Michael Kennett wrote: > I don't understand the line that extracts the ivars from the child > device. Isn't it the case that the ivars are a property of the bus > device (dev)? No since the parent may not be a PCI device. In any case we're dealing with a device (child) that wishes to make a resource allocation; the parent device provides methods for this and its methods store the relevent information on the structure assigned to the device IVARS (by the parent). The IVARS belong to the device, not the parent. I've probably not helped much but the code is correct. -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | This Space For Rent | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message