diff options
author | Naresh Solanki <naresh.solanki@9elements.com> | 2023-12-06 19:58:48 +0530 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2024-10-03 20:50:25 +0000 |
commit | 391342ee6de1944fd9cbcdc79e2d1bdcdd03b281 (patch) | |
tree | cc82f494418eb6dfa308ce2e75edaa3e0c726683 /src/include | |
parent | f9e877ea2173696028ded8e82fbe51e13085865b (diff) |
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 <naresh.solanki@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79404
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/acpi/acpi_iort.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 |