mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Change the ID constants so they are more useful for debugging. Instead of simple 1,2,3 they now are a 4-byte value which can be more useful when looking at memory with a debugger. Lots of variables can be '1', but fewer variables will match to 'PCID'. include/device/pci.h: Include pci_ids.h in pci.h device/device.c: remove silly comment. Change memcpy to struct assign, this makes it possible for the C compiler to do type checking. Add assign for the dev->id. flattree.c: Support the use of 'domainid' and 'pciid' in the per-chip dts. These IDs will be assigned to the static tree device struct. In conjunction with the earlier patch, this change removes the need for users to assign the ops struct member in the dts by hand, as it is done in the qemu port today. The ops struct member will automatically be assigned by the dev_init function, which is run in stage2 before any actual device code is run. (This change to dev_init was in the previous patch). Added two comments that document what is going on. 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@557 f3766cd6-281f-0410-b1cd-43a5c92072e9 |
||
---|---|---|
.. | ||
agp_device.c | ||
cardbus_device.c | ||
device.c | ||
device_util.c | ||
hypertransport.c | ||
Kconfig | ||
Makefile | ||
pci_device.c | ||
pci_ops.c | ||
pci_rom.c | ||
pcie_device.c | ||
pcix_device.c | ||
pnp_device.c | ||
pnp_raw.c | ||
root_device.c | ||
smbus_ops.c |