]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Uefi/UefiMultiPhase.h
MdePkg: restrict UefiMultiPhase.h contents if VFRCOMPILE defined
[mirror_edk2.git] / MdePkg / Include / Uefi / UefiMultiPhase.h
index 0dcbb1b9eea7ad4c589959819978f89068bc26ad..67ecc4c27cc51b2797530f79dce822ecf51b6068 100644 (file)
@@ -15,6 +15,28 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef __UEFI_MULTIPHASE_H__\r
 #define __UEFI_MULTIPHASE_H__\r
 \r
+///\r
+/// Attributes of variable.\r
+///\r
+#define EFI_VARIABLE_NON_VOLATILE                            0x00000001\r
+#define EFI_VARIABLE_BOOTSERVICE_ACCESS                      0x00000002\r
+#define EFI_VARIABLE_RUNTIME_ACCESS                          0x00000004\r
+///\r
+/// This attribute is identified by the mnemonic 'HR'\r
+/// elsewhere in this specification.\r
+///\r
+#define EFI_VARIABLE_HARDWARE_ERROR_RECORD                   0x00000008\r
+///\r
+/// Attributes of Authenticated Variable\r
+///\r
+#define EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS   0x00000020\r
+#define EFI_VARIABLE_APPEND_WRITE                            0x00000040\r
+///\r
+/// NOTE: EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS is deprecated and should be considered reserved.\r
+///\r
+#define EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS              0x00000010\r
+\r
+#ifndef VFRCOMPILE\r
 #include <Guid/WinCertificate.h>\r
 ///\r
 /// Enumeration of memory types introduced in UEFI.\r
@@ -155,27 +177,6 @@ typedef struct {
   UINT32  Reserved;\r
 } EFI_TABLE_HEADER;\r
 \r
-///\r
-/// Attributes of variable.\r
-///\r
-#define EFI_VARIABLE_NON_VOLATILE                            0x00000001\r
-#define EFI_VARIABLE_BOOTSERVICE_ACCESS                      0x00000002\r
-#define EFI_VARIABLE_RUNTIME_ACCESS                          0x00000004\r
-///\r
-/// This attribute is identified by the mnemonic 'HR'\r
-/// elsewhere in this specification.\r
-///\r
-#define EFI_VARIABLE_HARDWARE_ERROR_RECORD                   0x00000008\r
-///\r
-/// Attributes of Authenticated Variable\r
-///\r
-#define EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS   0x00000020\r
-#define EFI_VARIABLE_APPEND_WRITE                            0x00000040\r
-///\r
-/// NOTE: EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS is deprecated and should be considered reserved.\r
-///\r
-#define EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS              0x00000010\r
-\r
 ///\r
 /// AuthInfo is a WIN_CERTIFICATE using the wCertificateType\r
 /// WIN_CERTIFICATE_UEFI_GUID and the CertType\r
@@ -229,5 +230,6 @@ typedef struct {
   ///\r
   WIN_CERTIFICATE_UEFI_GUID   AuthInfo;\r
  } EFI_VARIABLE_AUTHENTICATION_2;\r
+#endif // VFRCOMPILE\r
 \r
 #endif\r