Source
/*
* via686a.c - Part of lm_sensors, Linux kernel modules
* for hardware monitoring
*
* Copyright (c) 1998 - 2002 Frodo Looijaard <frodol@dds.nl>,
* Kyösti Mälkki <kmalkki@cc.hut.fi>,
* Mark Studebaker <mdsxyz123@yahoo.com>,
* and Bob Dougherty <bobd@stanford.edu>
*
* (Some conversion-factor data were contributed by Jonathan Teh Soon Yew
* <j.teh@iname.com> and Alex van Kaam <darkside@chello.nl>.)
*
* 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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* Supports the Via VT82C686A, VT82C686B south bridges.
* Reports all as a 686A.
* Warning - only supports a single device.
*/
/*
* If force_addr is set to anything different from 0, we forcibly enable
* the device at the given address.
*/
static unsigned short force_addr;
module_param(force_addr, ushort, 0);
MODULE_PARM_DESC(force_addr,
"Initialize the base address of the sensors");
static struct platform_device *pdev;
/*
* The Via 686a southbridge has a LM78-like chip integrated on the same IC.