提交 15872212 编写于 作者: F Frank Myhr 提交者: Jean Delvare

hwmon: (hwmon-vid) Trivial format multi-line comments per CodingStyle

Signed-off-by: NFrank Myhr <fmyhr@fhmtech.com>
Signed-off-by: NJean Delvare <khali@linux-fr.org>
上级 6c633c30
/* /*
hwmon-vid.c - VID/VRM/VRD voltage conversions * hwmon-vid.c - VID/VRM/VRD voltage conversions
*
Copyright (c) 2004 Rudolf Marek <r.marek@assembler.cz> * Copyright (c) 2004 Rudolf Marek <r.marek@assembler.cz>
*
Partly imported from i2c-vid.h of the lm_sensors project * Partly imported from i2c-vid.h of the lm_sensors project
Copyright (c) 2002 Mark D. Studebaker <mdsxyz123@yahoo.com> * Copyright (c) 2002 Mark D. Studebaker <mdsxyz123@yahoo.com>
With assistance from Trent Piepho <xyzzy@speakeasy.org> * With assistance from Trent Piepho <xyzzy@speakeasy.org>
*
This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. * (at your option) any later version.
*
This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. * GNU General Public License for more details.
*
You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/hwmon-vid.h> #include <linux/hwmon-vid.h>
/* /*
Common code for decoding VID pins. * Common code for decoding VID pins.
*
References: * References:
*
For VRM 8.4 to 9.1, "VRM x.y DC-DC Converter Design Guidelines", * For VRM 8.4 to 9.1, "VRM x.y DC-DC Converter Design Guidelines",
available at http://developer.intel.com/. * available at http://developer.intel.com/.
*
For VRD 10.0 and up, "VRD x.y Design Guide", * For VRD 10.0 and up, "VRD x.y Design Guide",
available at http://developer.intel.com/. * available at http://developer.intel.com/.
*
AMD Opteron processors don't follow the Intel specifications. * AMD Opteron processors don't follow the Intel specifications.
I'm going to "make up" 2.4 as the spec number for the Opterons. * I'm going to "make up" 2.4 as the spec number for the Opterons.
No good reason just a mnemonic for the 24x Opteron processor * No good reason just a mnemonic for the 24x Opteron processor
series. * series.
*
Opteron VID encoding is: * Opteron VID encoding is:
00000 = 1.550 V * 00000 = 1.550 V
00001 = 1.525 V * 00001 = 1.525 V
. . . . * . . . .
11110 = 0.800 V * 11110 = 0.800 V
11111 = 0.000 V (off) * 11111 = 0.000 V (off)
*
The 17 specification is in fact Intel Mobile Voltage Positioning - * The 17 specification is in fact Intel Mobile Voltage Positioning -
(IMVP-II). You can find more information in the datasheet of Max1718 * (IMVP-II). You can find more information in the datasheet of Max1718
http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2452 * http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2452
*
The 13 specification corresponds to the Intel Pentium M series. There * The 13 specification corresponds to the Intel Pentium M series. There
doesn't seem to be any named specification for these. The conversion * doesn't seem to be any named specification for these. The conversion
tables are detailed directly in the various Pentium M datasheets: * tables are detailed directly in the various Pentium M datasheets:
http://www.intel.com/design/intarch/pentiumm/docs_pentiumm.htm * http://www.intel.com/design/intarch/pentiumm/docs_pentiumm.htm
*
The 14 specification corresponds to Intel Core series. There * The 14 specification corresponds to Intel Core series. There
doesn't seem to be any named specification for these. The conversion * doesn't seem to be any named specification for these. The conversion
tables are detailed directly in the various Pentium Core datasheets: * tables are detailed directly in the various Pentium Core datasheets:
http://www.intel.com/design/mobile/datashts/309221.htm * http://www.intel.com/design/mobile/datashts/309221.htm
*
The 110 (VRM 11) specification corresponds to Intel Conroe based series. * The 110 (VRM 11) specification corresponds to Intel Conroe based series.
http://www.intel.com/design/processor/applnots/313214.htm * http://www.intel.com/design/processor/applnots/313214.htm
*/ */
/* vrm is the VRM/VRD document version multiplied by 10. /*
val is the 4-bit or more VID code. * vrm is the VRM/VRD document version multiplied by 10.
Returned value is in mV to avoid floating point in the kernel. * val is the 4-bit or more VID code.
Some VID have some bits in uV scale, this is rounded to mV */ * Returned value is in mV to avoid floating point in the kernel.
* Some VID have some bits in uV scale, this is rounded to mV.
*/
int vid_from_reg(int val, u8 vrm) int vid_from_reg(int val, u8 vrm)
{ {
int vid; int vid;
...@@ -141,9 +143,9 @@ int vid_from_reg(int val, u8 vrm) ...@@ -141,9 +143,9 @@ int vid_from_reg(int val, u8 vrm)
/* /*
After this point is the code to automatically determine which * After this point is the code to automatically determine which
VRM/VRD specification should be used depending on the CPU. * VRM/VRD specification should be used depending on the CPU.
*/ */
struct vrm_model { struct vrm_model {
u8 vendor; u8 vendor;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册