From 180360887889a33c0a5d449818491480efffbf9c Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Thu, 22 Aug 2002 01:18:57 +0000 Subject: [PATCH] fix hosed PCI ID's for ICH2 and ICH4. Now it should work. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1500 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 2 +- prog/hotplug/p4b_smbus.c | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/CHANGES b/CHANGES index 070a3bd9..6082a24d 100644 --- a/CHANGES +++ b/CHANGES @@ -33,7 +33,7 @@ ask CVS about it: Program mkpatch: Add Config.in entries for, lm92, pcf8574, pcf8591, smsc47m1, vt1211; add dmi_scan - Program p4b_smbus: Fix compile for SMP and MODVERSIONS + Program p4b_smbus: Fix compile for SMP and MODVERSIONS; fix PCI ID problem Program sensord: Add /usr/local/etc to config file path; add support for logging loadavg in RRD; fix down-converting raw labels for RRD; diff --git a/prog/hotplug/p4b_smbus.c b/prog/hotplug/p4b_smbus.c index e8d8955f..4ab358ff 100644 --- a/prog/hotplug/p4b_smbus.c +++ b/prog/hotplug/p4b_smbus.c @@ -86,17 +86,11 @@ rmm from lm_sensors-2.3.3: * some shorter definitions for the ICHx PCI device IDs */ -#define ICH2 PCI_DEVICE_ID_INTEL_82801BA_0 -#define ICH2_SMBUS PCI_DEVICE_ID_INTEL_82801BA_3 +#define ICH4 0x2440 +#define ICH2_SMBUS 0x2443 - -#ifndef PCI_DEVICE_ID_INTEL_82801DB_0 -#define PCI_DEVICE_ID_INTEL_82801DB_0 0x24c0 -#define PCI_DEVICE_ID_INTEL_82801DB_3 0x24c3 -#endif - -#define ICH4 PCI_DEVICE_ID_INTEL_82801DB_0 -#define ICH4_SMBUS PCI_DEVICE_ID_INTEL_82801DB_3 +#define ICH4 0x24c0 +#define ICH4_SMBUS 0x24c3 /* status, used to indicate that io space needs to be freed */ static struct pci_dev *i801smbus = NULL;