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

Go to the source code of this file.

Functions

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

Variables

STATIC ACPI_DESCRIPTION_HEADER_INFO AcpiHdrInfo
 
STATIC CONST ACPI_PARSER McfgParser []
 
STATIC CONST ACPI_PARSER PciCfgSpaceBaseAddrParser []
 

Detailed Description

MCFG table parser

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

Reference(s):
  • PCI Firmware Specification - Revision 3.2, January 26, 2015.

Definition in file McfgParser.c.

Function Documentation

◆ ParseAcpiMcfg()

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

This function parses the ACPI MCFG table. When trace is enabled this function parses the MCFG table and traces the ACPI table fields.

This function also performs validation of the ACPI table fields.

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 52 of file McfgParser.c.

Variable Documentation

◆ AcpiHdrInfo

Definition at line 17 of file McfgParser.c.

◆ McfgParser

STATIC CONST ACPI_PARSER McfgParser[]
Initial value:
= {
PARSE_ACPI_HEADER (&AcpiHdrInfo),
{ L"Reserved", 8,36, L"0x%lx", NULL, NULL, NULL, NULL },
}
#define PARSE_ACPI_HEADER(Info)
Definition: AcpiParser.h:501
#define NULL
Definition: Base.h:319

An ACPI_PARSER array describing the ACPI MCFG Table.

Definition at line 22 of file McfgParser.c.

◆ PciCfgSpaceBaseAddrParser

STATIC CONST ACPI_PARSER PciCfgSpaceBaseAddrParser[]
Initial value:
= {
{ L"Base Address", 8, 0, L"0x%lx", NULL, NULL, NULL, NULL },
{ L"PCI Segment Group No.", 2, 8, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Start Bus No.", 1, 10, L"0x%x", NULL, NULL, NULL, NULL },
{ L"End Bus No.", 1, 11, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Reserved", 4, 12, L"0x%x", NULL, NULL, NULL, NULL }
}

An ACPI_PARSER array describing the PCI configuration Space Base Address structure.

Definition at line 30 of file McfgParser.c.