Lines Matching +full:2013 +full:- +full:2023

1 // SPDX-License-Identifier: GPL-2.0-only
3 * RISC-V Specific Low-Level ACPI Boot Support
5 * Copyright (C) 2013-2014, Linaro Ltd.
12 * Copyright (C) 2021-2023, Ventana Micro Systems Inc.
40 return -EINVAL; in parse_acpi()
50 return -EINVAL; /* Core will print when we return error */ in parse_acpi()
57 * acpi_fadt_sanity_check() - Check FADT presence and carry out sanity
78 return -ENODEV; in acpi_fadt_sanity_check()
88 * for HW_REDUCED flag. However, once RISC-V updates are released in in acpi_fadt_sanity_check()
91 if (table->revision < 6 || (table->revision == 6 && fadt->minor_revision < 5)) in acpi_fadt_sanity_check()
93 table->revision, fadt->minor_revision); in acpi_fadt_sanity_check()
95 if (!(fadt->flags & ACPI_FADT_HW_REDUCED)) { in acpi_fadt_sanity_check()
97 ret = -EINVAL; in acpi_fadt_sanity_check()
114 * We can parse ACPI boot-time tables such as MADT after
119 * - ACPI tables are initialized and sanity checks passed
120 * - acpi=force was passed in the command line and ACPI was not disabled
129 * - ACPI has been disabled explicitly (acpi=off), or in acpi_boot_table_init()
130 * - firmware has not populated ACPI ptr in EFI system table in acpi_boot_table_init()
171 if (!(rintc->flags & ACPI_MADT_ENABLED)) in acpi_parse_madt_rintc()
174 cpuid = riscv_hartid_to_cpuid(rintc->hart_id); in acpi_parse_madt_rintc()
233 u64 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT); in acpi_os_ioremap()
235 if (phys < md->phys_addr || phys >= end) in acpi_os_ioremap()
254 switch (region->type) { in acpi_os_ioremap()
300 if (region->attribute & EFI_MEMORY_WB) in acpi_os_ioremap()
302 else if ((region->attribute & EFI_MEMORY_WC) || in acpi_os_ioremap()
303 (region->attribute & EFI_MEMORY_WT)) in acpi_os_ioremap()
314 * raw_pci_read/write - Platform-specific PCI config space access.
323 return b->ops->read(b, devfn, reg, len, val); in raw_pci_read()
333 return b->ops->write(b, devfn, reg, len, val); in raw_pci_write()