Attention is currently required from: Christian Walter, Johnny Lin, Jonathan Zhang, Lean Sheng Tan, Shuo Liu, Tim Chu.
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/85595?usp=email )
Change subject: soc/intel/xeon_sp: Guard function prototypes ......................................................................
soc/intel/xeon_sp: Guard function prototypes
Guard function prototypes to allow the header to be used in ACPI code. The defines will be used in the next commit.
Change-Id: Id6c361155c914f168577833279b4b7cc317b2eec Signed-off-by: Patrick Rudolph patrick.rudolph@9elements.com --- M src/soc/intel/xeon_sp/include/soc/acpi.h 1 file changed, 9 insertions(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/85595/1
diff --git a/src/soc/intel/xeon_sp/include/soc/acpi.h b/src/soc/intel/xeon_sp/include/soc/acpi.h index 0e93dc2..d35b0fe 100644 --- a/src/soc/intel/xeon_sp/include/soc/acpi.h +++ b/src/soc/intel/xeon_sp/include/soc/acpi.h @@ -3,6 +3,7 @@ #ifndef _SOC_ACPI_H_ #define _SOC_ACPI_H_
+#ifndef __ACPI__ #include <acpi/acpi.h>
#define MAX_SRAT_MEM_ENTRIES_PER_IMC 8 @@ -23,6 +24,14 @@
void iio_domain_set_acpi_name(struct device *dev, const char *prefix);
+void acpigen_write_OSC_pci_domain_fixed_caps(const struct device *domain, + const uint32_t granted_pcie_features, + const bool is_cxl_domain, + const uint32_t granted_cxl_features); +void acpigen_write_pci_root_port(const struct device *rp); +void acpigen_write_PRT_pre_routed(const struct device *br); +#endif + #define PCIE_NATIVE_HOTPLUG_CONTROL 0x01 #define SHPC_NATIVE_HOTPLUG_CONTROL 0x02 #define PCIE_PME_CONTROL 0x04 @@ -33,11 +42,4 @@
#define CXL_ERROR_REPORTING_CONTROL 0x01
-void acpigen_write_OSC_pci_domain_fixed_caps(const struct device *domain, - const uint32_t granted_pcie_features, - const bool is_cxl_domain, - const uint32_t granted_cxl_features); -void acpigen_write_pci_root_port(const struct device *rp); -void acpigen_write_PRT_pre_routed(const struct device *br); - #endif /* _SOC_ACPI_H_ */