]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Ppi/PcdInfo.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / Ppi / PcdInfo.h
CommitLineData
96d6d004
SZ
1/** @file\r
2 Native Platform Configuration Database (PCD) INFO PPI\r
3\r
4 The PPI that provides additional information about items that reside in the PCD database.\r
9095d37b 5\r
96d6d004 6 Different with the EFI_GET_PCD_INFO_PPI defined in PI 1.2.1 specification,\r
9095d37b 7 the native PCD INFO PPI provide interfaces for dynamic and dynamic-ex type PCD.\r
96d6d004
SZ
8 The interfaces for dynamic type PCD do not require the token space guid as parameter,\r
9 but interfaces for dynamic-ex type PCD require token space guid as parameter.\r
10\r
9095d37b 11 Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
9344f092 12 SPDX-License-Identifier: BSD-2-Clause-Patent\r
96d6d004
SZ
13\r
14**/\r
15\r
16#ifndef __PCD_INFO_PPI_H__\r
17#define __PCD_INFO_PPI_H__\r
18\r
19extern EFI_GUID gGetPcdInfoPpiGuid;\r
20\r
21#define GET_PCD_INFO_PPI_GUID \\r
22 { 0x4d8b155b, 0xc059, 0x4c8f, { 0x89, 0x26, 0x6, 0xfd, 0x43, 0x31, 0xdb, 0x8a } }\r
23\r
24///\r
25/// The forward declaration for GET_PCD_INFO_PPI.\r
26///\r
27typedef struct _GET_PCD_INFO_PPI GET_PCD_INFO_PPI;\r
28\r
29/**\r
30 Retrieve additional information associated with a PCD token in the default token space.\r
31\r
32 This includes information such as the type of value the TokenNumber is associated with as well as possible\r
33 human readable name that is associated with the token.\r
34\r
35 @param[in] TokenNumber The PCD token number.\r
36 @param[out] PcdInfo The returned information associated with the requested TokenNumber.\r
37\r
38 @retval EFI_SUCCESS The PCD information was returned successfully\r
39 @retval EFI_NOT_FOUND The PCD service could not find the requested token number.\r
40**/\r
41typedef\r
42EFI_STATUS\r
43(EFIAPI *GET_PCD_INFO_PPI_GET_INFO) (\r
44 IN UINTN TokenNumber,\r
45 OUT EFI_PCD_INFO *PcdInfo\r
46);\r
47\r
48/**\r
49 Retrieve additional information associated with a PCD token.\r
50\r
51 This includes information such as the type of value the TokenNumber is associated with as well as possible\r
52 human readable name that is associated with the token.\r
53\r
54 @param[in] Guid The 128-bit unique value that designates the namespace from which to extract the value.\r
55 @param[in] TokenNumber The PCD token number.\r
56 @param[out] PcdInfo The returned information associated with the requested TokenNumber.\r
57\r
58 @retval EFI_SUCCESS The PCD information was returned successfully\r
59 @retval EFI_NOT_FOUND The PCD service could not find the requested token number.\r
60**/\r
61typedef\r
62EFI_STATUS\r
63(EFIAPI *GET_PCD_INFO_PPI_GET_INFO_EX) (\r
64 IN CONST EFI_GUID *Guid,\r
65 IN UINTN TokenNumber,\r
66 OUT EFI_PCD_INFO *PcdInfo\r
67);\r
68\r
69/**\r
70 Retrieve the currently set SKU Id.\r
71\r
72 @return The currently set SKU Id. If the platform has not set at a SKU Id, then the\r
73 default SKU Id value of 0 is returned. If the platform has set a SKU Id, then the currently set SKU\r
74 Id is returned.\r
75**/\r
76typedef\r
77UINTN\r
78(EFIAPI *GET_PCD_INFO_PPI_GET_SKU) (\r
79 VOID\r
80);\r
81\r
82///\r
83/// This is the PCD service to use when querying for some additional data that can be contained in the\r
84/// PCD database.\r
85///\r
86struct _GET_PCD_INFO_PPI {\r
87 ///\r
88 /// Retrieve additional information associated with a PCD.\r
89 ///\r
90 GET_PCD_INFO_PPI_GET_INFO GetInfo;\r
91 GET_PCD_INFO_PPI_GET_INFO_EX GetInfoEx;\r
92 ///\r
93 /// Retrieve the currently set SKU Id.\r
94 ///\r
95 GET_PCD_INFO_PPI_GET_SKU GetSku;\r
96};\r
97\r
98#endif\r
99\r