1 /* 2 * Copyright (c) 2023 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include "mock.h" 8 9 #include <zephyr/acpi/acpi.h> 10 #include <acpi.h> 11 #include <accommon.h> 12 13 #include <zephyr/fff.h> 14 15 FAKE_VOID_FUNC_VARARG(AcpiInfo, const char *, ...); 16 17 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiInstallNotifyHandler, ACPI_HANDLE, 18 UINT32, ACPI_NOTIFY_HANDLER, void *); 19 20 FAKE_VOID_FUNC_VARARG(AcpiException, const char *, UINT32, ACPI_STATUS, 21 const char *, ...); 22 23 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiInitializeSubsystem); 24 25 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiInitializeTables, ACPI_TABLE_DESC *, UINT32, 26 BOOLEAN); 27 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiEnableSubsystem, UINT32); 28 29 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiInitializeObjects, UINT32); 30 31 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiLoadTables); 32 33 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiNsInternalizeName, const char *, char **); 34 35 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiNsLookup, ACPI_GENERIC_STATE *, char *, 36 ACPI_OBJECT_TYPE, ACPI_INTERPRETER_MODE, UINT32, 37 ACPI_WALK_STATE *, struct acpi_namespace_node **); 38 39 FAKE_VOID_FUNC(AcpiOsFree, void *); 40 41 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiGetHandle, ACPI_HANDLE, const char *, 42 ACPI_HANDLE *); 43 44 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiEvaluateObject, ACPI_HANDLE, ACPI_STRING, 45 ACPI_OBJECT_LIST *, ACPI_BUFFER *); 46 47 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiGetObjectInfo, ACPI_HANDLE, 48 struct acpi_device_info **); 49 50 FAKE_VALUE_FUNC(char *, AcpiNsGetNormalizedPathname, ACPI_NAMESPACE_NODE *, 51 BOOLEAN); 52 53 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiGetCurrentResources, ACPI_HANDLE, ACPI_BUFFER *); 54 55 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiWalkNamespace, ACPI_OBJECT_TYPE, ACPI_HANDLE, 56 UINT32, ACPI_WALK_CALLBACK, ACPI_WALK_CALLBACK, void *, void **); 57 58 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiGetPossibleResources, ACPI_HANDLE, ACPI_BUFFER *); 59 60 FAKE_VALUE_FUNC(ACPI_STATUS, AcpiGetTable, char *, UINT32, 61 struct acpi_table_header **); 62 63 FAKE_VALUE_FUNC(uint32_t, arch_acpi_encode_irq_flags, uint8_t, uint8_t); 64