TianoCore EDK2 master
Loading...
Searching...
No Matches
RawGenerator.c File Reference

Go to the source code of this file.

Macros

#define RAW_GENERATOR_REVISION   CREATE_REVISION (1, 0)
 

Functions

STATIC EFI_STATUS EFIAPI BuildRawTable (IN CONST ACPI_TABLE_GENERATOR *CONST This, IN CONST CM_STD_OBJ_ACPI_TABLE_INFO *CONST AcpiTableInfo, IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL *CONST CfgMgrProtocol, OUT EFI_ACPI_DESCRIPTION_HEADER **CONST Table)
 
EFI_STATUS EFIAPI AcpiRawLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 
EFI_STATUS EFIAPI AcpiRawLibDestructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST ACPI_TABLE_GENERATOR RawGenerator
 

Detailed Description

MCFG Table Generator

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

Definition in file RawGenerator.c.

Macro Definition Documentation

◆ RAW_GENERATOR_REVISION

#define RAW_GENERATOR_REVISION   CREATE_REVISION (1, 0)

This macro defines the Raw Generator revision.

Definition at line 66 of file RawGenerator.c.

Function Documentation

◆ AcpiRawLibConstructor()

EFI_STATUS EFIAPI AcpiRawLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Register the Generator with the ACPI Table Factory.

Parameters
[in]ImageHandleThe handle to the image.
[in]SystemTablePointer to the System Table.
Return values
EFI_SUCCESSThe Generator is registered.
EFI_INVALID_PARAMETERA parameter is invalid.
EFI_ALREADY_STARTEDThe Generator for the Table ID is already registered.

Definition at line 111 of file RawGenerator.c.

◆ AcpiRawLibDestructor()

EFI_STATUS EFIAPI AcpiRawLibDestructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Deregister the Generator from the ACPI Table Factory.

Parameters
[in]ImageHandleThe handle to the image.
[in]SystemTablePointer to the System Table.
Return values
EFI_SUCCESSThe Generator is deregistered.
EFI_INVALID_PARAMETERA parameter is invalid.
EFI_NOT_FOUNDThe Generator is not registered.

Definition at line 135 of file RawGenerator.c.

◆ BuildRawTable()

Construct the ACPI table using the ACPI table data provided.

This function invokes the Configuration Manager protocol interface to get the required hardware information for generating the ACPI table.

If this function allocates any resources then they must be freed in the FreeXXXXTableResources function.

Parameters
[in]ThisPointer to the table generator.
[in]AcpiTableInfoPointer to the ACPI Table Info.
[in]CfgMgrProtocolPointer to the Configuration Manager Protocol Interface.
[out]TablePointer to the constructed ACPI Table.
Return values
EFI_SUCCESSTable generated successfully.
EFI_INVALID_PARAMETERA parameter is invalid.

Definition at line 40 of file RawGenerator.c.

Variable Documentation

◆ RawGenerator

Initial value:
= {
L"ACPI.STD.RAW.GENERATOR",
0,
0,
0,
}
#define CREATE_STD_ACPI_TABLE_GEN_ID(TableId)
#define TABLE_GENERATOR_CREATOR_ID
@ EStdAcpiTableIdRaw
RAW Generator.
#define NULL
Definition: Base.h:319
#define RAW_GENERATOR_REVISION
Definition: RawGenerator.c:66
STATIC EFI_STATUS EFIAPI BuildRawTable(IN CONST ACPI_TABLE_GENERATOR *CONST This, IN CONST CM_STD_OBJ_ACPI_TABLE_INFO *CONST AcpiTableInfo, IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL *CONST CfgMgrProtocol, OUT EFI_ACPI_DESCRIPTION_HEADER **CONST Table)
Definition: RawGenerator.c:40

The interface for the Raw Table Generator.

Definition at line 72 of file RawGenerator.c.