include/device/device.h
Remove old vendor,device struct members since we are now using the device_id struct. Change declaration of dev_find_device to use device_id struct. device/device_util.c Change dev_find_device to use device_id struct instead of vendor, device parameters. Add convenience function, dev_find_pci_device, to make it easier for users. device/pci_device.c Change uses of dev->vendor and dev->device to dev->id. Change prints of dev->vendor, dev->device to use the dev_id_string function. device/pci_rom.c Change uses of dev->vendor and dev->device to dev->id. southbridge/amd/cs5536/cs5536.c Change uses of dev_find_device to dev_find_pci_device southbridge/amd/cs5536/dts Add pciid of the cs5536 northbridge/amd/geodelx/dts add pciid of the geodelx northbridge. util/x86emu/vm86.c Change uses of dev_find_device to dev_find_pci_device With these changes, the chipsetinit function now finds the southbridge in the static tree, which is the first time this has worked in v3. This success in turn means that the chipsetinit code is running for the first time. We are still failing in "Finding PCI configuration type" Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://coreboot.org/repository/coreboot-v3@558 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
7c1623aec3
commit
68b97a6034
8 changed files with 58 additions and 35 deletions
|
|
@ -197,9 +197,6 @@ struct device {
|
|||
struct device_path path;
|
||||
struct device_id id;
|
||||
char dtsname[MAX_DTSNAME_SIZE]; /* the name from the dts */
|
||||
/* XXX remove this soon */
|
||||
unsigned device, vendor;
|
||||
/* XXX */
|
||||
u16 status;
|
||||
u8 revision;
|
||||
u8 cache_line;
|
||||
|
|
@ -266,7 +263,8 @@ void disable_children(struct bus *bus);
|
|||
/* Helper functions */
|
||||
struct device * find_dev_path(struct bus *parent, struct device_path *path);
|
||||
struct device * alloc_find_dev(struct bus *parent, struct device_path *path, struct device_id *id);
|
||||
struct device * dev_find_device (unsigned int vendor, unsigned int device, struct device * from);
|
||||
struct device * dev_find_device (struct device_id *devid, struct device * from);
|
||||
struct device *dev_find_pci_device(u16 vendor, u16 device, struct device *from);
|
||||
struct device * dev_find_class (unsigned int class, struct device * from);
|
||||
struct device * dev_find_slot (unsigned int bus, unsigned int devfn);
|
||||
struct device * dev_find_slot_on_smbus (unsigned int bus, unsigned int addr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue