]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/EdidOverride.h
Code Scrub for Protocol and Ppi Definition
[mirror_edk2.git] / MdePkg / Include / Protocol / EdidOverride.h
CommitLineData
d1f95000 1/** @file\r
2 EDID Override Protocol from the UEFI 2.0 specification.\r
3\r
4 Allow platform to provide EDID information to producer of the Graphics Output\r
5 protocol.\r
6\r
4ca9b6c4 7 Copyright (c) 2006 - 2008, Intel Corporation \r
d1f95000 8 All rights reserved. This program and the accompanying materials \r
9 are licensed and made available under the terms and conditions of the BSD License \r
10 which accompanies this distribution. The full text of the license may be found at \r
11 http://opensource.org/licenses/bsd-license.php \r
12\r
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
15\r
d1f95000 16**/\r
17\r
18#ifndef __EDID_OVERRIDE_H__\r
19#define __EDID_OVERRIDE_H__\r
20\r
bc88c688 21#include <PiDxe.h>\r
22\r
d1f95000 23#define EFI_EDID_OVERRIDE_PROTOCOL_GUID \\r
24 { \\r
25 0x48ecb431, 0xfb72, 0x45c0, {0xa9, 0x22, 0xf4, 0x58, 0xfe, 0x4, 0xb, 0xd5 } \\r
26 }\r
27\r
28typedef struct _EFI_EDID_OVERRIDE_PROTOCOL EFI_EDID_OVERRIDE_PROTOCOL;\r
29\r
30#define EFI_EDID_OVERRIDE_DONT_OVERRIDE 0x01\r
31#define EFI_EDID_OVERRIDE_ENABLE_HOT_PLUG 0x02\r
32\r
33/**\r
34 Return the current video mode information.\r
35\r
36 @param This Protocol instance pointer.\r
37 @param ChildHandle A child handle produced by the Graphics Output EFI\r
38 driver that represents a video output device.\r
39 @param Attributes The attributes associated with ChildHandle video output device.\r
40 @param EdidSize A pointer to the size, in bytes, of the Edid buffer.\r
41 @param Edid A pointer to callee allocated buffer that contains the EDID that\r
42 should be used for ChildHandle. A value of NULL\r
43 represents no EDID override for ChildHandle.\r
44\r
45 @retval EFI_SUCCESS Valid overrides returned for ChildHandle.\r
46 @retval EFI_UNSUPPORTED ChildHandle has no overrides.\r
47\r
48**/\r
49typedef\r
50EFI_STATUS\r
8b13229b 51(EFIAPI *EFI_EDID_OVERRIDE_PROTOCOL_GET_EDID)(\r
d1f95000 52 IN EFI_EDID_OVERRIDE_PROTOCOL *This,\r
53 IN EFI_HANDLE *ChildHandle,\r
54 OUT UINT32 *Attributes,\r
55 IN OUT UINTN *EdidSize,\r
56 IN OUT UINT8 **Edid\r
57 )\r
58;\r
59\r
4ca9b6c4
LG
60/**\r
61 @par Protocol Description:\r
62 This protocol is produced by the platform to allow the platform to provide \r
63 EDID information to the producer of the Graphics Output protocol.\r
64\r
65 @param GetEdid \r
66 Returns EDID values and attributes that the Video BIOS must use. \r
67\r
68**/\r
d1f95000 69struct _EFI_EDID_OVERRIDE_PROTOCOL {\r
70 EFI_EDID_OVERRIDE_PROTOCOL_GET_EDID GetEdid;\r
71};\r
72 \r
73extern EFI_GUID gEfiEdidOverrideProtocolGuid;\r
74\r
75#endif\r