TianoCore EDK2 master
Loading...
Searching...
No Matches
FacsParser.c
Go to the documentation of this file.
1
12#include <Library/UefiLib.h>
13#include "AcpiParser.h"
14#include "AcpiTableParser.h"
15
20 { L"Signature", 4, 0, L"%c%c%c%c", Dump4Chars, NULL, NULL, NULL },
21 { L"Length", 4, 4, L"%d", NULL, NULL, NULL, NULL },
22 { L"Hardware Signature", 4, 8, L"0x%x", NULL, NULL, NULL, NULL },
23 { L"Firmware Waking Vector", 4, 12, L"0x%x", NULL, NULL, NULL, NULL },
24 { L"Global Lock", 4, 16, L"0x%x", NULL, NULL, NULL, NULL },
25 { L"Flags", 4, 20, L"0x%x", NULL, NULL, NULL, NULL },
26 { L"X Firmware Walking Vector", 8, 24, L"0x%lx", NULL, NULL, NULL, NULL },
27 { L"Version", 1, 32, L"%d", NULL, NULL, NULL, NULL },
28 { L"Reserved", 3, 33, L"%x %x %x", Dump3Chars, NULL, NULL, NULL },
29 { L"OSPM Flags", 4, 36, L"0x%x", NULL, NULL, NULL, NULL },
30 { L"Reserved", 8, 40, L"%x %x %x %x %x %x %x %x", Dump8Chars, NULL, NULL,
31 NULL },
32 { L"Reserved", 8, 48, L"%x %x %x %x %x %x %x %x", Dump8Chars, NULL, NULL,
33 NULL },
34 { L"Reserved", 8, 56, L"%x %x %x %x %x %x %x %x", Dump8Chars, NULL, NULL,
35 NULL }
36};
37
50VOID
51EFIAPI
53 IN BOOLEAN Trace,
54 IN UINT8 *Ptr,
55 IN UINT32 AcpiTableLength,
56 IN UINT8 AcpiTableRevision
57 )
58{
59 if (!Trace) {
60 return;
61 }
62
63 ParseAcpi (
64 Trace,
65 0,
66 "FACS",
67 Ptr,
68 AcpiTableLength,
70 );
71}
VOID EFIAPI Dump4Chars(IN CONST CHAR16 *Format OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length)
Definition: AcpiParser.c:352
VOID EFIAPI Dump8Chars(IN CONST CHAR16 *Format OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length)
Definition: AcpiParser.c:408
VOID EFIAPI Dump3Chars(IN CONST CHAR16 *Format OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length)
Definition: AcpiParser.c:326
UINT32 EFIAPI ParseAcpi(IN BOOLEAN Trace, IN UINT32 Indent, IN CONST CHAR8 *AsciiName OPTIONAL, IN UINT8 *Ptr, IN UINT32 Length, IN CONST ACPI_PARSER *Parser, IN UINT32 ParserItems)
Definition: AcpiParser.c:683
#define PARSER_PARAMS(Parser)
Definition: AcpiParser.h:494
VOID EFIAPI ParseAcpiFacs(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: FacsParser.c:52
STATIC CONST ACPI_PARSER FacsParser[]
Definition: FacsParser.c:19
#define NULL
Definition: Base.h:319
#define CONST
Definition: Base.h:259
#define STATIC
Definition: Base.h:264
#define IN
Definition: Base.h:279