2006-04-22 00:54:32 +02:00
|
|
|
/** @file
|
|
|
|
PCD DXE driver
|
|
|
|
|
|
|
|
Copyright (c) 2006, Intel Corporation
|
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
|
|
|
|
Module Name: Pcd.c
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#include "Service.h"
|
|
|
|
|
|
|
|
|
|
|
|
PCD_PROTOCOL mPcdInstance = {
|
|
|
|
DxePcdSetSku,
|
|
|
|
|
|
|
|
DxePcdGet8,
|
|
|
|
DxePcdGet16,
|
|
|
|
DxePcdGet32,
|
|
|
|
DxePcdGet64,
|
|
|
|
DxePcdGetPtr,
|
|
|
|
DxePcdGetBool,
|
|
|
|
DxePcdGetSize,
|
|
|
|
|
|
|
|
DxePcdGet8Ex,
|
|
|
|
DxePcdGet16Ex,
|
|
|
|
DxePcdGet32Ex,
|
|
|
|
DxePcdGet64Ex,
|
|
|
|
DxePcdGetPtrEx,
|
|
|
|
DxePcdGetBoolEx,
|
|
|
|
DxePcdGetSizeEx,
|
|
|
|
|
|
|
|
DxePcdSet8,
|
|
|
|
DxePcdSet16,
|
|
|
|
DxePcdSet32,
|
|
|
|
DxePcdSet64,
|
|
|
|
DxePcdSetPtr,
|
|
|
|
DxePcdSetBool,
|
|
|
|
|
|
|
|
DxePcdSet8Ex,
|
|
|
|
DxePcdSet16Ex,
|
|
|
|
DxePcdSet32Ex,
|
|
|
|
DxePcdSet64Ex,
|
|
|
|
DxePcdSetPtrEx,
|
|
|
|
DxePcdSetBoolEx,
|
|
|
|
|
|
|
|
PcdRegisterCallBackOnSet,
|
|
|
|
PcdUnRegisterCallBackOnSet,
|
|
|
|
DxePcdGetNextToken
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Static global to reduce the code size
|
|
|
|
//
|
|
|
|
static EFI_HANDLE NewHandle = NULL;
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
PcdDxeInit (
|
|
|
|
IN EFI_HANDLE ImageHandle,
|
|
|
|
IN EFI_SYSTEM_TABLE *SystemTable
|
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
EFI_STATUS Status;
|
|
|
|
|
|
|
|
//
|
|
|
|
// Make sure the Pcd Protocol is not already installed in the system
|
|
|
|
//
|
|
|
|
|
|
|
|
ASSERT_PROTOCOL_ALREADY_INSTALLED (NULL, &gPcdProtocolGuid);
|
2006-04-22 00:54:32 +02:00
|
|
|
|
2006-05-24 10:16:20 +02:00
|
|
|
BuildPcdDxeDataBase ();
|
|
|
|
|
|
|
|
//
|
|
|
|
// BugBug Check if PcdDatabase is already installed.
|
|
|
|
//
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
Status = gBS->InstallProtocolInterface (
|
|
|
|
&NewHandle,
|
|
|
|
&gPcdProtocolGuid,
|
|
|
|
EFI_NATIVE_INTERFACE,
|
|
|
|
&mPcdInstance
|
|
|
|
);
|
|
|
|
|
|
|
|
ASSERT_EFI_ERROR (Status);
|
|
|
|
|
|
|
|
return EFI_SUCCESS;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSetSku (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN SkuId
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return gPcdDatabase->PeiDb.Init.SystemSkuId = (SKU_ID) SkuId;
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UINT8
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGet8 (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
ASSERT (sizeof (UINT8) == DxePcdGetSize (TokenNumber));
|
|
|
|
|
|
|
|
return *((UINT8 *) GetWorker (TokenNumber));
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UINT16
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGet16 (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
ASSERT (sizeof (UINT16) == DxePcdGetSize (TokenNumber));
|
|
|
|
|
|
|
|
return ReadUnaligned16 (GetWorker (TokenNumber));
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UINT32
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGet32 (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
ASSERT (sizeof (UINT32) == DxePcdGetSize (TokenNumber));
|
|
|
|
|
|
|
|
return ReadUnaligned32 (GetWorker (TokenNumber));
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UINT64
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGet64 (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
ASSERT (sizeof (UINT64) == DxePcdGetSize (TokenNumber));
|
|
|
|
|
|
|
|
return ReadUnaligned64(GetWorker (TokenNumber));
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VOID *
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGetPtr (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return GetWorker (TokenNumber);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BOOLEAN
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGetBool (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
ASSERT (sizeof (BOOLEAN) == DxePcdGetSize (TokenNumber));
|
|
|
|
|
|
|
|
return *((BOOLEAN *) GetWorker (TokenNumber));
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UINTN
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGetSize (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
UINT16 * SizeTable;
|
|
|
|
|
|
|
|
SizeTable = (TokenNumber < PEI_LOCAL_TOKEN_NUMBER) ? gPcdDatabase->PeiDb.Init.SizeTable :
|
|
|
|
gPcdDatabase->DxeDb.Init.SizeTable;
|
|
|
|
|
|
|
|
|
|
|
|
TokenNumber = (TokenNumber < PEI_LOCAL_TOKEN_NUMBER) ? TokenNumber : (TokenNumber - PEI_LOCAL_TOKEN_NUMBER);
|
|
|
|
|
|
|
|
return SizeTable[TokenNumber];
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UINT8
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGet8Ex (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN CONST EFI_GUID *Guid,
|
|
|
|
IN UINTN ExTokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return *((UINT8 *) ExGetWorker (Guid, ExTokenNumber, sizeof(UINT8)));
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UINT16
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGet16Ex (
|
|
|
|
IN CONST EFI_GUID *Guid,
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN ExTokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return *((UINT16 *) ExGetWorker (Guid, ExTokenNumber, sizeof(UINT16)));
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UINT32
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGet32Ex (
|
|
|
|
IN CONST EFI_GUID *Guid,
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN ExTokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return *((UINT32 *) ExGetWorker (Guid, ExTokenNumber, sizeof(UINT32)));
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UINT64
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGet64Ex (
|
|
|
|
IN CONST EFI_GUID *Guid,
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN ExTokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
//
|
|
|
|
// BugBug: Must be changed to ReadUnaligned64
|
|
|
|
//
|
|
|
|
return *((UINT64 *) ExGetWorker (Guid, ExTokenNumber, sizeof(UINT64)));
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VOID *
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGetPtrEx (
|
|
|
|
IN CONST EFI_GUID *Guid,
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN ExTokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return ExGetWorker (Guid, ExTokenNumber, 0);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BOOLEAN
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGetBoolEx (
|
|
|
|
IN CONST EFI_GUID *Guid,
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN ExTokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return *((BOOLEAN *) ExGetWorker (Guid, ExTokenNumber, sizeof(BOOLEAN)));
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UINTN
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGetSizeEx (
|
|
|
|
IN CONST EFI_GUID *Guid,
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN ExTokenNumber
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
EX_PCD_ENTRY_ATTRIBUTE Attr;
|
|
|
|
|
|
|
|
GetExPcdTokenAttributes (Guid, ExTokenNumber, &Attr);
|
|
|
|
|
|
|
|
return Attr.Size;
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSet8 (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber,
|
|
|
|
IN UINT8 Value
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return SetWorker (TokenNumber, &Value, sizeof (Value), FALSE);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSet16 (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber,
|
2006-04-22 00:54:32 +02:00
|
|
|
IN UINT16 Value
|
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return SetWorker (TokenNumber, &Value, sizeof (Value), FALSE);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSet32 (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber,
|
2006-04-22 00:54:32 +02:00
|
|
|
IN UINT32 Value
|
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return SetWorker (TokenNumber, &Value, sizeof (Value), FALSE);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSet64 (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber,
|
|
|
|
IN UINT64 Value
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return SetWorker (TokenNumber, &Value, sizeof (Value), FALSE);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSetPtr (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber,
|
|
|
|
IN CONST VOID *Value
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
//
|
|
|
|
// BugBug, please change the Size to Input size when sync with spec
|
|
|
|
//
|
|
|
|
//ASSERT (sizeof (Value) == DxePcdGetSize (TokenNumber));
|
|
|
|
|
|
|
|
return SetWorker (TokenNumber, (VOID *)Value, DxePcdGetSize (TokenNumber), TRUE);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSetBool (
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN TokenNumber,
|
|
|
|
IN BOOLEAN Value
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return SetWorker (TokenNumber, &Value, sizeof (Value), FALSE);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSet8Ex (
|
|
|
|
IN CONST EFI_GUID *Guid,
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN ExTokenNumber,
|
|
|
|
IN UINT8 Value
|
2006-04-22 00:54:32 +02:00
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return ExSetWorker(
|
|
|
|
ExTokenNumber,
|
|
|
|
Guid,
|
|
|
|
&Value,
|
|
|
|
sizeof (Value),
|
|
|
|
FALSE
|
|
|
|
);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSet16Ex (
|
|
|
|
IN CONST EFI_GUID *Guid,
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN ExTokenNumber,
|
2006-04-22 00:54:32 +02:00
|
|
|
IN UINT16 Value
|
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return ExSetWorker(
|
|
|
|
ExTokenNumber,
|
|
|
|
Guid,
|
|
|
|
&Value,
|
|
|
|
sizeof (Value),
|
|
|
|
FALSE
|
|
|
|
);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSet32Ex (
|
|
|
|
IN CONST EFI_GUID *Guid,
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN ExTokenNumber,
|
2006-04-22 00:54:32 +02:00
|
|
|
IN UINT32 Value
|
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return ExSetWorker(
|
|
|
|
ExTokenNumber,
|
|
|
|
Guid,
|
|
|
|
&Value,
|
|
|
|
sizeof (Value),
|
|
|
|
FALSE
|
|
|
|
);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSet64Ex (
|
|
|
|
IN CONST EFI_GUID *Guid,
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN ExTokenNumber,
|
2006-04-22 00:54:32 +02:00
|
|
|
IN UINT64 Value
|
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return ExSetWorker(
|
|
|
|
ExTokenNumber,
|
|
|
|
Guid,
|
|
|
|
&Value,
|
|
|
|
sizeof (Value),
|
|
|
|
FALSE
|
|
|
|
);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSetPtrEx (
|
|
|
|
IN CONST EFI_GUID *Guid,
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN ExTokenNumber,
|
2006-04-22 00:54:32 +02:00
|
|
|
IN CONST VOID *Value
|
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return ExSetWorker(
|
|
|
|
ExTokenNumber,
|
|
|
|
Guid,
|
|
|
|
(VOID *) Value,
|
|
|
|
sizeof (Value),
|
|
|
|
TRUE
|
|
|
|
);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdSetBoolEx (
|
|
|
|
IN CONST EFI_GUID *Guid,
|
2006-05-24 10:16:20 +02:00
|
|
|
IN UINTN ExTokenNumber,
|
2006-04-22 00:54:32 +02:00
|
|
|
IN BOOLEAN Value
|
|
|
|
)
|
|
|
|
{
|
2006-05-24 10:16:20 +02:00
|
|
|
return ExSetWorker(
|
|
|
|
ExTokenNumber,
|
|
|
|
Guid,
|
|
|
|
&Value,
|
|
|
|
sizeof (Value),
|
|
|
|
TRUE
|
|
|
|
);
|
2006-04-22 00:54:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
PcdRegisterCallBackOnSet (
|
|
|
|
IN UINTN TokenNumber,
|
|
|
|
IN CONST EFI_GUID *Guid, OPTIONAL
|
|
|
|
IN PCD_PROTOCOL_CALLBACK CallBackFunction
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return DxeRegisterCallBackWorker (TokenNumber, Guid, CallBackFunction, TRUE);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
PcdUnRegisterCallBackOnSet (
|
|
|
|
IN UINTN TokenNumber,
|
|
|
|
IN CONST EFI_GUID *Guid, OPTIONAL
|
|
|
|
IN PCD_PROTOCOL_CALLBACK CallBackFunction
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return DxeRegisterCallBackWorker (TokenNumber, Guid, CallBackFunction, FALSE);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DxePcdGetNextToken (
|
|
|
|
IN CONST EFI_GUID *Guid, OPTIONAL
|
|
|
|
IN OUT UINTN *TokenNumber
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return DxeGetNextTokenWorker (TokenNumber, Guid);
|
|
|
|
}
|
|
|
|
|