Files
OpenCellular/src/include
Edward O'Callaghan c2956e7752 device/pci_early.c: Mixes up variants of a typedefs to 'u32'
Unfortunately coreboot has to deal with ROMCC's short comings which has
lead to a little bit of confusion due to typedefs. Essentially, coreboot
defines four typedefs:

 * 'typedef struct device * device_t' in ramstage not in SIMPLE_DEVICE mode
 * 'typedef u32 device_t' in romstage or when SIMPLE_DEVICE is defined
 * 'typedef u32 pnp_devfn_t'
 * 'typedef u32 pci_devfn_t'

Some early functions make use of 'device_t' over 'pci_devfn_t' and since
the C type-checker does not enforce typedefs to the same type 'u32'
these are never noticed. Fix these so that 'device_t' does not conflict
in romstage for later work. We later plan to have 'pnp_devfn_t' and
'pci_devfn_t' as the only variants of 'u32' and 'device_t' to be a
struct pointer type exclusively.

Change-Id: I948801f5be968a934798f1bad7722649758cd4d3
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/6225
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
2014-07-19 11:57:06 +02:00
..
2014-05-01 15:40:11 +02:00
2014-05-26 10:52:16 +02:00
2014-02-11 21:55:30 +01:00
2013-07-11 22:36:19 +02:00
2014-06-25 06:23:07 +02:00
2012-05-08 00:36:09 +02:00
2013-05-10 00:06:46 +02:00
2013-11-25 23:13:50 +01:00
2014-01-10 18:08:31 +01:00
2013-07-11 22:36:19 +02:00
2013-07-11 22:36:19 +02:00
2013-07-11 22:36:19 +02:00