]>
Commit | Line | Data |
---|---|---|
6bfbb5f0 | 1 | ## @file\r |
85ea851e | 2 | # Instance of PCD Library using PCD Protocol.\r |
e386b444 | 3 | #\r |
c92c1790 | 4 | # There are two PCD protocols as follows:\r |
ec735bb2 | 5 | # 1) PCD_PROTOCOL\r |
6 | # It is EDKII implementation which support Dynamic/DynamicEx Pcds.\r | |
7 | # 2) EFI_PCD_PROTOCOL\r | |
9095d37b | 8 | # It is defined by PI specification 1.2, Vol 3 which only support dynamicEx\r |
ec735bb2 | 9 | # type Pcd.\r |
85ea851e | 10 | #\r |
ec735bb2 | 11 | # For dynamicEx type PCD, it is compatible between PCD_PROTOCOL and EFI_PCD_PROTOCOL.\r |
12 | #\r | |
13 | # This library instance uses the PCD_PROTOCOL to handle dynamic PCD request and use\r | |
14 | # EFI_PCD_PROTOCOL to handle dynamicEx type PCD.\r | |
15 | #\r | |
9095d37b LG |
16 | # Note: A driver of type DXE_RUNTIME_DRIVER and DXE_SMM_DRIVER can only use this DxePcdLib\r |
17 | # in their initialization without any issues to access Dynamic and DynamicEx PCD. They can't\r | |
fdb5bc72 | 18 | # access Dynamic and DynamicEx PCD in the implementation of runtime services and SMI handlers.\r |
9095d37b | 19 | # Because EFI_PCD_PROTOCOL is DXE protocol that is not aviable in OS runtime phase.\r |
fdb5bc72 | 20 | #\r |
9095d37b | 21 | # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r |
e386b444 | 22 | #\r |
9344f092 | 23 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r |
e386b444 | 24 | #\r |
25 | #\r | |
6bfbb5f0 | 26 | ##\r |
e386b444 | 27 | \r |
e386b444 | 28 | [Defines]\r |
29 | INF_VERSION = 0x00010005\r | |
30 | BASE_NAME = DxePcdLib\r | |
c92c1790 | 31 | MODULE_UNI_FILE = DxePcdLib.uni\r |
e386b444 | 32 | FILE_GUID = af97eb89-4cc6-45f8-a514-ca025b346480\r |
33 | MODULE_TYPE = DXE_DRIVER\r | |
34 | VERSION_STRING = 1.0\r | |
3cb0a311 | 35 | LIBRARY_CLASS = PcdLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER SMM_CORE UEFI_APPLICATION UEFI_DRIVER\r |
e386b444 | 36 | \r |
e386b444 | 37 | #\r |
3cb0a311 | 38 | # VALID_ARCHITECTURES = IA32 X64 EBC\r |
e386b444 | 39 | #\r |
40 | \r | |
6bfbb5f0 | 41 | [Sources]\r |
e386b444 | 42 | DxePcdLib.c\r |
e386b444 | 43 | \r |
44 | \r | |
e386b444 | 45 | [Packages]\r |
46 | MdePkg/MdePkg.dec\r | |
47 | \r | |
48 | \r | |
e386b444 | 49 | [LibraryClasses]\r |
50 | BaseMemoryLib\r | |
51 | UefiBootServicesTableLib\r | |
52 | DebugLib\r | |
53 | \r | |
54 | \r | |
e386b444 | 55 | [Protocols]\r |
c92c1790 | 56 | gPcdProtocolGuid ## SOMETIMES_CONSUMES\r |
ec735bb2 | 57 | gEfiPcdProtocolGuid ## CONSUMES\r |
96d6d004 SZ |
58 | gGetPcdInfoProtocolGuid ## SOMETIMES_CONSUMES\r |
59 | gEfiGetPcdInfoProtocolGuid ## SOMETIMES_CONSUMES\r | |
3397c6f5 SZ |
60 | \r |
61 | [Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]\r | |
ec735bb2 | 62 | gEfiPcdProtocolGuid\r |
25366245 | 63 | \r |