search for: temp_correction

Displaying 1 result from an estimated 1 matches for "temp_correction".

2009 Nov 19
2
[RFC] nouveau: Add basic i2c sensor chip support
..._entries = bios->data[tbl_ptr+3]; + + offset += headerlen; + + for (i = 0; i < num_entries; i++) { + uint8_t id = bios->data[offset+entrylen*i]; + uint16_t val = ROM16(bios->data[offset+1+entrylen*i]); + + switch (id) { + case 0x1: + if ((val & 0x8f) == 0) + bios->sensor.temp_correction = + (val >> 9) & 0x7f; + break; + case 0x10: + bios->sensor.diode_offset_mult = val; + break; + case 0x11: + bios->sensor.diode_offset_div = val; + break; + case 0x12: + bios->sensor.slope_mult = val; + break; + case 0x13: + bios->sensor.slope_div = val...