Changeset 4
- Timestamp:
- 11/03/98 02:19:04 (10 years ago)
- Files:
-
- lm-sensors/trunk/Makefile (added)
- lm-sensors/trunk/doc/useful_addresses.html (modified) (1 diff)
- lm-sensors/trunk/i2c/Module.mk (added)
- lm-sensors/trunk/i2c/bit-mb.c (modified) (3 diffs)
- lm-sensors/trunk/version.h (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/doc/useful_addresses.html
r3 r4 56 56 Manager. 57 57 </UL> 58 <LI>Other things 59 <UL> 60 <LI><A HREF="http://www.tip.net.au/~millerp/rmch/recu-make-cons-harm.html">Recursive 61 Make considered Harmful</A> 62 <BR>A paper on which the version 2 Makefile is based 63 </UL> 58 64 </UL> 59 65 </BODY> lm-sensors/trunk/i2c/bit-mb.c
r3 r4 25 25 #include <linux/pci.h> 26 26 #include <asm/io.h> 27 #include <linux/types.h> 28 #include <linux/version.h> 29 30 /* When exactly was the new pci interface introduced? */ 31 #if LINUX_VERSION_CODE < 0x020100 32 #include <linux/bios32.h> 33 #endif 34 27 35 28 36 #include "i2c.h" … … 120 128 } 121 129 130 /* When exactly was the new pci interface introduced? */ 131 #if LINUX_VERSION_CODE >= 0x020100 132 122 133 static u32 find_i2c(void) 123 134 { … … 138 149 return (val & (0xff<<8)); 139 150 } 151 152 #else 153 154 static u32 find_i2c(void) 155 { 156 unsigned char VIA_bus, VIA_devfn; 157 u32 val; 158 159 if (! pcibios_present()) 160 return(0); 161 162 if(pcibios_find_device( 163 PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_3, 0, &VIA_bus, 164 &VIA_devfn)); 165 return 0; 166 167 if ( PCIBIOS_SUCCESSFUL != 168 pcibios_read_config_dword(VIA_bus, VIA_devfn, 169 PM_IO_BASE_REGISTER, &val)) 170 return 0; 171 return (val & (0xff<<8)); 172 } 173 174 #endif 175 140 176 141 177 #ifdef MODULE
