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/include/acpi | |
parent | 740cd31858275b25fb7d0d224720739967f4e06e (diff) |
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/include/acpi')
-rw-r--r-- | src/include/acpi/acpigen.h | 2 | ||||
-rw-r--r-- | src/include/acpi/acpigen_pci.h | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h index 7b1141c908..f7974ebc55 100644 --- a/src/include/acpi/acpigen.h +++ b/src/include/acpi/acpigen.h @@ -394,8 +394,6 @@ void acpigen_write_return_byte(uint8_t arg); void acpigen_write_upc(enum acpi_upc_type type); void acpigen_write_pld(const struct acpi_pld *pld); void acpigen_write_ADR(uint64_t adr); -void acpigen_write_ADR_pci_devfn(pci_devfn_t devfn); -void acpigen_write_ADR_pci_device(const struct device *dev); struct soundwire_address; void acpigen_write_ADR_soundwire_device(const struct soundwire_address *address); void acpigen_write_create_byte_field(uint8_t op, size_t byte_offset, const char *name); diff --git a/src/include/acpi/acpigen_pci.h b/src/include/acpi/acpigen_pci.h new file mode 100644 index 0000000000..f05057530c --- /dev/null +++ b/src/include/acpi/acpigen_pci.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef ACPIGEN_PCI_H +#define ACPIGEN_PCI_H + +#include <device/device.h> +#include <device/pci_def.h> +#include <device/pci_type.h> + +void acpigen_write_ADR_pci_devfn(pci_devfn_t devfn); +void acpigen_write_ADR_pci_device(const struct device *dev); + +#endif /* ACPIGEN_PCI_H */ |