Introduce EDID registers (makes use of the eeprom speed

improvements).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1971 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2003-08-23 19:21:59 +00:00
1 parent bc34ae1749
commit 16881b62e7
3 files changed
+10 -3

No files matched your search

+4
View File
@@ -2892,6 +2892,10 @@ static sensors_chip_feature eeprom_features[] =
{ SENSORS_EEPROM_VAIO_SERIAL+31, "serial32",
SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, EEPROM_SYSCTL14, VALUE(16), 0 },
/* for monitor's edid */
{ SENSORS_EEPROM_EDID_HEADER, "EDID header",
SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, EEPROM_SYSCTL1, VALUE(1), 0 },
{ 0 }
};
+3
View File
@@ -1194,6 +1194,9 @@
#define SENSORS_EEPROM_VAIO_SERIAL 160
/* 161 to 191: reserved, do not use! */
#define SENSORS_EEPROM_EDID_HEADER 32
/* 33 to 39: reserved, do not use! */
/* Analog Devices LM87 chips */
#define SENSORS_LM87_PREFIX "lm87"
+3 -3
View File
@@ -2965,14 +2965,14 @@ void print_eeprom(const sensors_chip_name *name)
if (!sensors_get_feature(*name, SENSORS_EEPROM_ROWADDR, &a)
&& !sensors_get_feature(*name, SENSORS_EEPROM_COLADDR, &b)
&& !sensors_get_feature(*name, SENSORS_EEPROM_NUMROWS, &c)
&& !sensors_get_feature(*name, SENSORS_EEPROM_VAIO_NAME, &d)) {
&& !sensors_get_feature(*name, SENSORS_EEPROM_EDID_HEADER, &d)) {
if (((int) a) != 255 || ((int) b) != 255 || ((int) c) != 255
|| ((int) d) != 0)
printf("Unknown EEPROM type (255).\n");
else if (name->addr == 0x50)
/* must be a real EDID EEPROM */
/* must be an EDID EEPROM */
printf("Either use the ddcmon driver instead of the eeprom driver,\n"
"or run the decode-edid script.\n");
"or run the decode-edid.pl script.\n");
} else
printf("ERROR: data EDID\n");
return;