Changeset 718
- Timestamp:
- 01/30/00 02:24:37 (13 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/busses/i2c-voodoo3.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-voodoo3.c
r711 r718 24 24 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 25 25 */ 26 27 #define DEBUG 128 26 29 27 /* This interfaces to the I2C bus of the Voodoo3 to gain access to … … 144 142 145 143 static int __initdata voodoo3_initialized; 146 static unsigned short voodoo3_smba = 0;147 144 static unsigned int state = 0xcffc0020; 148 145 static unsigned char *mem; … … 739 736 } 740 737 741 742 743 /* Detect whether a Voodoo3 can be found, and initialize it, where necessary. 738 /* Detect whether a Voodoo3 or a Banshee can be found, 739 and initialize it, where necessary. 744 740 Note the differences between kernels with the old PCI BIOS interface and 745 741 newer kernels with the real PCI interface. In compat.h some things are … … 775 771 if (v3_num > 0) { 776 772 printk(KERN_INFO 777 "i2c-voodoo3: %d Banshee/Voodoo3(s) found.\n", 778 v3_num); 773 "i2c-voodoo3: %d Banshee/Voodoo3 found.\n", v3_num); 774 if (v3_num > 1) 775 printk(KERN_INFO 776 "i2c-voodoo3: warning: only 1 supported.\n"); 779 777 return 0; 780 778 } else { … … 961 959 } 962 960 voodoo3_initialized++; 963 sprintf(voodoo3_i2c_adapter.name, "SMBus Voodoo3 adapter at %04x", 964 voodoo3_smba); 961 sprintf(voodoo3_i2c_adapter.name, "SMBus Voodoo3/Banshee adapter"); 965 962 if ((res = i2c_add_adapter(&voodoo3_i2c_adapter))) { 966 963 printk … … 970 967 } 971 968 voodoo3_initialized++; 972 sprintf(voodoo3_ddc_adapter.name, "DDC Voodoo3 adapter at %04x", 973 voodoo3_smba); 969 sprintf(voodoo3_ddc_adapter.name, "DDC Voodoo3/Banshee adapter"); 974 970 if ((res = i2c_add_adapter(&voodoo3_ddc_adapter))) { 975 971 printk … … 980 976 voodoo3_initialized++; 981 977 printk 982 ("i2c-voodoo3.o: Voodoo3 I2C and DDC busses detected and initialized\n");978 ("i2c-voodoo3.o: Voodoo3/Banshee I2C and DDC busses detected and initialized\n"); 983 979 return 0; 984 980 }
