TianoCore EDK2
master
Loading...
Searching...
No Matches
BgrtParser.c
Go to the documentation of this file.
1
11
#include <
IndustryStandard/Acpi.h
>
12
#include <
Library/UefiLib.h
>
13
#include "
AcpiParser.h
"
14
#include "
AcpiTableParser.h
"
15
16
// Local variables
17
STATIC
ACPI_DESCRIPTION_HEADER_INFO
AcpiHdrInfo;
18
22
STATIC
CONST
ACPI_PARSER
BgrtParser
[] = {
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
44
VOID
45
EFIAPI
46
ParseAcpiBgrt
(
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,
63
PARSER_PARAMS
(
BgrtParser
)
64
);
65
}
ParseAcpi
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
AcpiParser.h
PARSER_PARAMS
#define PARSER_PARAMS(Parser)
Definition:
AcpiParser.h:494
PARSE_ACPI_HEADER
#define PARSE_ACPI_HEADER(Info)
Definition:
AcpiParser.h:501
AcpiTableParser.h
BgrtParser
STATIC CONST ACPI_PARSER BgrtParser[]
Definition:
BgrtParser.c:22
ParseAcpiBgrt
VOID EFIAPI ParseAcpiBgrt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition:
BgrtParser.c:46
Acpi.h
NULL
#define NULL
Definition:
Base.h:319
CONST
#define CONST
Definition:
Base.h:259
STATIC
#define STATIC
Definition:
Base.h:264
IN
#define IN
Definition:
Base.h:279
UefiLib.h
AcpiDescriptionHeaderInfo
Definition:
AcpiParser.h:390
AcpiParser
Definition:
AcpiParser.h:339
ShellPkg
Library
UefiShellAcpiViewCommandLib
Parsers
Bgrt
BgrtParser.c
Generated on Fri Nov 15 2024 18:01:24 for TianoCore EDK2 by
1.9.6