2019-09-03 11:58:42 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2008 mackerintel
|
|
|
|
* 2010 mojodojo
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LIBSAIO_ACPI_PATCHER_H
|
|
|
|
#define __LIBSAIO_ACPI_PATCHER_H
|
|
|
|
|
2021-02-06 18:16:46 +01:00
|
|
|
#include <IndustryStandard/Acpi10.h>
|
|
|
|
#include <IndustryStandard/Acpi20.h>
|
2019-09-03 11:58:42 +02:00
|
|
|
#include "AmlGenerator.h"
|
|
|
|
|
|
|
|
#ifndef DEBUG_AML
|
|
|
|
#ifndef DEBUG_ALL
|
|
|
|
#define DEBUG_AML 1
|
|
|
|
#else
|
|
|
|
#define DEBUG_AML DEBUG_ALL
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if DEBUG_AML==0
|
|
|
|
#define DBG(...)
|
|
|
|
#else
|
|
|
|
#define DBG(...) DebugLog(DEBUG_AML, __VA_ARGS__)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
typedef EFI_ACPI_DESCRIPTION_HEADER SSDT_TABLE;
|
|
|
|
|
|
|
|
|
2019-09-13 12:45:30 +02:00
|
|
|
SSDT_TABLE *generate_pss_ssdt(UINTN Number);
|
|
|
|
SSDT_TABLE *generate_cst_ssdt(EFI_ACPI_2_0_FIXED_ACPI_DESCRIPTION_TABLE* fadt, UINTN Number);
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
#endif /* !__LIBSAIO_ACPI_PATCHER_H */
|