Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jan 2000 23:07:23 -0500 (EST)
From:      "Matthew N. Dodd" <winter@jurai.net>
To:        Michael Kennett <mike@laurasia.com.au>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Use of newbus in sys/pci/pci.c
Message-ID:  <Pine.BSF.4.21.0001152303410.462-100000@sasami.jurai.net>
In-Reply-To: <200001150332.LAA24167@laurasia.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0001152303410.462-100000>