TianoCore EDK2 master
Loading...
Searching...
No Matches
XsdtParser.c File Reference
#include <IndustryStandard/Acpi.h>
#include <Library/UefiLib.h>
#include <Library/PrintLib.h>
#include "AcpiParser.h"
#include "AcpiTableParser.h"

Go to the source code of this file.

Functions

CONST ACPI_DESCRIPTION_HEADER_INFO *EFIAPI GetAcpiXsdtHeaderInfo (VOID)
 
VOID EFIAPI ParseAcpiXsdt (IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
 

Variables

STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo
 
STATIC CONST ACPI_PARSER XsdtParser []
 

Detailed Description

XSDT table parser

Copyright (c) 2016 - 2019, ARM Limited. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent

Reference(s):
  • ACPI 6.2 Specification - Errata A, September 2017

Definition in file XsdtParser.c.

Function Documentation

◆ GetAcpiXsdtHeaderInfo()

CONST ACPI_DESCRIPTION_HEADER_INFO *EFIAPI GetAcpiXsdtHeaderInfo ( VOID  )

Get the ACPI XSDT header info.

Definition at line 31 of file XsdtParser.c.

◆ ParseAcpiXsdt()

VOID EFIAPI ParseAcpiXsdt ( IN BOOLEAN  Trace,
IN UINT8 *  Ptr,
IN UINT32  AcpiTableLength,
IN UINT8  AcpiTableRevision 
)

This function parses the ACPI XSDT table and optionally traces the ACPI table fields.

This function also performs validation of the XSDT table.

Parameters
[in]TraceIf TRUE, trace the ACPI fields.
[in]PtrPointer to the start of the buffer.
[in]AcpiTableLengthLength of the ACPI table.
[in]AcpiTableRevisionRevision of the ACPI table.

Definition at line 50 of file XsdtParser.c.

Variable Documentation

◆ AcpiHdrInfo

Definition at line 18 of file XsdtParser.c.

◆ XsdtParser

STATIC CONST ACPI_PARSER XsdtParser[]
Initial value:
= {
}

An ACPI_PARSER array describing the ACPI XSDT table.

Definition at line 22 of file XsdtParser.c.