switch-coreboot/device
Ronald G. Minnich 7c1623aec3 include/device/device.h:
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
2008-01-19 06:29:14 +00:00
..
agp_device.c Constify structs which can be const. 2007-11-26 13:28:52 +00:00
cardbus_device.c Constify structs which can be const. 2007-11-26 13:28:52 +00:00
device.c include/device/device.h: 2008-01-19 06:29:14 +00:00
device_util.c Add resource size and resource granularity reporting to device_util.c. 2007-10-16 19:29:34 +00:00
hypertransport.c Constify structs which can be const. 2007-11-26 13:28:52 +00:00
Kconfig Various Kconfig file fixes (trivial). 2007-06-29 13:28:33 +00:00
Makefile * move post_code() to a seperate file 2007-07-23 16:49:00 +00:00
pci_device.c The current parameter situation of post_code() is rather mixed between 2008-01-07 16:34:34 +00:00
pci_ops.c Massive file rename and moving orgy: 2007-05-05 21:36:52 +00:00
pci_rom.c The attached patch adds code to checksum the pci extension rom and warn 2007-11-29 01:23:08 +00:00
pcie_device.c Constify structs which can be const. 2007-11-26 13:28:52 +00:00
pcix_device.c Constify structs which can be const. 2007-11-26 13:28:52 +00:00
pnp_device.c This patch changes all occurences of (working) %Lx to (standards 2007-08-26 12:06:51 +00:00
pnp_raw.c Various coding style and cosmetic fixes (trivial). 2007-10-31 02:40:17 +00:00
root_device.c Constify structs which can be const. 2007-11-26 13:28:52 +00:00
smbus_ops.c device code cleanup. this is the uncritical part of my device cleanup 2007-05-19 23:55:25 +00:00