Re: Use of newbus in sys/pci/pci.c

2000-01-16 Thread Doug Rabson
On Sat, 15 Jan 2000, Michael Kennett wrote: Hello All, I have a question on the sys/pci/pci.c code, and its use of the newbus architecture. An example of the code in question is: static struct resource * pci_alloc_resource(device_t dev, device_t child, int type, int *rid,

Use of newbus in sys/pci/pci.c

2000-01-15 Thread Michael Kennett
Hello All, I have a question on the sys/pci/pci.c code, and its use of the newbus architecture. An example of the code in question is: static struct resource * pci_alloc_resource(device_t dev, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int

Re: Use of newbus in sys/pci/pci.c

2000-01-15 Thread Matthew N. Dodd
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