OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
UserPcd.h
Go to the documentation of this file.
1
6#ifndef OC_USER_PCD_H
7#define OC_USER_PCD_H
8
9//
10// Workaround RSIZE_MAX redeclaration in stdint.h and PrintLibInternal.c.
11//
12#ifdef __STDC_WANT_LIB_EXT1__
13 #undef __STDC_WANT_LIB_EXT1__
14#endif
15#define __STDC_WANT_LIB_EXT1__ 0
16#include <stdint.h>
17
18//
19// Workaround for NULL redeclaration.
20//
21#include <stddef.h>
22#ifdef NULL
23 #undef NULL
24#endif
25
26//
27// Workaround overrides to symbol visibility in ProcessorBind.h
28// breaking linkage with C standard library with GCC/BFD.
29//
30#if defined (__GNUC__)
31 #pragma GCC visibility push(default)
32 #include <Base.h>
33 #pragma GCC visibility pop
34#endif
35
36#include <Uefi.h>
37#include <Library/PcdLib.h>
38#include <Library/UefiLib.h>
39#include <Library/UefiApplicationEntryPoint.h>
40#include <Library/OcCryptoLib.h>
41
71
72#define _PCD_GET_MODE_32_PcdUefiLibMaxPrintBufferSize _gPcd_FixedAtBuild_PcdUefiLibMaxPrintBufferSize
73#define _PCD_GET_MODE_BOOL_PcdUgaConsumeSupport _gPcd_FixedAtBuild_PcdUgaConsumeSupport
74#define _PCD_GET_MODE_8_PcdDebugPropertyMask _gPcd_FixedAtBuild_PcdDebugPropertyMask
75#define _PCD_GET_MODE_8_PcdDebugRaisePropertyMask _gPcd_FixedAtBuild_PcdDebugRaisePropertyMask
76#define _PCD_GET_MODE_8_PcdDebugClearMemoryValue _gPcd_FixedAtBuild_PcdDebugClearMemoryValue
77#define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
78#define _PCD_GET_MODE_32_PcdDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdDebugPrintErrorLevel
79#define _PCD_GET_MODE_32_PcdMaximumAsciiStringLength _gPcd_FixedAtBuild_PcdMaximumAsciiStringLength
80#define _PCD_GET_MODE_32_PcdMaximumUnicodeStringLength _gPcd_FixedAtBuild_PcdMaximumUnicodeStringLength
81#define _PCD_GET_MODE_32_PcdMaximumLinkedListLength _gPcd_FixedAtBuild_PcdMaximumLinkedListLength
82#define _PCD_GET_MODE_BOOL_PcdVerifyNodeInList _gPcd_FixedAtBuild_PcdVerifyNodeInList
83#define _PCD_GET_MODE_16_PcdOcCryptoAllowedRsaModuli (512U | 256U)
84#define _PCD_GET_MODE_16_PcdOcCryptoAllowedSigHashTypes \
85 ((1U << OcSigHashTypeSha256) | (1U << OcSigHashTypeSha384) | (1U << OcSigHashTypeSha512))
86#define _PCD_GET_MODE_32_PcdCpuNumberOfReservedVariableMtrrs _gPcd_FixedAtBuild_PcdCpuNumberOfReservedVariableMtrrs
87#define _PCD_GET_MODE_PTR_PcdUefiVariableDefaultLang _gPcd_FixedAtBuild_PcdUefiVariableDefaultLang
88#define _PCD_GET_MODE_PTR_PcdUefiVariableDefaultPlatformLang _gPcd_FixedAtBuild_PcdUefiVariableDefaultPlatformLang
89#define _PCD_GET_MODE_BOOL_PcdValidateOrderedCollection ((BOOLEAN)0U)
90#define _PCD_GET_MODE_BOOL_PcdFatReadOnlyMode _gPcd_FeatureFlag_PcdFatReadOnlyMode
91#define _PCD_GET_MODE_32_PcdSerialRegisterStride _gPcd_BinaryPatch_PcdSerialRegisterStride
92//
93// This will not be of any effect at userspace.
94//
95#define _PCD_GET_MODE_64_PcdPciExpressBaseAddress 0
96#define _PCD_GET_MODE_64_PcdPciExpressBaseSize 0
97#define _PCD_GET_MODE_32_PcdMaximumDevicePathNodeCount _gPcd_FixedAtBuild_PcdMaximumDevicePathNodeCount
98#define _PCD_GET_MODE_BOOL_PcdImageLoaderRtRelocAllowTargetMismatch _gPcd_FixedAtBuild_PcdImageLoaderRtRelocAllowTargetMismatch
99#define _PCD_GET_MODE_BOOL_PcdImageLoaderHashProhibitOverlap _gPcd_FixedAtBuild_PcdImageLoaderHashProhibitOverlap
100#define _PCD_GET_MODE_BOOL_PcdImageLoaderLoadHeader _gPcd_FixedAtBuild_PcdImageLoaderLoadHeader
101#define _PCD_GET_MODE_BOOL_PcdImageLoaderDebugSupport _gPcd_FixedAtBuild_PcdImageLoaderDebugSupport
102#define _PCD_GET_MODE_BOOL_PcdImageLoaderAllowMisalignedOffset _gPcd_FixedAtBuild_PcdImageLoaderAllowMisalignedOffset
103#define _PCD_GET_MODE_BOOL_PcdImageLoaderRemoveXForWX _gPcd_FixedAtBuild_PcdImageLoaderRemoveXForWX
104#define _PCD_GET_MODE_BOOL_PcdImageLoaderWXorX _gPcd_FixedAtBuild_PcdImageLoaderWXorX
105#define _PCD_GET_MODE_32_PcdImageLoaderAlignmentPolicy _gPcd_FixedAtBuild_PcdImageLoaderAlignmentPolicy
106#define _PCD_GET_MODE_32_PcdImageLoaderRelocTypePolicy _gPcd_FixedAtBuild_PcdImageLoaderRelocTypePolicy
107#define _PCD_GET_MODE_8_PcdUefiImageFormatSupportNonFv _gPcd_FixedAtBuild_PcdUefiImageFormatSupportNonFv
108#define _PCD_GET_MODE_8_PcdUefiImageFormatSupportFv _gPcd_FixedAtBuild_PcdUefiImageFormatSupportFv
109#define _PCD_GET_MODE_32_PcdImageProtectionPolicy _gPcd_FixedAtBuild_PcdImageProtectionPolicy
110
111#endif // OC_USER_PCD_H
UINT8 _gPcd_FixedAtBuild_PcdUefiVariableDefaultPlatformLang[6]
UINT32 _gPcd_FixedAtBuild_PcdMaximumUnicodeStringLength
Definition UserPcd.c:35
UINT8 _gPcd_FixedAtBuild_PcdUefiImageFormatSupportNonFv
Definition UserPcd.c:51
UINT32 _gPcd_FixedAtBuild_PcdMaximumLinkedListLength
Definition UserPcd.c:36
UINT32 _gPcd_FixedAtBuild_PcdImageLoaderAlignmentPolicy
Definition UserPcd.c:47
UINT32 _gPcd_BinaryPatch_PcdSerialRegisterStride
Definition UserPcd.c:50
UINT8 _gPcd_FixedAtBuild_PcdUefiImageFormatSupportFv
Definition UserPcd.c:52
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderWXorX
Definition UserPcd.c:46
BOOLEAN _gPcd_FixedAtBuild_PcdUgaConsumeSupport
Definition UserPcd.c:28
UINT32 _gPcd_FixedAtBuild_PcdCpuNumberOfReservedVariableMtrrs
Definition UserPcd.c:38
UINT8 _gPcd_FixedAtBuild_PcdDebugPropertyMask
Definition UserPcd.c:29
UINT8 _gPcd_FixedAtBuild_PcdUefiVariableDefaultLang[4]
UINT32 _gPcd_FixedAtBuild_PcdUefiLibMaxPrintBufferSize
Definition UserPcd.c:27
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderDebugSupport
Definition UserPcd.c:43
UINT32 _gPcd_FixedAtBuild_PcdMaximumDevicePathNodeCount
Definition UserPcd.c:39
UINT32 _gPcd_FixedAtBuild_PcdImageLoaderRelocTypePolicy
Definition UserPcd.c:48
BOOLEAN _gPcd_FixedAtBuild_PcdVerifyNodeInList
Definition UserPcd.c:37
UINT32 _gPcd_FixedAtBuild_PcdDebugPrintErrorLevel
Definition UserPcd.c:33
BOOLEAN _gPcd_FeatureFlag_PcdFatReadOnlyMode
Definition UserPcd.c:49
UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
Definition UserPcd.c:32
UINT8 _gPcd_FixedAtBuild_PcdDebugClearMemoryValue
Definition UserPcd.c:31
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderAllowMisalignedOffset
Definition UserPcd.c:44
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderRtRelocAllowTargetMismatch
Definition UserPcd.c:40
UINT32 _gPcd_FixedAtBuild_PcdImageProtectionPolicy
Definition UserPcd.c:53
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderLoadHeader
Definition UserPcd.c:42
UINT8 _gPcd_FixedAtBuild_PcdDebugRaisePropertyMask
Definition UserPcd.c:30
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderRemoveXForWX
Definition UserPcd.c:45
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderHashProhibitOverlap
Definition UserPcd.c:41
UINT32 _gPcd_FixedAtBuild_PcdMaximumAsciiStringLength
Definition UserPcd.c:34