Changeset 718

Show
Ignore:
Timestamp:
01/30/00 02:24:37 (13 years ago)
Author:
mds
Message:

(mds) updated adapter name to add Banshee and remove 0000 address.

Add warning if > 1 voodoo3/banshee found.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/busses/i2c-voodoo3.c

    r711 r718  
    2424    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
    2525*/ 
    26  
    27 #define DEBUG 1 
    2826 
    2927/* This interfaces to the I2C bus of the Voodoo3 to gain access to 
     
    144142 
    145143static int __initdata voodoo3_initialized; 
    146 static unsigned short voodoo3_smba = 0; 
    147144static unsigned int state = 0xcffc0020; 
    148145static unsigned char *mem; 
     
    739736} 
    740737 
    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. 
    744740   Note the differences between kernels with the old PCI BIOS interface and 
    745741   newer kernels with the real PCI interface. In compat.h some things are 
     
    775771        if (v3_num > 0) { 
    776772                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"); 
    779777                return 0; 
    780778        } else { 
     
    961959        } 
    962960        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"); 
    965962        if ((res = i2c_add_adapter(&voodoo3_i2c_adapter))) { 
    966963                printk 
     
    970967        } 
    971968        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"); 
    974970        if ((res = i2c_add_adapter(&voodoo3_ddc_adapter))) { 
    975971                printk 
     
    980976        voodoo3_initialized++; 
    981977        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"); 
    983979        return 0; 
    984980}