aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authorDmitry Salychev <dsl@mcusim.org>2021-08-07 17:17:57 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2021-08-07 17:30:38 +0000
commitd178b1f878ae5b1b4e574bcf34d21b60855bf5a0 (patch)
treeaacdb47eec1e19ec6d925752f8629388e391ae9e /sys/dev/acpica
parentcd38d9cf26db9264f709c52469f0f4e9684d62bb (diff)
downloadsrc-d178b1f878ae5b1b4e574bcf34d21b60855bf5a0.tar.gz
src-d178b1f878ae5b1b4e574bcf34d21b60855bf5a0.zip
Parse named nodes from IORT ACPI on arm64
Add the ability to map named components from IORT to their SMMU or ITS node in order to setup interrupts. It is now possible to find a node by its name (substring) and resource ID similar to PCI nodes. This is needed by work on a driver for NXP's Second Generation Data Path Acceleration Architecture (DPAA2). Reviewed by: andrew MFC after: 2 weeks Differential Revision:: https://reviews.freebsd.org/D31267
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpivar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h
index 980a004e2c35..1f64b479d414 100644
--- a/sys/dev/acpica/acpivar.h
+++ b/sys/dev/acpica/acpivar.h
@@ -578,6 +578,10 @@ int acpi_get_domain(device_t dev, device_t child, int *domain);
int acpi_iort_map_pci_msi(u_int seg, u_int rid, u_int *xref, u_int *devid);
int acpi_iort_map_pci_smmuv3(u_int seg, u_int rid, u_int *xref, u_int *devid);
int acpi_iort_its_lookup(u_int its_id, u_int *xref, int *pxm);
+int acpi_iort_map_named_msi(const char *devname, u_int rid, u_int *xref,
+ u_int *devid);
+int acpi_iort_map_named_smmuv3(const char *devname, u_int rid, u_int *xref,
+ u_int *devid);
#endif
#endif /* _KERNEL */
#endif /* !_ACPIVAR_H_ */