switch-coreboot/include
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
..
arch/x86 include/arch/x86/amd_geodelx.h had duplicated #defines by accident in 2008-01-05 01:33:28 +00:00
device include/device/device.h: 2008-01-19 06:29:14 +00:00
console.h Add a banner function to lib/console.c that is SHARED so all code can 2008-01-04 23:12:22 +00:00
elf.h * start using arch/foo.h again instead of archfoo.h (trivial) 2007-06-29 16:57:23 +00:00
elf_boot.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
ip_checksum.h Update compute_ip_checksum.c and ip_checksum.h to the versions from 2007-03-06 14:46:57 +00:00
isa-dma.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
keyboard.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
lar.h Consolidate all multiple segment handling into 2007-11-28 22:50:00 +00:00
lib.h Add an ARRAY_SIZE() macro which returns the size of an array, regardless 2007-06-29 14:36:03 +00:00
mc146818rtc.h Stage0 and Stage1 improvements. Gets Geode LX into initram. Use LAR XIP. Add disable_CAR(). 2007-07-19 15:15:57 +00:00
post_code.h The current parameter situation of post_code() is rather mixed between 2008-01-07 16:34:34 +00:00
shared.h Fix SHARED macros in the non-_MAINOBJECT case. The patch I sent earlier 2007-11-28 22:51:31 +00:00
spd.h Add an spd_read_byte prototype to spd.h. This is because I am going to 2007-11-27 16:24:57 +00:00
spinlock.h Document origin of include/arch/x86/arch/spinlock.h and use proper 2007-07-03 16:58:16 +00:00
string.h Move the code from strings.h to a C file. We should really avoid 2007-11-24 22:17:26 +00:00
tables.h Add a pointer to the root device to the LinuxBIOS table. Used for 2007-09-25 00:22:18 +00:00
uart8250.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00