acpi.c (a23e1966932464e1c5226cb9ac4ce1d5fc10ba22) | acpi.c (eabd9db64ea8ba64d2a0b1d70da38e1a95dcd08b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * RISC-V Specific Low-Level ACPI Boot Support 4 * 5 * Copyright (C) 2013-2014, Linaro Ltd. 6 * Author: Al Stone <al.stone@linaro.org> 7 * Author: Graeme Gregory <graeme.gregory@linaro.org> 8 * Author: Hanjun Guo <hanjun.guo@linaro.org> --- 177 unchanged lines hidden (view full) --- 186 } 187} 188 189struct acpi_madt_rintc *acpi_cpu_get_madt_rintc(int cpu) 190{ 191 return &cpu_madt_rintc[cpu]; 192} 193 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * RISC-V Specific Low-Level ACPI Boot Support 4 * 5 * Copyright (C) 2013-2014, Linaro Ltd. 6 * Author: Al Stone <al.stone@linaro.org> 7 * Author: Graeme Gregory <graeme.gregory@linaro.org> 8 * Author: Hanjun Guo <hanjun.guo@linaro.org> --- 177 unchanged lines hidden (view full) --- 186 } 187} 188 189struct acpi_madt_rintc *acpi_cpu_get_madt_rintc(int cpu) 190{ 191 return &cpu_madt_rintc[cpu]; 192} 193 |
194u32 get_acpi_id_for_cpu(int cpu) 195{ 196 return acpi_cpu_get_madt_rintc(cpu)->uid; 197} 198 | |
199/* 200 * __acpi_map_table() will be called before paging_init(), so early_ioremap() 201 * or early_memremap() should be called here to for ACPI table mapping. 202 */ 203void __init __iomem *__acpi_map_table(unsigned long phys, unsigned long size) 204{ 205 if (!size) 206 return NULL; --- 128 unchanged lines hidden --- | 194/* 195 * __acpi_map_table() will be called before paging_init(), so early_ioremap() 196 * or early_memremap() should be called here to for ACPI table mapping. 197 */ 198void __init __iomem *__acpi_map_table(unsigned long phys, unsigned long size) 199{ 200 if (!size) 201 return NULL; --- 128 unchanged lines hidden --- |