2 Platform Configuration Database (PCD) Info Protocol defined in PI 1.2.1 Vol3.
4 The protocol that provides additional information about items that reside in the PCD database.
6 Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
9 @par Revision Reference:
10 PI Version 1.2.1 Vol 3.
13 #ifndef __PI_PCD_INFO_H__
14 #define __PI_PCD_INFO_H__
16 extern EFI_GUID gEfiGetPcdInfoProtocolGuid
;
18 #define EFI_GET_PCD_INFO_PROTOCOL_GUID \
19 { 0xfd0f4478, 0xefd, 0x461d, { 0xba, 0x2d, 0xe5, 0x8c, 0x45, 0xfd, 0x5f, 0x5e } }
22 /// The forward declaration for EFI_GET_PCD_INFO_PROTOCOL.
24 typedef struct _EFI_GET_PCD_INFO_PROTOCOL EFI_GET_PCD_INFO_PROTOCOL
;
27 Retrieve additional information associated with a PCD token.
29 This includes information such as the type of value the TokenNumber is associated with as well as possible
30 human readable name that is associated with the token.
32 @param[in] Guid The 128-bit unique value that designates the namespace from which to extract the value.
33 @param[in] TokenNumber The PCD token number.
34 @param[out] PcdInfo The returned information associated with the requested TokenNumber.
36 @retval EFI_SUCCESS The PCD information was returned successfully
37 @retval EFI_NOT_FOUND The PCD service could not find the requested token number.
41 (EFIAPI
*EFI_GET_PCD_INFO_PROTOCOL_GET_INFO
)(
42 IN CONST EFI_GUID
*Guid
,
44 OUT EFI_PCD_INFO
*PcdInfo
48 Retrieve the currently set SKU Id.
50 @return The currently set SKU Id. If the platform has not set at a SKU Id, then the
51 default SKU Id value of 0 is returned. If the platform has set a SKU Id, then the currently set SKU
56 (EFIAPI
*EFI_GET_PCD_INFO_PROTOCOL_GET_SKU
)(
61 /// Callers to this protocol must be at a TPL_APPLICATION task priority level.
62 /// This is the PCD service to use when querying for some additional data that can be contained in the
65 struct _EFI_GET_PCD_INFO_PROTOCOL
{
67 /// Retrieve additional information associated with a PCD.
69 EFI_GET_PCD_INFO_PROTOCOL_GET_INFO GetInfo
;
71 /// Retrieve the currently set SKU Id.
73 EFI_GET_PCD_INFO_PROTOCOL_GET_SKU GetSku
;