coreboot/src/include/device
Kyösti Mälkki ef84401149 Add directive __SIMPLE_DEVICE__
The tests for __PRE_RAM__ or __SMM__ were repeatedly used
for detection if dev->ops in the devicetree are not available
and simple device model functions need be used.

If a source file build for ramstage had __PRE_RAM__ inserted
at the beginning, the struct device would no longer match the
allocation the object had taken. This problem is fixed by
replacing such cases with explicit __SIMPLE_DEVICE__.

Change-Id: Ib74c9b2d8753e6e37e1a23fcfaa2f3657790d4c0
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/3555
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@google.com>
2013-08-01 15:57:11 +02:00
..
dram include: Fix spelling 2013-07-11 22:36:19 +02:00
agp.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
cardbus.h Remove the rest of cardbus_scan_bus. 2010-06-07 17:12:57 +00:00
device.h Add directive __SIMPLE_DEVICE__ 2013-08-01 15:57:11 +02:00
drm_dp_helper.h FUI: reorganize include files 2013-07-10 02:39:42 +02:00
early_smbus.h (Trivial) early_smbus: fix printsmbus macro 2013-06-06 08:52:57 +02:00
hypertransport.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
hypertransport_def.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
i2c.h i2c: Change the type of the data parameter to uint8_t. 2013-07-10 23:19:49 +02:00
i915.h FUI: reorganize include files 2013-07-10 02:39:42 +02:00
i915_reg.h FUI: reorganize include files 2013-07-10 02:39:42 +02:00
path.h sconfig: rename lapic_cluster -> cpu_cluster 2013-02-14 07:07:20 +01:00
pci.h Add directive __SIMPLE_DEVICE__ 2013-08-01 15:57:11 +02:00
pci_def.h include: Fix spelling 2013-07-11 22:36:19 +02:00
pci_ids.h AMD Fam15tn: Add IOMMU BAR allocation to northbridge 2013-06-24 00:52:50 +02:00
pci_ops.h Add directive __SIMPLE_DEVICE__ 2013-08-01 15:57:11 +02:00
pci_rom.h Add OPROM mapping support to coreboot 2012-02-07 00:09:58 +01:00
pciexp.h Add support for enabling PCIe Common Clock and ASPM 2012-03-29 22:16:07 +02:00
pcix.h Cosmetics and coding style fixes in devices/*. 2010-10-18 00:00:57 +00:00
pnp.h Add directive __SIMPLE_DEVICE__ 2013-08-01 15:57:11 +02:00
pnp_def.h This is a general cleanup patch 2010-02-22 06:09:43 +00:00
resource.h resources: introduce IORESOURCE_WRCOMB 2013-03-29 19:54:08 +01:00
smbus.h Cosmetics and coding style fixes in devices/*. 2010-10-18 00:00:57 +00:00
smbus_def.h - Update the device header files 2004-10-14 21:10:23 +00:00