diff options
author | Frank Myhr <fmyhr@fhmtech.com> | 2008-08-06 16:41:06 -0400 |
---|---|---|
committer | Jean Delvare <khali@mahadeva.delvare> | 2008-08-06 16:41:06 -0400 |
commit | 15872212e876de9ae404108e4ad231a645b55b54 (patch) | |
tree | 372882554c330906ec1e52b45496f8e905d78e52 /drivers/hwmon/hwmon-vid.c | |
parent | 6c633c3025c75f5fcf3a76d375faff34e3be021b (diff) |
hwmon: (hwmon-vid) Trivial format multi-line comments per CodingStyle
Signed-off-by: Frank Myhr <fmyhr@fhmtech.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/hwmon-vid.c')
-rw-r--r-- | drivers/hwmon/hwmon-vid.c | 140 |
1 files changed, 71 insertions, 69 deletions
diff --git a/drivers/hwmon/hwmon-vid.c b/drivers/hwmon/hwmon-vid.c index 3330667280b9..ed78a72e7261 100644 --- a/drivers/hwmon/hwmon-vid.c +++ b/drivers/hwmon/hwmon-vid.c | |||
@@ -1,76 +1,78 @@ | |||
1 | /* | 1 | /* |
2 | hwmon-vid.c - VID/VRM/VRD voltage conversions | 2 | * hwmon-vid.c - VID/VRM/VRD voltage conversions |
3 | 3 | * | |
4 | Copyright (c) 2004 Rudolf Marek <r.marek@assembler.cz> | 4 | * Copyright (c) 2004 Rudolf Marek <r.marek@assembler.cz> |
5 | 5 | * | |
6 | Partly imported from i2c-vid.h of the lm_sensors project | 6 | * Partly imported from i2c-vid.h of the lm_sensors project |
7 | Copyright (c) 2002 Mark D. Studebaker <mdsxyz123@yahoo.com> | 7 | * Copyright (c) 2002 Mark D. Studebaker <mdsxyz123@yahoo.com> |
8 | With assistance from Trent Piepho <xyzzy@speakeasy.org> | 8 | * With assistance from Trent Piepho <xyzzy@speakeasy.org> |
9 | 9 | * | |
10 | This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
11 | it under the terms of the GNU General Public License as published by | 11 | * it under the terms of the GNU General Public License as published by |
12 | the Free Software Foundation; either version 2 of the License, or | 12 | * the Free Software Foundation; either version 2 of the License, or |
13 | (at your option) any later version. | 13 | * (at your option) any later version. |
14 | 14 | * | |
15 | This program is distributed in the hope that it will be useful, | 15 | * This program is distributed in the hope that it will be useful, |
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 | GNU General Public License for more details. | 18 | * GNU General Public License for more details. |
19 | 19 | * | |
20 | You should have received a copy of the GNU General Public License | 20 | * You should have received a copy of the GNU General Public License |
21 | along with this program; if not, write to the Free Software | 21 | * along with this program; if not, write to the Free Software |
22 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <linux/module.h> | 25 | #include <linux/module.h> |
26 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
27 | #include <linux/hwmon-vid.h> | 27 | #include <linux/hwmon-vid.h> |
28 | 28 | ||
29 | /* | 29 | /* |
30 | Common code for decoding VID pins. | 30 | * Common code for decoding VID pins. |
31 | 31 | * | |
32 | References: | 32 | * References: |
33 | 33 | * | |
34 | For VRM 8.4 to 9.1, "VRM x.y DC-DC Converter Design Guidelines", | 34 | * For VRM 8.4 to 9.1, "VRM x.y DC-DC Converter Design Guidelines", |
35 | available at http://developer.intel.com/. | 35 | * available at http://developer.intel.com/. |
36 | 36 | * | |
37 | For VRD 10.0 and up, "VRD x.y Design Guide", | 37 | * For VRD 10.0 and up, "VRD x.y Design Guide", |
38 | available at http://developer.intel.com/. | 38 | * available at http://developer.intel.com/. |
39 | 39 | * | |
40 | AMD Opteron processors don't follow the Intel specifications. | 40 | * AMD Opteron processors don't follow the Intel specifications. |
41 | I'm going to "make up" 2.4 as the spec number for the Opterons. | 41 | * I'm going to "make up" 2.4 as the spec number for the Opterons. |
42 | No good reason just a mnemonic for the 24x Opteron processor | 42 | * No good reason just a mnemonic for the 24x Opteron processor |
43 | series. | 43 | * series. |
44 | 44 | * | |
45 | Opteron VID encoding is: | 45 | * Opteron VID encoding is: |
46 | 00000 = 1.550 V | 46 | * 00000 = 1.550 V |
47 | 00001 = 1.525 V | 47 | * 00001 = 1.525 V |
48 | . . . . | 48 | * . . . . |
49 | 11110 = 0.800 V | 49 | * 11110 = 0.800 V |
50 | 11111 = 0.000 V (off) | 50 | * 11111 = 0.000 V (off) |
51 | 51 | * | |
52 | The 17 specification is in fact Intel Mobile Voltage Positioning - | 52 | * The 17 specification is in fact Intel Mobile Voltage Positioning - |
53 | (IMVP-II). You can find more information in the datasheet of Max1718 | 53 | * (IMVP-II). You can find more information in the datasheet of Max1718 |
54 | http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2452 | 54 | * http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2452 |
55 | 55 | * | |
56 | The 13 specification corresponds to the Intel Pentium M series. There | 56 | * The 13 specification corresponds to the Intel Pentium M series. There |
57 | doesn't seem to be any named specification for these. The conversion | 57 | * doesn't seem to be any named specification for these. The conversion |
58 | tables are detailed directly in the various Pentium M datasheets: | 58 | * tables are detailed directly in the various Pentium M datasheets: |
59 | http://www.intel.com/design/intarch/pentiumm/docs_pentiumm.htm | 59 | * http://www.intel.com/design/intarch/pentiumm/docs_pentiumm.htm |
60 | 60 | * | |
61 | The 14 specification corresponds to Intel Core series. There | 61 | * The 14 specification corresponds to Intel Core series. There |
62 | doesn't seem to be any named specification for these. The conversion | 62 | * doesn't seem to be any named specification for these. The conversion |
63 | tables are detailed directly in the various Pentium Core datasheets: | 63 | * tables are detailed directly in the various Pentium Core datasheets: |
64 | http://www.intel.com/design/mobile/datashts/309221.htm | 64 | * http://www.intel.com/design/mobile/datashts/309221.htm |
65 | 65 | * | |
66 | The 110 (VRM 11) specification corresponds to Intel Conroe based series. | 66 | * The 110 (VRM 11) specification corresponds to Intel Conroe based series. |
67 | http://www.intel.com/design/processor/applnots/313214.htm | 67 | * http://www.intel.com/design/processor/applnots/313214.htm |
68 | */ | 68 | */ |
69 | 69 | ||
70 | /* vrm is the VRM/VRD document version multiplied by 10. | 70 | /* |
71 | val is the 4-bit or more VID code. | 71 | * vrm is the VRM/VRD document version multiplied by 10. |
72 | Returned value is in mV to avoid floating point in the kernel. | 72 | * val is the 4-bit or more VID code. |
73 | Some VID have some bits in uV scale, this is rounded to mV */ | 73 | * Returned value is in mV to avoid floating point in the kernel. |
74 | * Some VID have some bits in uV scale, this is rounded to mV. | ||
75 | */ | ||
74 | int vid_from_reg(int val, u8 vrm) | 76 | int vid_from_reg(int val, u8 vrm) |
75 | { | 77 | { |
76 | int vid; | 78 | int vid; |
@@ -141,9 +143,9 @@ int vid_from_reg(int val, u8 vrm) | |||
141 | 143 | ||
142 | 144 | ||
143 | /* | 145 | /* |
144 | After this point is the code to automatically determine which | 146 | * After this point is the code to automatically determine which |
145 | VRM/VRD specification should be used depending on the CPU. | 147 | * VRM/VRD specification should be used depending on the CPU. |
146 | */ | 148 | */ |
147 | 149 | ||
148 | struct vrm_model { | 150 | struct vrm_model { |
149 | u8 vendor; | 151 | u8 vendor; |