Path: blob/main/stand/efi/include/Protocol/EdidOverride.h
34875 views
/** @file1EDID Override Protocol from the UEFI 2.0 specification.23Allow platform to provide EDID information to the producer of the Graphics Output4protocol.56Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>7This program and the accompanying materials8are licensed and made available under the terms and conditions of the BSD License9which accompanies this distribution. The full text of the license may be found at10http://opensource.org/licenses/bsd-license.php1112THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.1415**/1617#ifndef __EDID_OVERRIDE_H__18#define __EDID_OVERRIDE_H__1920#define EFI_EDID_OVERRIDE_PROTOCOL_GUID \21{ \220x48ecb431, 0xfb72, 0x45c0, {0xa9, 0x22, 0xf4, 0x58, 0xfe, 0x4, 0xb, 0xd5 } \23}2425typedef struct _EFI_EDID_OVERRIDE_PROTOCOL EFI_EDID_OVERRIDE_PROTOCOL;2627#define EFI_EDID_OVERRIDE_DONT_OVERRIDE 0x0128#define EFI_EDID_OVERRIDE_ENABLE_HOT_PLUG 0x022930/**31Returns policy information and potentially a replacement EDID for the specified video output device.3233@param This The EFI_EDID_OVERRIDE_PROTOCOL instance.34@param ChildHandle A child handle produced by the Graphics Output EFI35driver that represents a video output device.36@param Attributes The attributes associated with ChildHandle video output device.37@param EdidSize A pointer to the size, in bytes, of the Edid buffer.38@param Edid A pointer to callee allocated buffer that contains the EDID that39should be used for ChildHandle. A value of NULL40represents no EDID override for ChildHandle.4142@retval EFI_SUCCESS Valid overrides returned for ChildHandle.43@retval EFI_UNSUPPORTED ChildHandle has no overrides.4445**/46typedef47EFI_STATUS48(EFIAPI *EFI_EDID_OVERRIDE_PROTOCOL_GET_EDID)(49IN EFI_EDID_OVERRIDE_PROTOCOL *This,50IN EFI_HANDLE *ChildHandle,51OUT UINT32 *Attributes,52IN OUT UINTN *EdidSize,53IN OUT UINT8 **Edid54);5556///57/// This protocol is produced by the platform to allow the platform to provide58/// EDID information to the producer of the Graphics Output protocol.59///60struct _EFI_EDID_OVERRIDE_PROTOCOL {61EFI_EDID_OVERRIDE_PROTOCOL_GET_EDID GetEdid;62};6364extern EFI_GUID gEfiEdidOverrideProtocolGuid;6566#endif676869