Ronak Kanabar | 1ae366f | 2023-06-07 01:21:56 +0530 | [diff] [blame^] | 1 | /** @file |
| 2 | Hob guid for Information about the graphics mode. |
| 3 | |
| 4 | Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR> |
| 5 | SPDX-License-Identifier: BSD-2-Clause-Patent |
| 6 | |
| 7 | @par Revision Reference: |
| 8 | This HOB is introduced in in PI Version 1.4. |
| 9 | |
| 10 | **/ |
| 11 | |
| 12 | #ifndef _GRAPHICS_INFO_HOB_GUID_H_ |
| 13 | #define _GRAPHICS_INFO_HOB_GUID_H_ |
| 14 | |
| 15 | #include <Protocol/GraphicsOutput.h> |
| 16 | |
| 17 | #define EFI_PEI_GRAPHICS_INFO_HOB_GUID \ |
| 18 | { \ |
| 19 | 0x39f62cce, 0x6825, 0x4669, { 0xbb, 0x56, 0x54, 0x1a, 0xba, 0x75, 0x3a, 0x07 } \ |
| 20 | } |
| 21 | |
| 22 | #define EFI_PEI_GRAPHICS_DEVICE_INFO_HOB_GUID \ |
| 23 | { \ |
| 24 | 0xe5cb2ac9, 0xd35d, 0x4430, { 0x93, 0x6e, 0x1d, 0xe3, 0x32, 0x47, 0x8d, 0xe7 } \ |
| 25 | } |
| 26 | |
| 27 | typedef struct { |
| 28 | EFI_PHYSICAL_ADDRESS FrameBufferBase; |
| 29 | UINT32 FrameBufferSize; |
| 30 | EFI_GRAPHICS_OUTPUT_MODE_INFORMATION GraphicsMode; |
| 31 | } EFI_PEI_GRAPHICS_INFO_HOB; |
| 32 | |
| 33 | typedef struct { |
| 34 | UINT16 VendorId; ///< Ignore if the value is 0xFFFF. |
| 35 | UINT16 DeviceId; ///< Ignore if the value is 0xFFFF. |
| 36 | UINT16 SubsystemVendorId; ///< Ignore if the value is 0xFFFF. |
| 37 | UINT16 SubsystemId; ///< Ignore if the value is 0xFFFF. |
| 38 | UINT8 RevisionId; ///< Ignore if the value is 0xFF. |
| 39 | UINT8 BarIndex; ///< Ignore if the value is 0xFF. |
| 40 | } EFI_PEI_GRAPHICS_DEVICE_INFO_HOB; |
| 41 | |
| 42 | extern EFI_GUID gEfiGraphicsInfoHobGuid; |
| 43 | extern EFI_GUID gEfiGraphicsDeviceInfoHobGuid; |
| 44 | |
| 45 | #endif |