TianoCore EDK2 master
Loading...
Searching...
No Matches
SratGenerator.h File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI ArchReserveOffsets (IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL *CONST CfgMgrProtocol, IN OUT UINT32 *ArchOffset)
 
EFI_STATUS EFIAPI AddArchObjects (IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL *CONST CfgMgrProtocol, IN EFI_ACPI_6_3_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER *CONST Srat)
 

Detailed Description

SRAT Table Generator

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

Reference(s):
  • ACPI 6.3 Specification, January 2019
Glossary:
  • Cm or CM - Configuration Manager
  • Obj or OBJ - Object

Definition in file SratGenerator.h.

Function Documentation

◆ AddArchObjects()

Add the arch specific sub-tables to the SRAT table.

These sub-tables are written in the space reserved beforehand.

Parameters
[in]CfgMgrProtocolPointer to the Configuration Manager Protocol Interface.
[in]SratPointer to the SRAT Table.
Return values
EFI_SUCCESSTable generated successfully.

Add the arch specific sub-tables to the SRAT table.

These sub-tables are written in the space reserved beforehand.

Parameters
[in]CfgMgrProtocolPointer to the Configuration Manager Protocol Interface.
[in]SratPointer to the SRAT Table.
Return values
EFI_SUCCESSTable generated successfully.
EFI_UNSUPPORTEDNot supported.

Definition at line 247 of file ArmSratGenerator.c.

◆ ArchReserveOffsets()

EFI_STATUS EFIAPI ArchReserveOffsets ( IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL *CONST  CfgMgrProtocol,
IN OUT UINT32 *  ArchOffset 
)

Reserve arch sub-tables space.

Parameters
[in]CfgMgrProtocolPointer to the Configuration Manager
[in,out]ArchOffsetOn input, contains the offset where arch specific sub-tables can be written. It is expected that there enough space to write all the arch specific sub-tables from this offset onward. On ouput, contains the ending offset of the arch specific sub-tables.
Return values
EFI_SUCCESSTable generated successfully.
EFI_INVALID_PARAMETERA parameter is invalid.
EFI_NOT_FOUNDThe required object information is not found.
EFI_BAD_BUFFER_SIZEThe size returned by the Configuration Manager is less than the Object size for the requested object.

Reserve arch sub-tables space.

Parameters
[in]CfgMgrProtocolPointer to the Configuration Manager
[in,out]ArchOffsetOn input, contains the offset where arch specific sub-tables can be written. It is expected that there enough space to write all the arch specific sub-tables from this offset onward. On ouput, contains the ending offset of the arch specific sub-tables.
Return values
EFI_SUCCESSTable generated successfully.
EFI_UNSUPPORTEDNot supported.
EFI_INVALID_PARAMETERA parameter is invalid.
EFI_NOT_FOUNDThe required object information is not found.
EFI_BAD_BUFFER_SIZEThe size returned by the Configuration Manager is less than the Object size for the requested object.

Definition at line 99 of file ArmSratGenerator.c.