From 391342ee6de1944fd9cbcdc79e2d1bdcdd03b281 Mon Sep 17 00:00:00 2001 From: Naresh Solanki Date: Wed, 6 Dec 2023 19:58:48 +0530 Subject: acpi: Add IORT helper functions IORT table represents IO topology of an Arm based system for use with the Advanced Configuration and Power Interface (ACPI) Add helper functions for ACPI IORT table for: 1. ITS (Interrupt Translation Service) 2. SMMUV3 3. ID MAP 4. Named Component 5. Root Complex Based on document: DEN0049E_IO_Remapping_Table_E.e Change-Id: I7feaf306b5eea21bfc9a2e2a1a2c3ddc3c683c0b Signed-off-by: Naresh Solanki Reviewed-on: https://review.coreboot.org/c/coreboot/+/79404 Reviewed-by: Arthur Heymans Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/include/acpi/acpi_iort.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/include') diff --git a/src/include/acpi/acpi_iort.h b/src/include/acpi/acpi_iort.h index 74a520d6a6..125b3a1d5d 100644 --- a/src/include/acpi/acpi_iort.h +++ b/src/include/acpi/acpi_iort.h @@ -110,4 +110,26 @@ typedef struct acpi_iort_root_complex { unsigned long acpi_soc_fill_iort(acpi_iort_t *iort, unsigned long current); +/* ITS Group */ +unsigned long acpi_iort_its_entry(unsigned long current, acpi_iort_t *iort, acpi_iort_node_t **its, + u32 its_count, u32 *identifiers); + +/* SMMUv3 */ +unsigned long acpi_iort_smmuv3_entry(unsigned long current, acpi_iort_t *iort, + acpi_iort_node_t **smmu_v3, u64 base, u32 flags); + +/* ID mapping */ +unsigned long acpi_iort_id_map_entry(unsigned long current, acpi_iort_node_t *node, u32 input_base, + u32 id_count, u32 output_base, u32 output_reference, + u32 flags); + +/* Named Component */ +unsigned long acpi_iort_nc_entry(unsigned long current, acpi_iort_t *iort, acpi_iort_node_t **nc, + u32 node_flags, u64 memory_properties, u32 memory_address_limit, + char *device_name); +/* Root Complex */ +unsigned long acpi_iort_rc_entry(unsigned long current, acpi_iort_t *node, acpi_iort_node_t **rc, + u64 memory_properties, u32 ats_attribute, u32 pci_segment_number, + u8 memory_address_limit, u16 pasid_capabilities); + #endif -- cgit v1.2.3