]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CorebootModulePkg/Include/Guid/FrameBufferInfoGuid.h
Pkg-Module: CorebootModulePkg
[mirror_edk2.git] / CorebootModulePkg / Include / Guid / FrameBufferInfoGuid.h
diff --git a/CorebootModulePkg/Include/Guid/FrameBufferInfoGuid.h b/CorebootModulePkg/Include/Guid/FrameBufferInfoGuid.h
new file mode 100644 (file)
index 0000000..be5ca49
--- /dev/null
@@ -0,0 +1,40 @@
+/** @file\r
+  This file defines the hob structure for frame buffer device.\r
+  \r
+  Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php.\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef __FRAME_BUFFER_INFO_GUID_H__\r
+#define __FRAME_BUFFER_INFO_GUID_H__\r
+\r
+///\r
+/// Frame Buffer Information GUID\r
+///\r
+extern EFI_GUID gUefiFrameBufferInfoGuid;\r
+\r
+typedef struct {\r
+  UINT8 Position; // Position of the color\r
+  UINT8 Mask;     // The number of bits expressed as a mask\r
+} COLOR_PLACEMENT;\r
+\r
+typedef struct {  \r
+  UINT64             LinearFrameBuffer;  \r
+  UINT32             HorizontalResolution;\r
+  UINT32             VerticalResolution;\r
+  UINT32             BitsPerPixel;\r
+  UINT16             BytesPerScanLine;\r
+  COLOR_PLACEMENT    Red;\r
+  COLOR_PLACEMENT    Green;\r
+  COLOR_PLACEMENT    Blue;\r
+  COLOR_PLACEMENT    Reserved;\r
+} FRAME_BUFFER_INFO;  \r
+  \r
+#endif\r