]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Ppi/PiPcdInfo.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Ppi / PiPcdInfo.h
CommitLineData
96d6d004
SZ
1/** @file\r
2 Platform Configuration Database (PCD) Info Ppi defined in PI 1.2.1 Vol3.\r
3\r
4 The PPI that provides additional information about items that reside in the PCD database.\r
5\r
6 Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
9344f092 7 SPDX-License-Identifier: BSD-2-Clause-Patent\r
96d6d004
SZ
8\r
9 @par Revision Reference:\r
10 PI Version 1.2.1 Vol 3.\r
11**/\r
12\r
13#ifndef __PI_PCD_INFO_PPI_H__\r
14#define __PI_PCD_INFO_PPI_H__\r
15\r
2f88bd3a 16extern EFI_GUID gEfiGetPcdInfoPpiGuid;\r
96d6d004
SZ
17\r
18#define EFI_GET_PCD_INFO_PPI_GUID \\r
19 { 0xa60c6b59, 0xe459, 0x425d, { 0x9c, 0x69, 0xb, 0xcc, 0x9c, 0xb2, 0x7d, 0x81 } }\r
20\r
21///\r
22/// The forward declaration for EFI_GET_PCD_INFO_PPI.\r
23///\r
2f88bd3a 24typedef struct _EFI_GET_PCD_INFO_PPI EFI_GET_PCD_INFO_PPI;\r
96d6d004
SZ
25\r
26/**\r
27 Retrieve additional information associated with a PCD token.\r
28\r
29 This includes information such as the type of value the TokenNumber is associated with as well as possible\r
30 human readable name that is associated with the token.\r
31\r
32 @param[in] Guid The 128-bit unique value that designates the namespace from which to extract the value.\r
33 @param[in] TokenNumber The PCD token number.\r
34 @param[out] PcdInfo The returned information associated with the requested TokenNumber.\r
35\r
36 @retval EFI_SUCCESS The PCD information was returned successfully\r
37 @retval EFI_NOT_FOUND The PCD service could not find the requested token number.\r
38**/\r
39typedef\r
40EFI_STATUS\r
2f88bd3a 41(EFIAPI *EFI_GET_PCD_INFO_PPI_GET_INFO)(\r
96d6d004
SZ
42 IN CONST EFI_GUID *Guid,\r
43 IN UINTN TokenNumber,\r
44 OUT EFI_PCD_INFO *PcdInfo\r
2f88bd3a 45 );\r
96d6d004
SZ
46\r
47/**\r
48 Retrieve the currently set SKU Id.\r
49\r
50 @return The currently set SKU Id. If the platform has not set at a SKU Id, then the\r
51 default SKU Id value of 0 is returned. If the platform has set a SKU Id, then the currently set SKU\r
52 Id is returned.\r
53**/\r
54typedef\r
55UINTN\r
2f88bd3a 56(EFIAPI *EFI_GET_PCD_INFO_PPI_GET_SKU)(\r
96d6d004 57 VOID\r
2f88bd3a 58 );\r
96d6d004
SZ
59\r
60///\r
61/// This is the PCD service to use when querying for some additional data that can be contained in the\r
62/// PCD database.\r
63///\r
64struct _EFI_GET_PCD_INFO_PPI {\r
65 ///\r
66 /// Retrieve additional information associated with a PCD.\r
67 ///\r
2f88bd3a 68 EFI_GET_PCD_INFO_PPI_GET_INFO GetInfo;\r
96d6d004
SZ
69 ///\r
70 /// Retrieve the currently set SKU Id.\r
71 ///\r
2f88bd3a 72 EFI_GET_PCD_INFO_PPI_GET_SKU GetSku;\r
96d6d004
SZ
73};\r
74\r
75#endif\r