coreboot/src/include/device
Furquan Shaikh 28e61f1634 device: Use __pci_0_00_0_config in config_of_soc()
This change updates the definition of config_of_soc() to a macro that
expands to __pci_0_00_0_config instead of accessing the config
structure by referencing the struct device. This allows linker to
optimize out unused portions of the device tree from early stages.

With this change, bootblock .text section size drops as follows:

Platform       | Size without change | Size with change | Reduction   |
---------------|---------------------|------------------|-------------|
GLK (ampton)   |  27112 bytes        |  9832 bytes      | 17280 bytes |
APL (reef)     |  26488 bytes        | 17528 bytes      |  8960 bytes |
TGL (volteer2) |  47760 bytes        | 21648 bytes      | 26112 bytes |
CML (hatch)    |  40616 bytes        | 22792 bytes      | 17824 bytes |
JSL (waddledee)|  37872 bytes        | 19408 bytes      | 18464 bytes |
KBL (soraka)   |  31840 bytes        | 21568 bytes      | 10272 bytes |

As static.h is now included in device.h which gets pulled in during
the unit tests, a dummy static.h is added under tests/include.

Change-Id: I1fbf5b9817065e967e46188739978a1cc96c2c7e
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49215
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Nico Huber <nico.h@gmx.de>
2021-01-12 05:22:40 +00:00
..
dram src: Change bare 'unsigned' to 'unsigned int' 2020-11-16 11:03:16 +00:00
azalia.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
azalia_device.h device/azalia_device.c: Add codec reset helpers 2020-12-17 13:55:10 +00:00
cardbus.h src: Use of device_t is deprecated 2018-06-14 09:29:31 +00:00
device.h device: Use __pci_0_00_0_config in config_of_soc() 2021-01-12 05:22:40 +00:00
gpio.h device + util/sconfig: introduce new device gpio 2020-12-28 17:47:04 +00:00
i2c.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
i2c_bus.h src/include: Add missing includes 2020-07-26 21:37:35 +00:00
i2c_simple.h src/include: Add missing includes 2020-07-26 21:37:35 +00:00
mipi_ids.h drivers/soundwire/alc711: Add Realtek ALC711 soundwire device 2020-10-30 04:08:17 +00:00
mmio.h Update bit field helpers to support more bit field operate 2020-10-15 13:44:34 +00:00
path.h device + util/sconfig: introduce new device gpio 2020-12-28 17:47:04 +00:00
pci.h device: Move pci_dev_is_wake_source function 2020-11-09 07:37:57 +00:00
pci_def.h src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
pci_ehci.h src/include: Add missing includes 2020-07-26 21:37:35 +00:00
pci_ids.h soc/intel/alderlake: Add PCH ID 0x5182 2021-01-12 05:18:51 +00:00
pci_mmio_cfg.h src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
pci_ops.h device: Move pci_dev_is_wake_source function 2020-11-09 07:37:57 +00:00
pci_rom.h src/include: Add missing includes 2020-07-26 21:37:35 +00:00
pci_type.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pciexp.h pciexp: Add support for allocating PCI express hotplug resources 2020-02-05 09:32:30 +00:00
pcix.h src/include: Add missing includes 2020-07-26 21:37:35 +00:00
pnp.h device/pnp: add register PNP_IO4 2020-12-28 21:01:08 +00:00
pnp_def.h device/pnp: add register PNP_IO4 2020-12-28 21:01:08 +00:00
pnp_ops.h src: Include <arch/io.h> when appropriate 2020-10-26 06:44:40 +00:00
pnp_type.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
resource.h src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
smbus.h device/smbus_host: Declare common early SMBus prototypes 2020-06-22 11:53:31 +00:00
smbus_def.h Reinvent I2C ops 2017-08-18 15:33:45 +00:00
smbus_host.h src/include: Add missing includes 2020-07-26 21:37:35 +00:00
soundwire.h src/include: Add missing includes 2020-07-26 21:37:35 +00:00
spi.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
xhci.h device/xhci: Add helper method to iterate over xhci_supported_protocl 2020-07-12 17:01:24 +00:00