Changeset 1011
- Timestamp:
- 02/03/01 21:48:43 (12 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
kernel/busses/i2c-i801.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/CHANGES
r1010 r1011 22 22 File doc/chips/via686a: Claim support for 686b. 23 23 File sensors.conf.eg: Adjust as99127f -12V calculation 24 Module i2c-i801: Chip detection cleanup 24 25 Module lm78: Recognize chipid=0x20 25 26 Module lm87: Fix in0, in1 (2.5V and Vccp1) calculations -
lm-sensors/trunk/kernel/busses/i2c-i801.c
r990 r1011 2 2 i801.c - Part of lm_sensors, Linux kernel modules for hardware 3 3 monitoring 4 Copyright (c) 1998 , 1999Frodo Looijaard <frodol@dds.nl>,4 Copyright (c) 1998 - 2001 Frodo Looijaard <frodol@dds.nl>, 5 5 Philip Edelbrock <phil@netroedge.com>, and Mark D. Studebaker 6 6 <mdsxyz123@yahoo.com> … … 51 51 #define PCI_DEVICE_ID_INTEL_82801BA_3 0x2443 52 52 #endif 53 54 static int supported[] = {PCI_DEVICE_ID_INTEL_82801AA_3, 55 PCI_DEVICE_ID_INTEL_82801AB_3, 56 PCI_DEVICE_ID_INTEL_82801BA_3, 57 0 }; 53 58 54 59 /* I801 SMBus address offsets */ … … 159 164 { 160 165 int error_return = 0; 166 int *num = supported; 161 167 unsigned char temp; 162 168 … … 168 174 } 169 175 170 /* Look for the I801, function 3 */ 171 /* Have to check for both the 82801AA and 82801AB */ 176 /* Look for each chip */ 172 177 /* Note: we keep on searching until we have found 'function 3' */ 173 178 I801_dev = NULL; 174 do 175 I801_dev = pci_find_device(PCI_VENDOR_ID_INTEL, 176 PCI_DEVICE_ID_INTEL_82801AA_3, 177 I801_dev); 178 while (I801_dev && (PCI_FUNC(I801_dev->devfn) != 3)); 179 if (I801_dev == NULL) { 180 do 181 I801_dev = pci_find_device(PCI_VENDOR_ID_INTEL, 182 PCI_DEVICE_ID_INTEL_82801AB_3, 183 I801_dev); 184 while (I801_dev && (PCI_FUNC(I801_dev->devfn) != 3)); 185 } 186 if (I801_dev == NULL) { 187 do 188 I801_dev = pci_find_device(PCI_VENDOR_ID_INTEL, 189 PCI_DEVICE_ID_INTEL_82801BA_3, 190 I801_dev); 191 while (I801_dev && (PCI_FUNC(I801_dev->devfn) != 3)); 192 } 179 do { 180 if((I801_dev = pci_find_device(PCI_VENDOR_ID_INTEL, 181 *num, I801_dev))) { 182 if(PCI_FUNC(I801_dev->devfn) != 3) 183 continue; 184 break; 185 } 186 num++; 187 } while (*num != 0); 188 193 189 if (I801_dev == NULL) { 194 190 printk
