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 |
7 | Copyright (c) 2006, Intel Corporation \r |
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 |
21 | #define EFI_EDID_OVERRIDE_PROTOCOL_GUID \\r |
22 | { \\r |
23 | 0x48ecb431, 0xfb72, 0x45c0, {0xa9, 0x22, 0xf4, 0x58, 0xfe, 0x4, 0xb, 0xd5 } \\r |
24 | }\r |
25 | \r |
26 | typedef struct _EFI_EDID_OVERRIDE_PROTOCOL EFI_EDID_OVERRIDE_PROTOCOL;\r |
27 | \r |
28 | #define EFI_EDID_OVERRIDE_DONT_OVERRIDE 0x01\r |
29 | #define EFI_EDID_OVERRIDE_ENABLE_HOT_PLUG 0x02\r |
30 | \r |
31 | /**\r |
32 | Return the current video mode information.\r |
33 | \r |
34 | @param This Protocol instance pointer.\r |
35 | @param ChildHandle A child handle produced by the Graphics Output EFI\r |
36 | driver that represents a video output device.\r |
37 | @param Attributes The attributes associated with ChildHandle video output device.\r |
38 | @param EdidSize A pointer to the size, in bytes, of the Edid buffer.\r |
39 | @param Edid A pointer to callee allocated buffer that contains the EDID that\r |
40 | should be used for ChildHandle. A value of NULL\r |
41 | represents no EDID override for ChildHandle.\r |
42 | \r |
43 | @retval EFI_SUCCESS Valid overrides returned for ChildHandle.\r |
44 | @retval EFI_UNSUPPORTED ChildHandle has no overrides.\r |
45 | \r |
46 | **/\r |
47 | typedef\r |
48 | EFI_STATUS\r |
49 | (EFIAPI *EFI_EDID_OVERRIDE_PROTOCOL_GET_EDID) (\r |
50 | IN EFI_EDID_OVERRIDE_PROTOCOL *This,\r |
51 | IN EFI_HANDLE *ChildHandle,\r |
52 | OUT UINT32 *Attributes,\r |
53 | IN OUT UINTN *EdidSize,\r |
54 | IN OUT UINT8 **Edid\r |
55 | )\r |
56 | ;\r |
57 | \r |
58 | struct _EFI_EDID_OVERRIDE_PROTOCOL {\r |
59 | EFI_EDID_OVERRIDE_PROTOCOL_GET_EDID GetEdid;\r |
60 | };\r |
61 | \r |
62 | extern EFI_GUID gEfiEdidOverrideProtocolGuid;\r |
63 | \r |
64 | #endif\r |