These functions provide support parsing the Extended Display Identification Data which describes a display device such as a monitor or flat panel display.
The
edid_is_valid() function simply tests if the EDID block in
data contains valid data. This test includes a verification of the checksum, and that valid vendor and product idenfication data is present. The data block contain at least 128 bytes.
The
edid_parse() function parses the supplied
data block (which again, must be at least 128 bytes), writing the relevant data into the structure pointed to by
info.
The
edid_print() function prints the data in the given
info structure to the console device.