TianoCore EDK2 master
Loading...
Searching...
No Matches
BgrtParser.c
Go to the documentation of this file.
1
12#include <Library/UefiLib.h>
13#include "AcpiParser.h"
14#include "AcpiTableParser.h"
15
16// Local variables
18
23 PARSE_ACPI_HEADER (&AcpiHdrInfo),
24 { L"Version", 2, 36, L"0x%x", NULL, NULL, NULL, NULL },
25 { L"Status", 1, 38, L"0x%x", NULL, NULL, NULL, NULL },
26 { L"Image Type", 1, 39, L"0x%x", NULL, NULL, NULL, NULL },
27 { L"Image Address", 8, 40, L"0x%lx", NULL, NULL, NULL, NULL },
28 { L"Image Offset X", 4, 48, L"%d", NULL, NULL, NULL, NULL },
29 { L"Image Offset Y", 4, 52, L"%d", NULL, NULL, NULL, NULL }
30};
31
44VOID
45EFIAPI
47 IN BOOLEAN Trace,
48 IN UINT8 *Ptr,
49 IN UINT32 AcpiTableLength,
50 IN UINT8 AcpiTableRevision
51 )
52{
53 if (!Trace) {
54 return;
55 }
56
57 ParseAcpi (
58 Trace,
59 0,
60 "BGRT",
61 Ptr,
62 AcpiTableLength,
64 );
65}
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
#define PARSE_ACPI_HEADER(Info)
Definition: AcpiParser.h:501
STATIC CONST ACPI_PARSER BgrtParser[]
Definition: BgrtParser.c:22
VOID EFIAPI ParseAcpiBgrt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: BgrtParser.c:46
#define NULL
Definition: Base.h:319
#define CONST
Definition: Base.h:259
#define STATIC
Definition: Base.h:264
#define IN
Definition: Base.h:279