]> git.proxmox.com Git - mirror_edk2.git/blame - UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutput.h
UefiPayloadPkg: Enhance UEFI payload for coreboot and Slim Bootloader
[mirror_edk2.git] / UefiPayloadPkg / GraphicsOutputDxe / GraphicsOutput.h
CommitLineData
04af8bf2
DG
1/** @file\r
2 Header file for a generic GOP driver.\r
3\r
4Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
5SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7\r
8**/\r
9#ifndef _GRAPHICS_OUTPUT_DXE_H_\r
10#define _GRAPHICS_OUTPUT_DXE_H_\r
11#include <PiDxe.h>\r
12\r
13#include <IndustryStandard/Pci.h>\r
14#include <IndustryStandard/Acpi.h>\r
15#include <Guid/GraphicsInfoHob.h>\r
16#include <Protocol/DriverBinding.h>\r
17#include <Protocol/PciIo.h>\r
18#include <Protocol/DevicePath.h>\r
19#include <Protocol/GraphicsOutput.h>\r
20#include <Protocol/ComponentName.h>\r
21#include <Protocol/ComponentName2.h>\r
22\r
23#include <Library/BaseLib.h>\r
24#include <Library/UefiBootServicesTableLib.h>\r
25#include <Library/HobLib.h>\r
26#include <Library/DevicePathLib.h>\r
27#include <Library/FrameBufferBltLib.h>\r
28#include <Library/DebugLib.h>\r
29#include <Library/BaseMemoryLib.h>\r
30#include <Library/MemoryAllocationLib.h>\r
31#include <Library/UefiLib.h>\r
32\r
33#define MAX_PCI_BAR 6\r
34\r
35typedef struct {\r
36 UINT32 Signature;\r
37 EFI_HANDLE GraphicsOutputHandle;\r
38 EFI_GRAPHICS_OUTPUT_PROTOCOL GraphicsOutput;\r
39 EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE GraphicsOutputMode;\r
40 EFI_DEVICE_PATH_PROTOCOL *DevicePath;\r
41 EFI_PCI_IO_PROTOCOL *PciIo;\r
42 UINT64 PciAttributes;\r
43 FRAME_BUFFER_CONFIGURE *FrameBufferBltLibConfigure;\r
44 UINTN FrameBufferBltLibConfigureSize;\r
45} GRAPHICS_OUTPUT_PRIVATE_DATA;\r
46\r
47#define GRAPHICS_OUTPUT_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('g', 'g', 'o', 'p')\r
48#define GRAPHICS_OUTPUT_PRIVATE_FROM_THIS(a) \\r
49 CR(a, GRAPHICS_OUTPUT_PRIVATE_DATA, GraphicsOutput, GRAPHICS_OUTPUT_PRIVATE_DATA_SIGNATURE)\r
50\r
51extern EFI_COMPONENT_NAME_PROTOCOL mGraphicsOutputComponentName;\r
52extern EFI_COMPONENT_NAME2_PROTOCOL mGraphicsOutputComponentName2;\r
53#endif\r