]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | EDID Override Protocol from the UEFI 2.0 specification.\r | |
3 | \r | |
4 | Allow platform to provide EDID information to the producer of the Graphics Output\r | |
5 | protocol.\r | |
6 | \r | |
7 | Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r | |
8 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
9 | \r | |
10 | **/\r | |
11 | \r | |
12 | #ifndef __EDID_OVERRIDE_H__\r | |
13 | #define __EDID_OVERRIDE_H__\r | |
14 | \r | |
15 | #define EFI_EDID_OVERRIDE_PROTOCOL_GUID \\r | |
16 | { \\r | |
17 | 0x48ecb431, 0xfb72, 0x45c0, {0xa9, 0x22, 0xf4, 0x58, 0xfe, 0x4, 0xb, 0xd5 } \\r | |
18 | }\r | |
19 | \r | |
20 | typedef struct _EFI_EDID_OVERRIDE_PROTOCOL EFI_EDID_OVERRIDE_PROTOCOL;\r | |
21 | \r | |
22 | #define EFI_EDID_OVERRIDE_DONT_OVERRIDE 0x01\r | |
23 | #define EFI_EDID_OVERRIDE_ENABLE_HOT_PLUG 0x02\r | |
24 | \r | |
25 | /**\r | |
26 | Returns policy information and potentially a replacement EDID for the specified video output device.\r | |
27 | \r | |
28 | @param This The EFI_EDID_OVERRIDE_PROTOCOL instance.\r | |
29 | @param ChildHandle A child handle produced by the Graphics Output EFI\r | |
30 | driver that represents a video output device.\r | |
31 | @param Attributes The attributes associated with ChildHandle video output device.\r | |
32 | @param EdidSize A pointer to the size, in bytes, of the Edid buffer.\r | |
33 | @param Edid A pointer to callee allocated buffer that contains the EDID that\r | |
34 | should be used for ChildHandle. A value of NULL\r | |
35 | represents no EDID override for ChildHandle.\r | |
36 | \r | |
37 | @retval EFI_SUCCESS Valid overrides returned for ChildHandle.\r | |
38 | @retval EFI_UNSUPPORTED ChildHandle has no overrides.\r | |
39 | \r | |
40 | **/\r | |
41 | typedef\r | |
42 | EFI_STATUS\r | |
43 | (EFIAPI *EFI_EDID_OVERRIDE_PROTOCOL_GET_EDID)(\r | |
44 | IN EFI_EDID_OVERRIDE_PROTOCOL *This,\r | |
45 | IN EFI_HANDLE *ChildHandle,\r | |
46 | OUT UINT32 *Attributes,\r | |
47 | IN OUT UINTN *EdidSize,\r | |
48 | IN OUT UINT8 **Edid\r | |
49 | );\r | |
50 | \r | |
51 | ///\r | |
52 | /// This protocol is produced by the platform to allow the platform to provide\r | |
53 | /// EDID information to the producer of the Graphics Output protocol.\r | |
54 | ///\r | |
55 | struct _EFI_EDID_OVERRIDE_PROTOCOL {\r | |
56 | EFI_EDID_OVERRIDE_PROTOCOL_GET_EDID GetEdid;\r | |
57 | };\r | |
58 | \r | |
59 | extern EFI_GUID gEfiEdidOverrideProtocolGuid;\r | |
60 | \r | |
61 | #endif\r |