MdePkg and MdeModulePkg Pcd: Add the new EFI_GET_PCD_INFO_PROTOCOL and EFI_GET_PCD_INFO_PPI support for PI 1.2.1 compliance.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14866 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Include file matches things in PI for multiple module types.
|
||||
|
||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
@@ -133,4 +133,33 @@ typedef struct {
|
||||
UINT64 RegionState;
|
||||
} EFI_SMRAM_DESCRIPTOR;
|
||||
|
||||
typedef enum {
|
||||
EFI_PCD_TYPE_8,
|
||||
EFI_PCD_TYPE_16,
|
||||
EFI_PCD_TYPE_32,
|
||||
EFI_PCD_TYPE_64,
|
||||
EFI_PCD_TYPE_BOOL,
|
||||
EFI_PCD_TYPE_PTR
|
||||
} EFI_PCD_TYPE;
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
/// The returned information associated with the requested TokenNumber. If
|
||||
/// TokenNumber is 0, then PcdType is set to EFI_PCD_TYPE_8.
|
||||
///
|
||||
EFI_PCD_TYPE PcdType;
|
||||
///
|
||||
/// The size of the data in bytes associated with the TokenNumber specified. If
|
||||
/// TokenNumber is 0, then PcdSize is set 0.
|
||||
///
|
||||
UINTN PcdSize;
|
||||
///
|
||||
/// The null-terminated ASCII string associated with a given token. If the
|
||||
/// TokenNumber specified was 0, then this field corresponds to the null-terminated
|
||||
/// ASCII string associated with the token's namespace Guid. If NULL, there is no
|
||||
/// name associated with this request.
|
||||
///
|
||||
CHAR8 *PcdName;
|
||||
} EFI_PCD_INFO;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user