coreboot/src/device
Robert Zieba 219cb952f8 device/xhci: Add functions to work with resource pointers
The XHCI device functions currently use functions that require a
access to the device tree. Create variant of these functions that can
operate with a resource* as an argument and refactor the existing
device*-based functions to operate by calling the resource*-based
variants. This is useful for stages like SMM that may not have access to
the device tree.

BRANCH=guybrush
BUG=b:186792595
TEST=Ran on skyrim device, verified that XHCI ACPI tables are still
generated correctly.

Change-Id: If5a74f9529d5dc6031ec968ef5f40a9cad5ffbc4
Signed-off-by: Robert Zieba <robertzieba@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69914
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
2023-03-05 15:32:34 +00:00
..
dram device/dram/spd.c: Add Nanya's Manufacturer ID 2023-02-27 16:40:25 +00:00
oprom treewide: Remove repeated words 2023-02-09 10:04:04 +00:00
azalia_device.c treewide: Get rid of CONFIG_AZALIA_MAX_CODECS 2022-02-22 17:40:30 +00:00
cardbus_device.c src/device: Clean up includes 2022-10-26 16:38:11 +00:00
cpu_device.c device/cpu_device.c: Zero initialize struct 2022-12-14 13:52:00 +00:00
device.c arch/x86/ebda.c: Move setting up ebda to a BS hook 2022-05-17 11:24:12 +00:00
device_const.c src/device + util/sconfig: Introduce new device 'mdio' 2022-11-24 05:53:55 +00:00
device_util.c src/device + util/sconfig: Introduce new device 'mdio' 2022-11-24 05:53:55 +00:00
gpio.c src/device: Clean up includes 2022-10-26 16:38:11 +00:00
i2c.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
i2c_bus.c src/device: Clean up includes 2022-10-26 16:38:11 +00:00
Kconfig device: Add Kconfig options for D3COLD_SUPPORT and NO_S0IX_SUPPORT 2023-02-17 13:25:20 +00:00
Makefile.inc device/xhci: Add functions to work with resource pointers 2023-03-05 15:32:34 +00:00
mdio.c device/mdio: Provide helper functions for read and write 2022-11-24 05:58:28 +00:00
mmio.c src/device: Clean up includes 2022-10-26 16:38:11 +00:00
pci_class.c src/device: Clean up includes 2022-10-26 16:38:11 +00:00
pci_device.c device/pci_device.c: Add way to limit max bus numbers 2023-02-06 00:22:46 +00:00
pci_early.c treewide: Remove duplicated include <device/pci.h> 2023-02-01 03:03:34 +00:00
pci_ops.c treewide: Remove duplicated include <device/pci.h> 2023-02-01 03:03:34 +00:00
pci_rom.c src/device/pci_: Remove unnecessary space after casts 2022-11-22 13:41:26 +00:00
pciexp_device.c device/pciexp_device.c: Do not enable common clock if already active 2023-03-02 13:04:15 +00:00
pcix_device.c src/device: Clean up includes 2022-10-26 16:38:11 +00:00
pnp_device.c src/device: Clean up includes 2022-10-26 16:38:11 +00:00
resource_allocator_common.c src/device: Clean up includes 2022-10-26 16:38:11 +00:00
resource_allocator_v4.c src/device: Clean up includes 2022-10-26 16:38:11 +00:00
root_device.c device: Export enable_static_device() function 2020-10-21 15:35:24 +00:00
smbus_ops.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
software_i2c.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
xhci.c device/xhci: Add functions to work with resource pointers 2023-03-05 15:32:34 +00:00
xhci_resource.c device/xhci: Add functions to work with resource pointers 2023-03-05 15:32:34 +00:00