xref: /netbsd-src/sys/arch/arm/acpi/acpi_iort.h (revision 172ad57d3874bb19819821469d3c552770812007)
1*172ad57dSjmcneill /* $NetBSD: acpi_iort.h,v 1.3 2024/12/09 21:56:19 jmcneill Exp $ */
2e23c320eSjmcneill 
3e23c320eSjmcneill /*-
4e23c320eSjmcneill  * Copyright (c) 2018 The NetBSD Foundation, Inc.
5e23c320eSjmcneill  * All rights reserved.
6e23c320eSjmcneill  *
7e23c320eSjmcneill  * This code is derived from software contributed to The NetBSD Foundation
8e23c320eSjmcneill  * by Jared McNeill <jmcneill@invisible.ca>.
9e23c320eSjmcneill  *
10e23c320eSjmcneill  * Redistribution and use in source and binary forms, with or without
11e23c320eSjmcneill  * modification, are permitted provided that the following conditions
12e23c320eSjmcneill  * are met:
13e23c320eSjmcneill  * 1. Redistributions of source code must retain the above copyright
14e23c320eSjmcneill  *    notice, this list of conditions and the following disclaimer.
15e23c320eSjmcneill  * 2. Redistributions in binary form must reproduce the above copyright
16e23c320eSjmcneill  *    notice, this list of conditions and the following disclaimer in the
17e23c320eSjmcneill  *    documentation and/or other materials provided with the distribution.
18e23c320eSjmcneill  *
19e23c320eSjmcneill  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20e23c320eSjmcneill  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21e23c320eSjmcneill  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22e23c320eSjmcneill  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23e23c320eSjmcneill  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24e23c320eSjmcneill  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25e23c320eSjmcneill  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26e23c320eSjmcneill  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27e23c320eSjmcneill  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28e23c320eSjmcneill  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29e23c320eSjmcneill  * POSSIBILITY OF SUCH DAMAGE.
30e23c320eSjmcneill  */
31e23c320eSjmcneill 
32e23c320eSjmcneill #ifndef _ARM_ACPI_ACPI_IORT_H
33e23c320eSjmcneill #define _ARM_ACPI_ACPI_IORT_H
34e23c320eSjmcneill 
35e23c320eSjmcneill uint32_t	acpi_iort_pci_root_map(u_int, uint32_t);
368b7fb0a6Sjmcneill uint32_t	acpi_iort_its_id_map(u_int, uint32_t);
37*172ad57dSjmcneill ACPI_STATUS	acpi_iort_named_component(ACPI_HANDLE,
38*172ad57dSjmcneill 					  ACPI_IORT_NAMED_COMPONENT **);
39e23c320eSjmcneill 
40e23c320eSjmcneill #endif /* !_ARM_ACPI_ACPI_IORT_H */
41