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