diff options
author | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2021-02-25 13:14:49 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-03-01 08:26:23 +0000 |
commit | d40a4c2bb4d237c174ef11ad73afc5a67ed555e7 (patch) | |
tree | dccf1a43deddc32ece6f1c9db63acd3a136a26e3 /src/acpi/acpigen.c | |
parent | 740cd31858275b25fb7d0d224720739967f4e06e (diff) | |
download | coreboot-d40a4c2bb4d237c174ef11ad73afc5a67ed555e7.tar.xz |
acpi: Move PCI functions to separate file
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: Idc96b99da9f9037267c0bec2c839014b13ceb8cc
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51106
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Lance Zhao
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/acpi/acpigen.c')
-rw-r--r-- | src/acpi/acpigen.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c index 4d9395fab7..b3e112d800 100644 --- a/src/acpi/acpigen.c +++ b/src/acpi/acpigen.c @@ -18,8 +18,6 @@ #include <assert.h> #include <console/console.h> #include <device/device.h> -#include <device/pci_def.h> -#include <device/pci_type.h> #include <device/soundwire.h> #include <types.h> @@ -2033,23 +2031,6 @@ void acpigen_write_ADR(uint64_t adr) acpigen_write_name_qword("_ADR", adr); } -void acpigen_write_ADR_pci_devfn(pci_devfn_t devfn) -{ - /* - * _ADR for PCI Bus is encoded as follows: - * [63:32] - unused - * [31:16] - device # - * [15:0] - function # - */ - acpigen_write_ADR(PCI_SLOT(devfn) << 16 | PCI_FUNC(devfn)); -} - -void acpigen_write_ADR_pci_device(const struct device *dev) -{ - assert(dev->path.type == DEVICE_PATH_PCI); - acpigen_write_ADR_pci_devfn(dev->path.pci.devfn); -} - /** * acpigen_write_ADR_soundwire_device() - SoundWire ACPI Device Address Encoding. * @address: SoundWire device address properties. |