Skip to content

Commit

Permalink
tests: lib: acpi: add fake x86 acpi function
Browse files Browse the repository at this point in the history
add fake x86 acpi function and config macros for acpi unit test

Signed-off-by: Najumon B.A <[email protected]>
  • Loading branch information
najumon1980 authored and carlescufi committed Jan 31, 2024
1 parent 6e7f50d commit 62b2af7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/lib/acpi/unit/src/mock.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "mock.h"
#include <zephyr/acpi/acpi.h>

#include <acpi.h>
#include <accommon.h>
#include <acapps.h>
Expand Down Expand Up @@ -65,3 +64,5 @@ FAKE_VALUE_FUNC(ACPI_STATUS, AcpiGetPossibleResources, ACPI_HANDLE, ACPI_BUFFER

FAKE_VALUE_FUNC(ACPI_STATUS, AcpiGetTable, char *, UINT32,
struct acpi_table_header **);

FAKE_VALUE_FUNC(uint32_t, arch_acpi_encode_irq_flags, uint8_t, uint8_t);
3 changes: 3 additions & 0 deletions tests/lib/acpi/unit/src/mock.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@
#define LOG_ERR(...)
#define LOG_WRN(...)

#define CONFIG_ACPI_IRQ_VECTOR_MAX 32
#define CONFIG_ACPI_MMIO_ENTRIES_MAX 32

typedef uint32_t pcie_bdf_t;

0 comments on commit 62b2af7

Please sign in to comment.