]>
Commit | Line | Data |
---|---|---|
878ddf1f | 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 | |
16 | Module Name: EdidOverride.h\r | |
17 | \r | |
18 | **/\r | |
19 | \r | |
20 | #ifndef __EDID_OVERRIDE_H__\r | |
21 | #define __EDID_OVERRIDE_H__\r | |
22 | \r | |
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 | |
28 | typedef 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 | |
49 | typedef\r | |
50 | EFI_STATUS\r | |
51 | (EFIAPI *EFI_EDID_OVERRIDE_PROTOCOL_GET_EDID) (\r | |
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 | |
60 | struct _EFI_EDID_OVERRIDE_PROTOCOL {\r | |
61 | EFI_EDID_OVERRIDE_PROTOCOL_GET_EDID GetEdid;\r | |
62 | };\r | |
63 | \r | |
64 | extern EFI_GUID gEfiEdidOverrideProtocolGuid;\r | |
65 | \r | |
66 | #endif\r |