blob: 48c705e98de8066ba40e11ff3b7c41aef92812a2 [file] [log] [blame]
Patrick Rudolphd9078be2024-10-23 15:20:01 +02001// 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 */
19int armv8_cpu_fill_ssdt(const struct udevice *dev, struct acpi_ctx *ctx);
20
Patrick Rudolph613f1ed2024-10-23 15:20:06 +020021/**
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 */
29int armv8_cpu_fill_madt(const struct udevice *dev, struct acpi_ctx *ctx);
30
Patrick Rudolphd9078be2024-10-23 15:20:01 +020031#endif