Lines Matching full:vid
3 * hwmon-vid.c - VID/VRM/VRD voltage conversions
7 * Partly imported from i2c-vid.h of the lm_sensors project
16 #include <linux/hwmon-vid.h>
19 * Common code for decoding VID pins.
31 * Table 74. VID Code Voltages
33 * These CPU models (K8 revision <= E) have 5 VID pins. See also:
39 * Table 71. VID Code Voltages
41 * These CPU models (K8 revision >= F) have 6 VID pins. See also:
65 * val is the 4-bit or more VID code.
67 * Some VID have some bits in uV scale, this is rounded to mV.
71 int vid; in vid_from_reg() local
81 vid = 1087500 - (val & 0x1f) * 25000; in vid_from_reg()
83 vid = 1862500 - (val & 0x1f) * 25000; in vid_from_reg()
85 vid -= 12500; in vid_from_reg()
86 return (vid + 500) / 1000; in vid_from_reg()
105 case 26: /* AMD family 10h to 15h, serial VID */ in vid_from_reg()
183 * In theory, all NPT family 0Fh processors have 6 VID pins and should
185 * 6th VID pin because it is never needed. So we use the 5 VID pin
228 * VID tables, so we have to figure out first, which one must be
230 * 7-bit VID), 13 (Pentium M 6-bit VID) or 131 (Pentium M 6-bit VID
236 unsigned int vid, brand, __maybe_unused dummy; in get_via_model_d_vrm() local
241 rdmsr(0x198, dummy, vid); in get_via_model_d_vrm()
242 vid &= 0xff; in get_via_model_d_vrm()
247 if (vid > 0x3f) { in get_via_model_d_vrm()
248 pr_info("Using %d-bit VID table for VIA %s CPU\n", in get_via_model_d_vrm()
252 pr_info("Using %d-bit VID table for VIA %s CPU\n", in get_via_model_d_vrm()
281 return 0; /* doesn't have VID */ in vid_which_vrm()
303 MODULE_DESCRIPTION("hwmon-vid driver");