]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Ppi/Graphics.h
MdePkg: Minor update to the Data parameter for PEI GetVariable()
[mirror_edk2.git] / MdePkg / Include / Ppi / Graphics.h
CommitLineData
697c6cf3
HW
1/** @file\r
2 This file declares Graphics PPI.\r
3 This PPI is the main interface exposed by the Graphics PEIM to be used by the\r
4 other firmware modules.\r
5\r
6 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
7 This program and the accompanying materials\r
8 are licensed and made available under the terms and conditions of the BSD License\r
9 which accompanies this distribution. The full text of the license may be found at\r
10 http://opensource.org/licenses/bsd-license.php\r
11\r
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
15 @par Revision Reference:\r
16 This PPI is introduced in PI Version 1.4.\r
17\r
18**/\r
19\r
20#ifndef __PEI_GRAPHICS_PPI_H__\r
21#define __PEI_GRAPHICS_PPI_H__\r
22\r
23#include <Protocol/GraphicsOutput.h>\r
24\r
25#define EFI_PEI_GRAPHICS_PPI_GUID \\r
26 { \\r
27 0x6ecd1463, 0x4a4a, 0x461b, { 0xaf, 0x5f, 0x5a, 0x33, 0xe3, 0xb2, 0x16, 0x2b } \\r
28 }\r
29\r
30typedef struct _EFI_PEI_GRAPHICS_PPI EFI_PEI_GRAPHICS_PPI;\r
31\r
32/**\r
33 The GraphicsPpiInit initializes the graphics subsystem in phases.\r
34\r
35 @param[in] GraphicsPolicyPtr GraphicsPolicyPtr points to a configuration data\r
36 block of policy settings required by Graphics PEIM.\r
37\r
38 @retval EFI_SUCCESS The invocation was successful.\r
39 @retval EFI_INVALID_PARAMETER The phase parameter is not valid.\r
40 @retval EFI_NOT_ABORTED The stages was not called in the proper order.\r
41 @retval EFI_NOT_FOUND The PeiGraphicsPlatformPolicyPpi is not located.\r
42 @retval EFI_DEVICE_ERROR The initialization failed due to device error.\r
43 @retval EFI_NOT_READY The previous init stage is still in progress and not\r
44 ready for the current initialization phase yet. The\r
45 platform code should call this again sometime later.\r
46**/\r
47typedef\r
48EFI_STATUS\r
49(EFIAPI *EFI_PEI_GRAPHICS_INIT) (\r
50 IN VOID *GraphicsPolicyPtr\r
51 );\r
52\r
53/**\r
54 The GraphicsPpiGetMode returns the mode information supported by the Graphics PEI\r
55 Module.\r
56\r
57 @param[in, out] Mode Pointer to EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE data.\r
58\r
59 @retval EFI_SUCCESS Valid mode information was returned.\r
60 @retval EFI_INVALID_PARAMETER The Mode parameter is not valid.\r
61 @retval EFI_DEVICE_ERROR A hardware error occurred trying to retrieve the video\r
62 mode.\r
63 @retval EFI_NOT_READY The Graphics Initialization is not competed and Mode\r
64 information is not yet available.The platform code\r
65 should call this again after the Graphics\r
66 initialization is done.\r
67**/\r
68typedef\r
69EFI_STATUS\r
70(EFIAPI *EFI_PEI_GRAPHICS_GET_MODE) (\r
71 IN OUT EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE *Mode\r
72 );\r
73\r
74///\r
75/// This PPI is the main interface exposed by the Graphics PEIM to be used by the other\r
76/// firmware modules.\r
77///\r
78struct _EFI_PEI_GRAPHICS_PPI {\r
79 EFI_PEI_GRAPHICS_INIT GraphicsPpiInit;\r
80 EFI_PEI_GRAPHICS_GET_MODE GraphicsPpiGetMode;\r
81};\r
82\r
83extern EFI_GUID gEfiPeiGraphicsPpiGuid;\r
84\r
85#endif\r