mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-30 13:00:30 +00:00
Support AMD8111 again. Patch by from Philip Pokorny
<ppokorny@penguincomputing.com>. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2120 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
956b86fb81
commit
d835fc770d
1 file changed
+7
-3
@@ -28,10 +28,12 @@
|
||||
2002-04-08: Added nForce support. (Csaba Halasz)
|
||||
2002-10-03: Fixed nForce PnP I/O port. (Michael Steil)
|
||||
2002-12-28: Rewritten into something that resembles a Linux driver (hch)
|
||||
2003-11-29: Added back AMD8111 removed by backport of the previous
|
||||
rewrite. (Philip Pokorny)
|
||||
*/
|
||||
|
||||
/*
|
||||
Supports AMD756, AMD766, AMD768 and nVidia nForce
|
||||
Supports AMD756, AMD766, AMD768, AMD8111 and nVidia nForce
|
||||
Note: we assume there can only be one device, with one SMBus interface.
|
||||
*/
|
||||
|
||||
@@ -312,12 +314,13 @@ static struct i2c_adapter amd756_adapter = {
|
||||
.algo = &smbus_algorithm,
|
||||
};
|
||||
|
||||
enum chiptype { AMD756, AMD766, AMD768, NFORCE };
|
||||
enum chiptype { AMD756, AMD766, AMD768, NFORCE, AMD8111 };
|
||||
|
||||
static struct pci_device_id amd756_ids[] __devinitdata = {
|
||||
{PCI_VENDOR_ID_AMD, 0x740B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AMD756 },
|
||||
{PCI_VENDOR_ID_AMD, 0x7413, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AMD766 },
|
||||
{PCI_VENDOR_ID_AMD, 0x7443, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AMD768 },
|
||||
{PCI_VENDOR_ID_AMD, 0x746b, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AMD8111 },
|
||||
{PCI_VENDOR_ID_NVIDIA, 0x01B4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, NFORCE },
|
||||
{ 0, }
|
||||
};
|
||||
@@ -325,7 +328,8 @@ static struct pci_device_id amd756_ids[] __devinitdata = {
|
||||
static int __devinit amd756_probe(struct pci_dev *pdev,
|
||||
const struct pci_device_id *id)
|
||||
{
|
||||
int nforce = (id->driver_data == NFORCE), error;
|
||||
int nforce = (id->driver_data == NFORCE);
|
||||
int error;
|
||||
u8 temp;
|
||||
|
||||
if (amd756_ioport) {
|
||||
|
||||
Reference in new issue
Block a user