1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 3 * Copyright 2024 9elements GmbH 4 */ 5 #include <dm/acpi.h> 6 #include <dm/device.h> 7 8 #ifndef _ARMV8_CPU_H_ 9 #define _ARMV8_CPU_H_ 10 11 /** 12 * armv8_cpu_fill_ssdt() - Fill the SSDT 13 * Parses the FDT and writes the SSDT nodes. 14 * 15 * @dev: cpu device to generate ACPI tables for 16 * @ctx: ACPI context pointer 17 * @return: 0 if OK, or a negative error code. 18 */ 19 int armv8_cpu_fill_ssdt(const struct udevice *dev, struct acpi_ctx *ctx); 20 21 /** 22 * armv8_cpu_fill_madt() - Fill the MADT 23 * Parses the FDT and writes the MADT subtables. 24 * 25 * @dev: cpu device to generate ACPI tables for 26 * @ctx: ACPI context pointer 27 * @return: 0 if OK, or a negative error code. 28 */ 29 int armv8_cpu_fill_madt(const struct udevice *dev, struct acpi_ctx *ctx); 30 31 #endif