coreboot/src/include/device
Furquan Shaikh 69395742b8 device: Move resource allocation into a separate compilation unit
This change moves the resource allocator functions out of device.c
and into two separate files:

1. resource_allocator_v3.c: This is the old implementation of
resource allocator that uses a single window for resource
allocation. It is required to support some AMD chipsets that do not
provide an accurate map of allocated resources by the time the
allocator runs. They work fine with the old allocator since it
restricts itself to allocations in a single window at the top of the
4G space.

2. resource_allocator_common.c: This file contains the functions that can
be shared by the old and new resource allocator.

Entry point into the resource allocation is allocate_resources() which
can be implemented by both old and new allocators. This change also
adds a Kconfig option RESOURCE_ALLOCATOR_V3 which enables the old
resource allocator. This config option is enabled by default
currently, but in the following CLs this will be enabled only for the
broken boards.

Reason for this split: Both the old and new resource allocators need
to be retained in the tree until the broken chipsets are fixed.

Change-Id: I2f5440cf83c6e9e15a5f22e79cc3c66aa2cec4c0
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41442
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Mike Banon <mikebdp2@gmail.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-05-26 15:15:21 +00:00
..
dram treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
azalia.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
azalia_device.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cardbus.h
device.h device/pci_device: Extract pci_domain_set_resources from SOC 2020-05-12 20:07:25 +00:00
drm_dp_helper.h
hypertransport.h device/hypertransport: Drop unused code 2019-11-22 10:41:10 +00:00
hypertransport_def.h nb/amd/fam10: Drop support 2019-11-20 19:08:30 +00:00
i2c.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
i2c_bus.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
i2c_simple.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mipi_ids.h drivers/soundwire/alc5682: Support Realtek ALC5682 SoundWire device 2020-05-22 01:48:59 +00:00
mmio.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
path.h util/sconfig: Add LPC and ESPI buses 2020-05-12 20:12:17 +00:00
pci.h device/pci_early: Drop some __SIMPLE_DEVICE__ use 2019-09-30 20:06:06 +00:00
pci_def.h pciexp: Add support for allocating PCI express hotplug resources 2020-02-05 09:32:30 +00:00
pci_ehci.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci_ids.h device/pci_id: Add Tiger Lake TCSS device ID 2020-04-29 17:19:26 +00:00
pci_mmio_cfg.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci_ops.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci_rom.h acpi: Move ACPI table support out of arch/x86 (3/5) 2020-05-02 18:45:16 +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
pnp.h superio/common/conf_mode: Add op to write SSDT 2019-12-22 13:47:39 +00:00
pnp_def.h
pnp_ops.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pnp_type.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
resource.h device: Move resource allocation into a separate compilation unit 2020-05-26 15:15:21 +00:00
smbus.h device/smbus: Drop unused smbus_set_link() 2020-01-04 22:08:38 +00:00
smbus_def.h
smbus_host.h southbridge/intel/common: Add Process Call 2020-05-12 20:08:20 +00:00
soundwire.h device: Add definitions for SoundWire specification 2020-05-19 17:43:11 +00:00
spi.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00