Changeset 1708
- Timestamp:
- 01/24/03 00:24:05 (10 years ago)
- Location:
- lm-sensors/trunk/kernel
- Files:
-
- 11 modified
-
busses/i2c-i801.c (modified) (1 diff)
-
busses/i2c-i810.c (modified) (1 diff)
-
busses/i2c-piix4.c (modified) (2 diffs)
-
busses/i2c-sis5595.c (modified) (1 diff)
-
busses/i2c-sis630.c (modified) (1 diff)
-
busses/i2c-sis645.c (modified) (3 diffs)
-
busses/i2c-via.c (modified) (8 diffs)
-
busses/i2c-viapro.c (modified) (1 diff)
-
busses/i2c-voodoo3.c (modified) (1 diff)
-
chips/sis5595.c (modified) (1 diff)
-
chips/via686a.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-i801.c
r1705 r1708 57 57 #endif 58 58 59 #ifndef PCI_DEVICE_ID_INTEL_82801AA_3 60 #define PCI_DEVICE_ID_INTEL_82801AA_3 0x2413 61 #endif 62 #ifndef PCI_DEVICE_ID_INTEL_82801AB_3 63 #define PCI_DEVICE_ID_INTEL_82801AB_3 0x2423 64 #endif 65 #ifndef PCI_DEVICE_ID_INTEL_82801BA_2 66 #define PCI_DEVICE_ID_INTEL_82801BA_2 0x2443 67 #endif 59 #ifndef PCI_DEVICE_ID_INTEL_82801CA_SMBUS 68 60 #define PCI_DEVICE_ID_INTEL_82801CA_SMBUS 0x2483 61 #endif 62 63 #ifndef PCI_DEVICE_ID_INTEL_82801DB_SMBUS 69 64 #define PCI_DEVICE_ID_INTEL_82801DB_SMBUS 0x24C3 65 #endif 70 66 71 67 static int supported[] = {PCI_DEVICE_ID_INTEL_82801AA_3, -
lm-sensors/trunk/kernel/busses/i2c-i810.c
r1705 r1708 46 46 MODULE_LICENSE("GPL"); 47 47 48 /* PCI defines */49 #ifndef PCI_DEVICE_ID_INTEL_82810_IG150 #define PCI_DEVICE_ID_INTEL_82810_IG1 0x712151 #endif52 #ifndef PCI_DEVICE_ID_INTEL_82810_IG353 #define PCI_DEVICE_ID_INTEL_82810_IG3 0x712354 #endif55 48 #ifndef PCI_DEVICE_ID_INTEL_82815_2 56 49 #define PCI_DEVICE_ID_INTEL_82815_2 0x1132 -
lm-sensors/trunk/kernel/busses/i2c-piix4.c
r1705 r1708 44 44 #include "dmi_scan.h" 45 45 46 /* Note: We assume all devices are identical47 to the Intel PIIX4; we only mention it during detection. */48 49 #ifndef PCI_DEVICE_ID_SERVERWORKS_OSB450 #define PCI_DEVICE_ID_SERVERWORKS_OSB4 0x020051 #endif52 53 #ifndef PCI_DEVICE_ID_SERVERWORKS_CSB554 #define PCI_DEVICE_ID_SERVERWORKS_CSB5 0x020155 #endif56 57 #ifndef PCI_VENDOR_ID_SERVERWORKS58 #define PCI_VENDOR_ID_SERVERWORKS 0x0116659 #endif60 61 #ifndef PCI_DEVICE_ID_INTEL_82443MX_362 #define PCI_DEVICE_ID_INTEL_82443MX_3 0x719b63 #endif64 65 #ifndef PCI_VENDOR_ID_EFAR66 #define PCI_VENDOR_ID_EFAR 0x105567 #endif68 69 #ifndef PCI_DEVICE_ID_EFAR_SLC90E66_370 #define PCI_DEVICE_ID_EFAR_SLC90E66_3 0x946371 #endif72 46 73 47 struct sd { … … 77 51 const char *name; 78 52 }; 53 54 /* Note: We assume all devices are identical 55 to the Intel PIIX4; we only mention it during detection. */ 79 56 80 57 static struct sd supported[] = { -
lm-sensors/trunk/kernel/busses/i2c-sis5595.c
r1705 r1708 62 62 63 63 MODULE_LICENSE("GPL"); 64 65 #ifndef PCI_DEVICE_ID_SI_54066 #define PCI_DEVICE_ID_SI_540 0x054067 #endif68 #ifndef PCI_DEVICE_ID_SI_55069 #define PCI_DEVICE_ID_SI_550 0x055070 #endif71 #ifndef PCI_DEVICE_ID_SI_63072 #define PCI_DEVICE_ID_SI_630 0x063073 #endif74 #ifndef PCI_DEVICE_ID_SI_73075 #define PCI_DEVICE_ID_SI_730 0x073076 #endif77 #ifndef PCI_DEVICE_ID_SI_559878 #define PCI_DEVICE_ID_SI_5598 0x559879 #endif80 64 81 65 static int blacklist[] = { -
lm-sensors/trunk/kernel/busses/i2c-sis630.c
r1705 r1708 60 60 #include "version.h" 61 61 62 #ifndef PCI_VENDOR_ID_SI63 #define PCI_VENDOR_ID_SI 0x103964 #endif65 66 #ifndef PCI_DEVICE_ID_SI_63067 #define PCI_DEVICE_ID_SI_630 0x063068 #endif69 70 #ifndef PCI_DEVICE_ID_SI_73071 #define PCI_DEVICE_ID_SI_730 0x073072 #endif73 74 #ifndef PCI_DEVICE_ID_SI_50375 #define PCI_DEVICE_ID_SI_503 0x000876 #endif77 78 62 struct sd { 79 63 const unsigned short mfr; -
lm-sensors/trunk/kernel/busses/i2c-sis645.c
r1705 r1708 48 48 #define DRV_NAME "i2c-sis645" 49 49 50 /* PCI identifiers */51 52 /* SiS645 north bridge */53 #ifndef PCI_DEVICE_ID_SI_64554 #define PCI_DEVICE_ID_SI_645 0x064555 #endif56 57 50 /* SiS645DX north bridge */ 58 51 #ifndef PCI_DEVICE_ID_SI_646 … … 65 58 #endif 66 59 67 /* SiS650 north bridge */68 #ifndef PCI_DEVICE_ID_SI_65069 #define PCI_DEVICE_ID_SI_650 0x065070 #endif71 72 /* SiS735 combo chipset */73 #ifndef PCI_DEVICE_ID_SI_73574 #define PCI_DEVICE_ID_SI_735 0x073575 #endif76 60 77 61 /* SiS961 south bridge */ … … 84 68 #define PCI_DEVICE_ID_SI_962 0x0962 85 69 #endif 86 87 70 88 71 #define PCI_DEVICE_ID_SI_SMBUS 0x16 -
lm-sensors/trunk/kernel/busses/i2c-via.c
r1705 r1708 33 33 #include "version.h" 34 34 35 MODULE_LICENSE("GPL");36 37 /* PCI device */38 #define VENDOR PCI_VENDOR_ID_VIA39 #define DEVICE PCI_DEVICE_ID_VIA_82C586_340 41 35 /* Power management registers */ 42 36 … … 55 49 #define IOTEXT "via-i2c" 56 50 57 /* ----- global defines ----------------------------------------------- */ 58 #define DEB(x) x /* silicon revision, io addresses */ 59 #define DEB2(x) x /* line status */ 60 #define DEBE(x) /* */ 61 62 /* ----- local functions ---------------------------------------------- */ 63 64 static u16 pm_io_base; 51 static u16 pm_io_base = 0; 65 52 66 53 /* … … 95 82 96 83 97 /* When exactly was the new pci interface introduced? */98 static int find_via(void)99 {100 struct pci_dev *s_bridge;101 102 if (!pci_present())103 return -ENODEV;104 105 s_bridge = pci_find_device(VENDOR, DEVICE, NULL);106 107 if (!s_bridge) {108 printk("i2c-via.o: vt82c586b not found\n");109 return -ENODEV;110 }111 112 return 0;113 }114 115 84 static struct i2c_algo_bit_data bit_data = { 116 85 .setsda = bit_via_setsda, … … 123 92 }; 124 93 125 static struct i2c_adapter bit_via_adapter = {94 static struct i2c_adapter vt586b_adapter = { 126 95 .owner = THIS_MODULE, 127 96 .name = "VIA i2c", 128 97 .id = I2C_HW_B_VIA, 129 .algo_data = &bit_data,98 .algo_data = &bit_data, 130 99 }; 131 100 132 101 133 102 static struct pci_device_id vt586b_ids[] __devinitdata = { 103 { PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, 134 104 { 0, } 135 105 }; … … 139 109 u16 base; 140 110 u8 rev; 111 int res; 112 113 if (pm_io_base) { 114 printk(KERN_ERR "i2c-via.o: Will only support one host\n"); 115 return -EBUSY; 116 } 141 117 142 118 pci_read_config_byte(dev, PM_CFG_REVID, &rev); … … 159 135 pm_io_base &= (0xff << 8); 160 136 161 return -ENODEV;162 163 137 if (! request_region(I2C_DIR, IOSPACE, IOTEXT)) { 164 138 printk("i2c-via.o: IO 0x%x-0x%x already in use\n", … … 168 142 outb(inb(I2C_DIR) & ~(I2C_SDA | I2C_SCL), I2C_DIR); 169 143 outb(inb(I2C_OUT) & ~(I2C_SDA | I2C_SCL), I2C_OUT); 170 171 i2c_bit_add_bus(&bit_via_adapter); 144 145 res = i2c_bit_add_bus(&vt586b_adapter); 146 if ( res < 0 ) { 147 release_region(I2C_DIR, IOSPACE); 148 pm_io_base = 0; 149 return res; 150 } 151 return 0; 172 152 } 173 153 174 154 static void __devexit vt586b_remove(struct pci_dev *dev) 175 155 { 176 i2c_bit_del_bus(&bit_via_adapter); 156 i2c_bit_del_bus(&vt586b_adapter); 157 release_region(I2C_DIR, IOSPACE); 158 pm_io_base = 0; 177 159 } 178 160 … … 195 177 { 196 178 pci_unregister_driver(&vt586b_driver); 197 release_region(I2C_DIR, IOSPACE);198 179 } 199 200 180 201 181 202 182 MODULE_AUTHOR("Kyösti Mälkki <kmalkki@cc.hut.fi>"); 203 183 MODULE_DESCRIPTION("i2c for Via vt82c586b southbridge"); 184 MODULE_LICENSE("GPL"); 204 185 205 186 module_init(i2c_vt586b_init); -
lm-sensors/trunk/kernel/busses/i2c-viapro.c
r1705 r1708 43 43 #include <asm/io.h> 44 44 #include "version.h" 45 46 #ifndef PCI_DEVICE_ID_VIA_82C596_347 #define PCI_DEVICE_ID_VIA_82C596_3 0x305048 #endif49 #ifndef PCI_DEVICE_ID_VIA_82C596B_350 #define PCI_DEVICE_ID_VIA_82C596B_3 0x305151 #endif52 #ifndef PCI_DEVICE_ID_VIA_82C686_453 #define PCI_DEVICE_ID_VIA_82C686_4 0x305754 #endif55 #ifndef PCI_DEVICE_ID_VIA_8233_056 #define PCI_DEVICE_ID_VIA_8233_0 0x307457 #endif58 45 59 46 #define SMBBA1 0x90 -
lm-sensors/trunk/kernel/busses/i2c-voodoo3.c
r1705 r1708 37 37 38 38 MODULE_LICENSE("GPL"); 39 40 /* 3DFX defines */41 #ifndef PCI_DEVICE_ID_3DFX_VOODOO342 #define PCI_DEVICE_ID_3DFX_VOODOO3 0x0543 #endif44 #ifndef PCI_DEVICE_ID_3DFX_BANSHEE45 #define PCI_DEVICE_ID_3DFX_BANSHEE 0x0346 #endif47 39 48 40 /* the only registers we use */ -
lm-sensors/trunk/kernel/chips/sis5595.c
r1705 r1708 79 79 /* Insmod parameters */ 80 80 SENSORS_INSMOD_1(sis5595); 81 82 #ifndef PCI_DEVICE_ID_SI_54083 #define PCI_DEVICE_ID_SI_540 0x054084 #endif85 #ifndef PCI_DEVICE_ID_SI_55086 #define PCI_DEVICE_ID_SI_550 0x055087 #endif88 #ifndef PCI_DEVICE_ID_SI_63089 #define PCI_DEVICE_ID_SI_630 0x063090 #endif91 #ifndef PCI_DEVICE_ID_SI_73092 #define PCI_DEVICE_ID_SI_730 0x073093 #endif94 #ifndef PCI_DEVICE_ID_SI_559895 #define PCI_DEVICE_ID_SI_5598 0x559896 #endif97 81 98 82 static int blacklist[] = { -
lm-sensors/trunk/kernel/chips/via686a.c
r1705 r1708 41 41 #include <asm/io.h> 42 42 #include "version.h" 43 44 #ifndef PCI_DEVICE_ID_VIA_82C686_445 #define PCI_DEVICE_ID_VIA_82C686_4 0x305746 #endif47 43 48 44
