|
From: Ani J. <aj...@sh...> - 2001-11-11 19:34:23
|
Attatched is a portable kernel edid parser I've put together recently. This converts an EDID mode (first one only by default) into a fb_var_screenfino mode. This is a portable method because its up to the driver to get the EDID from its various methods (DPMI, OpenFirmware device node, DDC/i2c), the driver can then use: int parse_edid(unsigned char *edid, fb_var_screeninfo *var); which will parse and convert the EDID's mode into var. This adds another layer for a "valid" mode to be used, ie: 1) use user's argument (either modedb or driver dependent modeline) 2) use EDID 3) use default mode This is ofcourse only useful if the EDID is available but this shouldn't be a problem with many of todays boards. Comments appreciated, ani |