4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/** @file
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Provides library services to get and set Platform Configuration Database entries.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync PCD Library Class provides a PCD usage macro interface for all PCD types.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync It should be included in any module that uses PCD. If a module uses dynamic/dynamicex
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync PCD, module should be linked to a PEIM/DXE library instance to access that PCD.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If a module uses PatchableInModule type PCD, it also needs the library instance to produce
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync LibPatchPcdSetPtr() interface. For FeatureFlag/Fixed PCD, the macro interface is
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync translated to a variable or macro that is auto-generated by build tool in
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync module's autogen.h/autogen.c.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync The PcdGetXX(), PcdSetXX(), PcdToken(), and PcdGetNextTokenSpace() operations are
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync only available prior to ExitBootServices(). If access to PCD values are required
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync at runtime, then their values must be collected prior to ExitBootServices().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync There are no restrictions on the use of FeaturePcd(), FixedPcdGetXX(),
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync PatchPcdGetXX(), and PatchPcdSetXX().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCopyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncThis program and the accompanying materials
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncare licensed and made available under the terms and conditions of the BSD License
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncwhich accompanies this distribution. The full text of the license may be found at
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsynchttp://opensource.org/licenses/bsd-license.php
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncTHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#ifndef __PCD_LIB_H__
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define __PCD_LIB_H__
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PCD_MAX_SKU_ID 0x100
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a token number based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the token number associated with the PCD token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve the token number for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return The token number associated with the PCD.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdToken(TokenName) _PCD_TOKEN_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a Boolean PCD feature flag based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the Boolean value for the PCD feature flag specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Boolean value for the PCD feature flag.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define FeaturePcdGet(TokenName) _PCD_GET_MODE_BOOL_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves an 8-bit fixed PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 8-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return 8-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define FixedPcdGet8(TokenName) _PCD_VALUE_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a 16-bit fixed PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 16-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return 16-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define FixedPcdGet16(TokenName) _PCD_VALUE_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a 32-bit fixed PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 32-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return 32-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define FixedPcdGet32(TokenName) _PCD_VALUE_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a 64-bit fixed PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 64-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return 64-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define FixedPcdGet64(TokenName) _PCD_VALUE_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a Boolean fixed PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the Boolean value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return The Boolean value for the token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define FixedPcdGetBool(TokenName) _PCD_VALUE_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a pointer to a fixed PCD token buffer based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns a pointer to the buffer for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return A pointer to the buffer.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define FixedPcdGetPtr(TokenName) ((VOID *)_PCD_VALUE_##TokenName)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves an 8-bit binary patchable PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 8-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return An 8-bit binary patchable PCD token value.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PatchPcdGet8(TokenName) _gPcd_BinaryPatch_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a 16-bit binary patchable PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 16-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return A 16-bit binary patchable PCD token value.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PatchPcdGet16(TokenName) _gPcd_BinaryPatch_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a 32-bit binary patchable PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 32-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return A 32-bit binary patchable PCD token value.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PatchPcdGet32(TokenName) _gPcd_BinaryPatch_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a 64-bit binary patchable PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 64-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return A 64-bit binary patchable PCD token value.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PatchPcdGet64(TokenName) _gPcd_BinaryPatch_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a Boolean binary patchable PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the Boolean value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return The Boolean value for the token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PatchPcdGetBool(TokenName) _gPcd_BinaryPatch_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a pointer to a binary patchable PCD token buffer based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns a pointer to the buffer for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return A pointer to the buffer for the token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PatchPcdGetPtr(TokenName) ((VOID *)_gPcd_BinaryPatch_##TokenName)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets an 8-bit binary patchable PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 8-bit value for the token specified by TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the binary patchable PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The 8-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PatchPcdSet8(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a 16-bit binary patchable PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 16-bit value for the token specified by TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the binary patchable PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The 16-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PatchPcdSet16(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a 32-bit binary patchable PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 32-bit value for the token specified by TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the binary patchable PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The 32-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PatchPcdSet32(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a 64-bit binary patchable PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 64-bit value for the token specified by TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the binary patchable PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The 64-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PatchPcdSet64(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a Boolean binary patchable PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the Boolean value for the token specified by TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the binary patchable PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The boolean value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PatchPcdSetBool(TokenName, Value) (_gPcd_BinaryPatch_##TokenName = (Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a pointer to a binary patchable PCD token buffer based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the buffer for the token specified by TokenName. Buffer is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer is greater than the maximum size supported by TokenName, then set SizeOfBuffer
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync to the maximum size supported by TokenName and return NULL to indicate that the set operation
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync was not actually performed. If SizeOfBuffer is set to MAX_ADDRESS, then SizeOfBuffer must be
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync set to the maximum size supported by TokenName and NULL must be returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a feature flag, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer > 0 and Buffer is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the binary patchable PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param SizeOfBuffer A pointer to the size, in bytes, of Buffer.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Buffer Pointer to the value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the pointer to the Buffer that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PatchPcdSetPtr(TokenName, Size, Buffer) \
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync LibPatchPcdSetPtr ( \
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync _gPcd_BinaryPatch_##TokenName, \
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync (UINTN)_PCD_PATCHABLE_##TokenName##_SIZE, \
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync (Size), \
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync (Buffer) \
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync )
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves an 8-bit PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 8-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return 8-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdGet8(TokenName) _PCD_GET_MODE_8_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a 16-bit PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 16-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return 16-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdGet16(TokenName) _PCD_GET_MODE_16_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a 32-bit PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 32-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return 32-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdGet32(TokenName) _PCD_GET_MODE_32_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a 64-bit PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 64-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return 64-bit value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdGet64(TokenName) _PCD_GET_MODE_64_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a pointer to a PCD token buffer based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns a pointer to the buffer for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return A pointer to the buffer.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdGetPtr(TokenName) _PCD_GET_MODE_PTR_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a Boolean PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the Boolean value for the token specified by TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return A Boolean PCD token value.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdGetBool(TokenName) _PCD_GET_MODE_BOOL_##TokenName
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets an 8-bit PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 8-bit value for the token specified by TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The 8-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdSet8(TokenName, Value) _PCD_SET_MODE_8_##TokenName ((Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a 16-bit PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 16-bit value for the token specified by TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The 16-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdSet16(TokenName, Value) _PCD_SET_MODE_16_##TokenName ((Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a 32-bit PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 32-bit value for the token specified by TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The 32-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdSet32(TokenName, Value) _PCD_SET_MODE_32_##TokenName ((Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a 64-bit PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 64-bit value for the token specified by TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The 64-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdSet64(TokenName, Value) _PCD_SET_MODE_64_##TokenName ((Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a pointer to a PCD token buffer based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the buffer for the token specified by TokenName. Buffer is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer is greater than the maximum size supported by TokenName,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then set SizeOfBuffer to the maximum size supported by TokenName and return NULL
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync to indicate that the set operation was not actually performed. If SizeOfBuffer
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync is set to MAX_ADDRESS, then SizeOfBuffer must be set to the maximum size supported
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync by TokenName and NULL must be returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer > 0 and Buffer is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param SizeOfBuffer A pointer to the size, in bytes, of Buffer.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Buffer A pointer to the buffer to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the pointer to the Buffer that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdSetPtr(TokenName, SizeOfBuffer, Buffer) \
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync _PCD_SET_MODE_PTR_##TokenName ((SizeOfBuffer), (Buffer))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a Boolean PCD token value based on a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the Boolean value for the token specified by TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space, then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Buffer The Boolean value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdSetBool(TokenName, Value) _PCD_SET_MODE_BOOL_##TokenName ((Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves an 8-bit PCD token value based on a GUID and a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 8-bit value for the token specified by Guid and TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space specified by Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return An 8-bit PCD token value.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdGetEx8(Guid, TokenName) LibPcdGetEx8 ((Guid), _PCD_TOKEN_##TokenName)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a 16-bit PCD token value based on a GUID and a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 16-bit value for the token specified by Guid and TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space specified by Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return A 16-bit PCD token value.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdGetEx16(Guid, TokenName) LibPcdGetEx16 ((Guid), _PCD_TOKEN_##TokenName)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a 32-bit PCD token value based on a GUID and a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 32-bit value for the token specified by Guid and TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space specified by Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return A 32-bit PCD token value.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdGetEx32(Guid, TokenName) LibPcdGetEx32 ((Guid), _PCD_TOKEN_##TokenName)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a 64-bit PCD token value based on a GUID and a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 64-bit value for the token specified by Guid and TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space specified by Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return A 64-bit PCD token value.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdGetEx64(Guid, TokenName) LibPcdGetEx64 ((Guid), _PCD_TOKEN_##TokenName)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a pointer to a PCD token buffer based on a GUID and a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns a pointer to the buffer for the token specified by Guid and TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space specified by Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return A pointer to a PCD token buffer.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdGetExPtr(Guid, TokenName) LibPcdGetExPtr ((Guid), _PCD_TOKEN_##TokenName)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves a Boolean PCD token value based on a GUID and a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the Boolean value for the token specified by Guid and TokenName.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space specified by Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return A Boolean PCD token value.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdGetExBool(Guid, TokenName) LibPcdGetExBool ((Guid), _PCD_TOKEN_##TokenName)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets an 8-bit PCD token value based on a GUID and a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 8-bit value for the token specified by Guid and TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space specified by Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The 8-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdSetEx8(Guid, TokenName, Value) LibPcdSetEx8 ((Guid), _PCD_TOKEN_##TokenName, (Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a 16-bit PCD token value based on a GUID and a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 16-bit value for the token specified by Guid and TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space specified by Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The 16-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdSetEx16(Guid, TokenName, Value) LibPcdSetEx16 ((Guid), _PCD_TOKEN_##TokenName, (Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a 32-bit PCD token value based on a GUID and a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 32-bit value for the token specified by Guid and TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space specified by Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The 32-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdSetEx32(Guid, TokenName, Value) LibPcdSetEx32 ((Guid), _PCD_TOKEN_##TokenName, (Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a 64-bit PCD token value based on a GUID and a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 64-bit value for the token specified by Guid and TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space specified by Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The 64-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdSetEx64(Guid, TokenName, Value) LibPcdSetEx64 ((Guid), _PCD_TOKEN_##TokenName, (Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a pointer to a PCD token buffer based on a GUID and a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the buffer for the token specified by Guid and TokenName. Buffer is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer is greater than the maximum size supported by Guid and TokenName,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then set SizeOfBuffer to the maximum size supported by Guid and TokenName and return
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync NULL to indicate that the set operation was not actually performed. If SizeOfBuffer
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync is set to MAX_ADDRESS, then SizeOfBuffer must be set to the maximum size supported by
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Guid and TokenName and NULL must be returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space specified by Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer > 0 and Buffer is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param SizeOfBuffer A pointer to the size, in bytes, of Buffer.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Buffer Pointer to the buffer to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the pointer to the Buffer that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdSetExPtr(Guid, TokenName, SizeOfBuffer, Buffer) \
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync LibPcdSetExPtr ((Guid), _PCD_TOKEN_##TokenName, (SizeOfBuffer), (Buffer))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a Boolean PCD token value based on a GUID and a token name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the Boolean value for the token specified by Guid and TokenName. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenName is not a valid token in the token space specified by Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the module will not build.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenName The name of the PCD token to set the current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Value The Boolean value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#define PcdSetExBool(Guid, TokenName, Value) \
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync LibPcdSetExBool((Guid), _PCD_TOKEN_##TokenName, (Value))
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which SKU support can be established in the PCD infrastructure.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the current SKU in the PCD database to the value specified by SkuId. SkuId is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SkuId >= PCD_MAX_SKU_ID, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param SkuId The SKU value that will be used when the PCD service retrieves and sets values
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync associated with a PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the SKU ID that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINTN
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSetSku (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN SkuId
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 8-bit value for the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Returns the 8-bit value for the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT8
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGet8 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 16-bit value for the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Returns the 16-bit value for the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT16
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGet16 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 32-bit value for the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Returns the 32-bit value for the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT32
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGet32 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 64-bit value for the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Returns the 64-bit value for the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT64
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGet64 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the pointer to the buffer of the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Returns the pointer to the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncVOID *
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGetPtr (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the Boolean value of the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Returns the Boolean value of the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncBOOLEAN
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGetBool (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve the size of a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Returns the size of the token specified by TokenNumber.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINTN
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGetSize (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 8-bit value for the token specified by TokenNumber and Guid.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the UINT8.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT8
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGetEx8 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 16-bit value for the token specified by TokenNumber and Guid.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the UINT16.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT16
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGetEx16 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 32-bit value for the token specified by TokenNumber and Guid.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the UINT32.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT32
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGetEx32 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the 64-bit value for the token specified by TokenNumber and Guid.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the UINT64.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT64
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGetEx64 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the pointer to the buffer of token specified by TokenNumber and Guid.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the VOID* pointer.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncVOID *
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGetExPtr (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the Boolean value of the token specified by TokenNumber and Guid.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the BOOLEAN.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncBOOLEAN
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGetExBool (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to retrieve the size of a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the size of the token specified by TokenNumber and Guid.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that designates
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which namespace to retrieve a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to retrieve a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the size.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINTN
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGetExSize (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to set a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 8-bit value for the token specified by TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync to the value specified by Value. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to set a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Value The 8-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT8
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSet8 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINT8 Value
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to set a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 16-bit value for the token specified by TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync to the value specified by Value. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to set a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Value The 16-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT16
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSet16 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINT16 Value
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to set a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 32-bit value for the token specified by TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync to the value specified by Value. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to set a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Value The 32-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT32
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSet32 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINT32 Value
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to set a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 64-bit value for the token specified by TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync to the value specified by Value. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to set a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Value The 64-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT64
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSet64 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINT64 Value
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to set a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a buffer for the token specified by TokenNumber to the value
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync specified by Buffer and SizeOfBuffer. Buffer is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer is greater than the maximum size support by TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then set SizeOfBuffer to the maximum size supported by TokenNumber and
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync return NULL to indicate that the set operation was not actually performed.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer is set to MAX_ADDRESS, then SizeOfBuffer must be set to the
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync maximum size supported by TokenName and NULL must be returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer > 0 and Buffer is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to set a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in, out] SizeOfBuffer The size, in bytes, of Buffer.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Buffer A pointer to the buffer to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the pointer for the Buffer that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncVOID *
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSetPtr (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN OUT UINTN *SizeOfBuffer,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST VOID *Buffer
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to set a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the Boolean value for the token specified by TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync to the value specified by Value. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to set a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Value The boolean value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncBOOLEAN
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSetBool (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN BOOLEAN Value
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to set a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 8-bit value for the token specified by TokenNumber and
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Guid to the value specified by Value. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync designates which namespace to set a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to set a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Value The 8-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT8
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSetEx8 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINT8 Value
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to set a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 16-bit value for the token specified by TokenNumber and
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Guid to the value specified by Value. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync designates which namespace to set a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to set a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Value The 16-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT16
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSetEx16 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINT16 Value
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to set a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 32-bit value for the token specified by TokenNumber and
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Guid to the value specified by Value. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync designates which namespace to set a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to set a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Value The 32-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT32
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSetEx32 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINT32 Value
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to set a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the 64-bit value for the token specified by TokenNumber and
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Guid to the value specified by Value. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync designates which namespace to set a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to set a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Value The 64-bit value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINT64
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSetEx64 (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINT64 Value
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to set a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a buffer for the token specified by TokenNumber to the value specified by
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Buffer and SizeOfBuffer. Buffer is returned. If SizeOfBuffer is greater than
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync the maximum size support by TokenNumber, then set SizeOfBuffer to the maximum size
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync supported by TokenNumber and return NULL to indicate that the set operation
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync was not actually performed.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer > 0 and Buffer is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync designates which namespace to set a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to set a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in, out] SizeOfBuffer The size, in bytes, of Buffer.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Buffer A pointer to the buffer to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the pointer to the Buffer that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncVOID *
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSetExPtr (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN OUT UINTN *SizeOfBuffer,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN VOID *Buffer
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This function provides a means by which to set a value for a given PCD token.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the Boolean value for the token specified by TokenNumber and
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Guid to the value specified by Value. Value is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync designates which namespace to set a value from.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to set a current value for.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Value The Boolean value to set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the Value that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncBOOLEAN
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdSetExBool (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN BOOLEAN Value
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This notification function serves two purposes.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Firstly, it notifies the module that did the registration that the value of this
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync PCD token has been set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Secondly, it provides a mechanism for the module that did the registration to intercept
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync the set operation and override the value been set if necessary. After the invocation of
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync the callback function, TokenData will be used by PCD service PEIM or driver to modify th
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync internal data in PCD database.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] CallBackGuid The PCD token GUID being set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] CallBackToken The PCD token number being set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in, out] TokenData A pointer to the token data being set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenDataSize The size, in bytes, of the data being set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsynctypedef
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncVOID
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync(EFIAPI *PCD_CALLBACK)(
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *CallBackGuid, OPTIONAL
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN CallBackToken,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN OUT VOID *TokenData,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenDataSize
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Set up a notification function that is called when a specified token is set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync When the token specified by TokenNumber and Guid is set,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then notification function specified by NotificationFunction is called.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then the default token space is used.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If NotificationFunction is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that designates which
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync namespace to set a value from. If NULL, then the default
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync token space is used.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The PCD token number to monitor.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] NotificationFunction The function to call when the token
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync specified by Guid and TokenNumber is set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncVOID
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdCallbackOnSet (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid, OPTIONAL
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN PCD_CALLBACK NotificationFunction
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Disable a notification function that was established with LibPcdCallbackonSet().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Disable a notification function that was previously established with LibPcdCallbackOnSet().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If NotificationFunction is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If LibPcdCallbackOnSet() was not previously called with Guid, TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync and NotificationFunction, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Specify the GUID token space.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber Specify the token number.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] NotificationFunction The callback function to be unregistered.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncVOID
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdCancelCallback (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid, OPTIONAL
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN PCD_CALLBACK NotificationFunction
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves the next token in a token space.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Retrieves the next PCD token number from the token space specified by Guid.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If Guid is NULL, then the default token space is used. If TokenNumber is 0,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync then the first token number is returned. Otherwise, the token number that
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync follows TokenNumber in the token space is returned. If TokenNumber is the last
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync token number in the token space, then 0 is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenNumber is not 0 and is not in the token space specified by Guid, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Guid Pointer to a 128-bit unique value that designates which namespace
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync to set a value from. If NULL, then the default token space is used.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] TokenNumber The previous PCD token number. If 0, then retrieves the first PCD
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync token number.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return The next valid token number.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncUINTN
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGetNextToken (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *Guid, OPTIONAL
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN TokenNumber
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Used to retrieve the list of available PCD token space GUIDs.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Returns the PCD token space GUID that follows TokenSpaceGuid in the list of token spaces
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync in the platform.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenSpaceGuid is NULL, then a pointer to the first PCD token spaces returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If TokenSpaceGuid is the last PCD token space GUID in the list, then NULL is returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param TokenSpaceGuid Pointer to the a PCD token space GUID
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return The next valid token namespace.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncGUID *
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPcdGetNextTokenSpace (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST GUID *TokenSpaceGuid
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/**
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets a value of a patchable PCD entry that is type pointer.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Sets the PCD entry specified by PatchVariable to the value specified by Buffer
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync and SizeOfBuffer. Buffer is returned. If SizeOfBuffer is greater than
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync MaximumDatumSize, then set SizeOfBuffer to MaximumDatumSize and return
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync NULL to indicate that the set operation was not actually performed.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer is set to MAX_ADDRESS, then SizeOfBuffer must be set to
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync MaximumDatumSize and NULL must be returned.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If PatchVariable is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync If SizeOfBuffer > 0 and Buffer is NULL, then ASSERT().
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] PatchVariable A pointer to the global variable in a module that is
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync the target of the set operation.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] MaximumDatumSize The maximum size allowed for the PCD entry specified by PatchVariable.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in, out] SizeOfBuffer A pointer to the size, in bytes, of Buffer.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param[in] Buffer A pointer to the buffer to used to set the target variable.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Return the pointer to the Buffer that was set.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync**/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncVOID *
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncEFIAPI
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLibPatchPcdSetPtr (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN VOID *PatchVariable,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN UINTN MaximumDatumSize,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN OUT UINTN *SizeOfBuffer,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync IN CONST VOID *Buffer
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync );
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#endif