1eee59048SToomas Soome /** @file
2eee59048SToomas Soome   EDID Discovered Protocol from the UEFI 2.0 specification.
3eee59048SToomas Soome 
4eee59048SToomas Soome   This protocol is placed on the video output device child handle. It represents
5eee59048SToomas Soome   the EDID information being used for the output device represented by the child handle.
6eee59048SToomas Soome 
7eee59048SToomas Soome   Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
8eee59048SToomas Soome   This program and the accompanying materials
9eee59048SToomas Soome   are licensed and made available under the terms and conditions of the BSD License
10eee59048SToomas Soome   which accompanies this distribution.  The full text of the license may be found at
11eee59048SToomas Soome   http://opensource.org/licenses/bsd-license.php
12eee59048SToomas Soome 
13eee59048SToomas Soome   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14eee59048SToomas Soome   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15eee59048SToomas Soome 
16eee59048SToomas Soome **/
17eee59048SToomas Soome 
18eee59048SToomas Soome #ifndef __EDID_DISCOVERED_H__
19eee59048SToomas Soome #define __EDID_DISCOVERED_H__
20eee59048SToomas Soome 
21eee59048SToomas Soome #define EFI_EDID_DISCOVERED_PROTOCOL_GUID \
22eee59048SToomas Soome   { \
23eee59048SToomas Soome     0x1c0c34f6, 0xd380, 0x41fa, {0xa0, 0x49, 0x8a, 0xd0, 0x6c, 0x1a, 0x66, 0xaa } \
24eee59048SToomas Soome   }
25eee59048SToomas Soome 
26eee59048SToomas Soome ///
27eee59048SToomas Soome /// This protocol contains the EDID information retrieved from a video output device.
28eee59048SToomas Soome ///
29eee59048SToomas Soome typedef struct {
30eee59048SToomas Soome   ///
31eee59048SToomas Soome   /// The size, in bytes, of the Edid buffer. 0 if no EDID information
32eee59048SToomas Soome   /// is available from the video output device. Otherwise, it must be a
33eee59048SToomas Soome   /// minimum of 128 bytes.
34eee59048SToomas Soome   ///
35eee59048SToomas Soome   UINT32   SizeOfEdid;
36eee59048SToomas Soome 
37eee59048SToomas Soome   ///
38eee59048SToomas Soome   /// A pointer to a read-only array of bytes that contains the EDID
39eee59048SToomas Soome   /// information for an active video output device. This pointer is
40eee59048SToomas Soome   /// NULL if no EDID information is available for the video output
41eee59048SToomas Soome   /// device. The minimum size of a valid Edid buffer is 128 bytes.
42eee59048SToomas Soome   /// EDID information is defined in the E-EDID EEPROM
43eee59048SToomas Soome   /// specification published by VESA (www.vesa.org).
44eee59048SToomas Soome   ///
45eee59048SToomas Soome   UINT8    *Edid;
46eee59048SToomas Soome } EFI_EDID_DISCOVERED_PROTOCOL;
47eee59048SToomas Soome 
48eee59048SToomas Soome extern EFI_GUID gEfiEdidDiscoveredProtocolGuid;
49eee59048SToomas Soome 
50eee59048SToomas Soome #endif
51