VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Ppi/PcdInfo.h@ 85788

Last change on this file since 85788 was 80721, checked in by vboxsync, 5 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette