aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/intel/edk2/uefi_2.4/uefi_types.h
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2015-04-20 15:13:55 -0700
committerLeroy P Leahy <leroy.p.leahy@intel.com>2015-04-30 22:28:12 +0200
commitc95ebccd9a26fec56397756b98de1955fe9da556 (patch)
treef99ea8ec285d9ef41694bcea9b179689aacb630f /src/vendorcode/intel/edk2/uefi_2.4/uefi_types.h
parent405bd698a6c69c2812c90c31e6ada60f63e253b7 (diff)
vendorcode/intel: Add EDK2 header files
As the first step in adding support for FSP 1.1, add common header files for EDK2. Internally FSP is based upon EDK2 and uses the defines and data structures within these files for its interface. These files come from revision 16227 of the open source EDK2 tree at https://svn.code.sf.net/p/edk2/code/trunk/edk2. These files are provided in an EDK2 style tree to allow direct comparison with the EDK2 tree. Updates may be done manually to these files but only to support FSP 1.1 on UEFI 2.4. A uefi_2.5 tree should be added in the future as FSP binaries migrate to UEFI 2.5. Note: All the files were modified to use Linux line termination. BRANCH=none BUG=None TEST=Build for Braswell or Skylake boards using FSP 1.1. Change-Id: Ide5684b7eb6392e12f9f2f24215f5370c2d47c70 Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: http://review.coreboot.org/9943 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/vendorcode/intel/edk2/uefi_2.4/uefi_types.h')
-rw-r--r--src/vendorcode/intel/edk2/uefi_2.4/uefi_types.h124
1 files changed, 124 insertions, 0 deletions
diff --git a/src/vendorcode/intel/edk2/uefi_2.4/uefi_types.h b/src/vendorcode/intel/edk2/uefi_2.4/uefi_types.h
new file mode 100644
index 0000000000..594bd8e5dd
--- /dev/null
+++ b/src/vendorcode/intel/edk2/uefi_2.4/uefi_types.h
@@ -0,0 +1,124 @@
+/**
+
+Copyright (C) 2013, Intel Corporation
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the above copyright notice, this
+ list of conditions and the following disclaimer in the documentation and/or
+ other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors may
+ be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
+
+**/
+
+#ifndef __UEFI_TYPES_H__
+#define __UEFI_TYPES_H__
+
+//
+// Set the UEFI types and attributes
+//
+#define __APPLE__ 0
+#include <stdlib.h>
+#include <Uefi/UefiBaseType.h>
+#include <MdePkg/Include/Pi/PiBootMode.h>
+#include <MdePkg/Include/Pi/PiFirmwareFile.h>
+#include <MdePkg/Include/Pi/PiFirmwareVolume.h>
+#include <MdePkg/Include/Uefi/UefiMultiPhase.h>
+#include <MdePkg/Include/Pi/PiHob.h>
+#include <MdePkg/Include/Protocol/GraphicsOutput.h>
+#include <MdePkg/Include/Library/HobLib.h>
+#include <MdePkg/Include/Guid/FirmwareFileSystem2.h>
+#include <MdePkg/Include/IndustryStandard/PeImage.h>
+
+///
+/// For GNU assembly code, .global or .globl can declare global symbols.
+/// Define this macro to unify the usage.
+///
+#if defined(ASM_GLOBAL)
+#undef ASM_GLOBAL
+#endif
+#define ASM_GLOBAL .global
+
+//
+// Define the ASSERT support
+//
+static inline void debug_dead_loop(void)
+{
+ for (;;)
+ ;
+}
+
+#define _ASSERT(expression) debug_dead_loop()
+#define ASSERT(expression) \
+ do { \
+ if (!(expression)) { \
+ _ASSERT(expression); \
+ } \
+ } while (FALSE)
+
+//
+// Contents of the PEI_GRAPHICS_INFO_HOB
+//
+typedef struct {
+ EFI_PHYSICAL_ADDRESS FrameBufferBase;
+ UINT64 FrameBufferSize;
+ EFI_GRAPHICS_OUTPUT_MODE_INFORMATION GraphicsMode;
+} EFI_PEI_GRAPHICS_INFO_HOB;
+
+//
+// Define the known GUIDs
+//
+#define EFI_PEI_GRAPHICS_INFO_HOB_GUID \
+{ \
+ 0x39f62cce, 0x6825, 0x4669, \
+ { 0xbb, 0x56, 0x54, 0x1a, 0xba, 0x75, 0x3a, 0x07 } \
+}
+
+#define FSP_BOOTLOADER_TEMP_MEMORY_HOB_GUID \
+{ \
+ 0xbbcff46c, 0xc8d3, 0x4113, \
+ {0x89, 0x85, 0xb9, 0xd4, 0xf3, 0xb3, 0xf6, 0x4e} \
+}
+
+#define FSP_BOOTLOADER_TOLUM_HOB_GUID \
+{ \
+ 0x73ff4f56, 0xaa8e, 0x4451, \
+ { 0xb3, 0x16, 0x36, 0x35, 0x36, 0x67, 0xad, 0x44 } \
+}
+
+#define FSP_INFO_HEADER_GUID \
+{ \
+ 0x912740BE, 0x2284, 0x4734, \
+ {0xB9, 0x71, 0x84, 0xB0, 0x27, 0x35, 0x3F, 0x0C} \
+}
+
+#define FSP_NON_VOLATILE_STORAGE_HOB_GUID \
+{ \
+ 0x721acf02, 0x4d77, 0x4c2a, \
+ {0xb3, 0xdc, 0x27, 0x0b, 0x7b, 0xa9, 0xe4, 0xb0} \
+}
+
+#define FSP_RESERVED_MEMORY_RESOURCE_HOB_GUID \
+{ \
+ 0x69a79759, 0x1373, 0x4367, \
+ { 0xa6, 0xc4, 0xc7, 0xf5, 0x9e, 0xfd, 0x98, 0x6e } \
+}
+
+#endif /* __UEFI_TYPES_H__*/