]>
Commit | Line | Data |
---|---|---|
fce4ecd9 MM |
1 | /** @file\r |
2 | This file defines the hob structure for frame buffer device.\r | |
3 | \r | |
4 | Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php.\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef __FRAME_BUFFER_INFO_GUID_H__\r | |
16 | #define __FRAME_BUFFER_INFO_GUID_H__\r | |
17 | \r | |
18 | ///\r | |
19 | /// Frame Buffer Information GUID\r | |
20 | ///\r | |
21 | extern EFI_GUID gUefiFrameBufferInfoGuid;\r | |
22 | \r | |
23 | typedef struct {\r | |
24 | UINT8 Position; // Position of the color\r | |
25 | UINT8 Mask; // The number of bits expressed as a mask\r | |
26 | } COLOR_PLACEMENT;\r | |
27 | \r | |
28 | typedef struct { \r | |
29 | UINT64 LinearFrameBuffer; \r | |
30 | UINT32 HorizontalResolution;\r | |
31 | UINT32 VerticalResolution;\r | |
32 | UINT32 BitsPerPixel;\r | |
33 | UINT16 BytesPerScanLine;\r | |
34 | COLOR_PLACEMENT Red;\r | |
35 | COLOR_PLACEMENT Green;\r | |
36 | COLOR_PLACEMENT Blue;\r | |
37 | COLOR_PLACEMENT Reserved;\r | |
38 | } FRAME_BUFFER_INFO; \r | |
39 | \r | |
40 | #endif\r |