]>
Commit | Line | Data |
---|---|---|
d1f95000 | 1 | /** @file\r |
2 | EDID Override Protocol from the UEFI 2.0 specification.\r | |
3 | \r | |
630b4187 | 4 | Allow platform to provide EDID information to the producer of the Graphics Output\r |
d1f95000 | 5 | protocol.\r |
6 | \r | |
9095d37b | 7 | Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r |
9344f092 | 8 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
d1f95000 | 9 | \r |
d1f95000 | 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 | |
2f88bd3a MK |
22 | #define EFI_EDID_OVERRIDE_DONT_OVERRIDE 0x01\r |
23 | #define EFI_EDID_OVERRIDE_ENABLE_HOT_PLUG 0x02\r | |
d1f95000 | 24 | \r |
25 | /**\r | |
74fec708 | 26 | Returns policy information and potentially a replacement EDID for the specified video output device.\r |
d1f95000 | 27 | \r |
74fec708 | 28 | @param This The EFI_EDID_OVERRIDE_PROTOCOL instance.\r |
d1f95000 | 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 | |
8b13229b | 43 | (EFIAPI *EFI_EDID_OVERRIDE_PROTOCOL_GET_EDID)(\r |
d1f95000 | 44 | IN EFI_EDID_OVERRIDE_PROTOCOL *This,\r |
45 | IN EFI_HANDLE *ChildHandle,\r | |
46 | OUT UINT32 *Attributes,\r | |
ff95c0fc OY |
47 | OUT UINTN *EdidSize,\r |
48 | OUT UINT8 **Edid\r | |
ed66e1bc | 49 | );\r |
d1f95000 | 50 | \r |
44717a39 | 51 | ///\r |
9095d37b | 52 | /// This protocol is produced by the platform to allow the platform to provide\r |
44717a39 | 53 | /// EDID information to the producer of the Graphics Output protocol.\r |
54 | ///\r | |
d1f95000 | 55 | struct _EFI_EDID_OVERRIDE_PROTOCOL {\r |
2f88bd3a | 56 | EFI_EDID_OVERRIDE_PROTOCOL_GET_EDID GetEdid;\r |
d1f95000 | 57 | };\r |
9095d37b | 58 | \r |
2f88bd3a | 59 | extern EFI_GUID gEfiEdidOverrideProtocolGuid;\r |
d1f95000 | 60 | \r |
61 | #endif\r |