Lines Matching refs:PIIX4_dev

173 static int piix4_setup(struct pci_dev *PIIX4_dev,  in piix4_setup()  argument
179 if ((PIIX4_dev->vendor == PCI_VENDOR_ID_SERVERWORKS) && in piix4_setup()
180 (PIIX4_dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB5)) in piix4_setup()
186 dev_err(&PIIX4_dev->dev, in piix4_setup()
193 PIIX4_dev->vendor == PCI_VENDOR_ID_INTEL) { in piix4_setup()
194 dev_err(&PIIX4_dev->dev, "IBM system detected; this module " in piix4_setup()
205 pci_read_config_word(PIIX4_dev, SMBBA, &piix4_smba); in piix4_setup()
208 dev_err(&PIIX4_dev->dev, "SMBus base address " in piix4_setup()
219 dev_err(&PIIX4_dev->dev, "SMBus region 0x%x already in use!\n", in piix4_setup()
224 pci_read_config_byte(PIIX4_dev, SMBHSTCFG, &temp); in piix4_setup()
229 pci_write_config_byte(PIIX4_dev, SMBHSTCFG, temp & 0xfe); in piix4_setup()
230 pci_write_config_word(PIIX4_dev, SMBBA, piix4_smba); in piix4_setup()
231 pci_write_config_byte(PIIX4_dev, SMBHSTCFG, temp | 0x01); in piix4_setup()
232 dev_info(&PIIX4_dev->dev, "WARNING: SMBus interface set to " in piix4_setup()
244 pci_write_config_byte(PIIX4_dev, SMBHSTCFG, in piix4_setup()
246 dev_notice(&PIIX4_dev->dev, in piix4_setup()
249 dev_err(&PIIX4_dev->dev, in piix4_setup()
257 dev_dbg(&PIIX4_dev->dev, "Using IRQ for SMBus\n"); in piix4_setup()
259 dev_dbg(&PIIX4_dev->dev, "Using SMI# for SMBus\n"); in piix4_setup()
261 dev_err(&PIIX4_dev->dev, "Illegal Interrupt configuration " in piix4_setup()
264 pci_read_config_byte(PIIX4_dev, SMBREV, &temp); in piix4_setup()
265 dev_info(&PIIX4_dev->dev, in piix4_setup()
272 static int piix4_setup_sb800(struct pci_dev *PIIX4_dev, in piix4_setup_sb800() argument
281 dev_err(&PIIX4_dev->dev, "SMBus does not support " in piix4_setup_sb800()
287 if ((PIIX4_dev->vendor == PCI_VENDOR_ID_AMD && in piix4_setup_sb800()
288 PIIX4_dev->device == PCI_DEVICE_ID_AMD_HUDSON2_SMBUS && in piix4_setup_sb800()
289 PIIX4_dev->revision >= 0x41) || in piix4_setup_sb800()
290 (PIIX4_dev->vendor == PCI_VENDOR_ID_AMD && in piix4_setup_sb800()
291 PIIX4_dev->device == PCI_DEVICE_ID_AMD_KERNCZ_SMBUS && in piix4_setup_sb800()
292 PIIX4_dev->revision >= 0x49)) in piix4_setup_sb800()
298 dev_err(&PIIX4_dev->dev, in piix4_setup_sb800()
322 dev_err(&PIIX4_dev->dev, in piix4_setup_sb800()
331 dev_err(&PIIX4_dev->dev, "SMBus region 0x%x already in use!\n", in piix4_setup_sb800()
338 dev_info(&PIIX4_dev->dev, in piix4_setup_sb800()
346 dev_err(&PIIX4_dev->dev, "SMBus I2C bus config region " in piix4_setup_sb800()
355 dev_dbg(&PIIX4_dev->dev, "Using IRQ for SMBus\n"); in piix4_setup_sb800()
357 dev_dbg(&PIIX4_dev->dev, "Using SMI# for SMBus\n"); in piix4_setup_sb800()
359 dev_info(&PIIX4_dev->dev, in piix4_setup_sb800()
364 if (PIIX4_dev->vendor == PCI_VENDOR_ID_AMD) { in piix4_setup_sb800()
365 if (PIIX4_dev->device == PCI_DEVICE_ID_AMD_KERNCZ_SMBUS || in piix4_setup_sb800()
366 (PIIX4_dev->device == PCI_DEVICE_ID_AMD_HUDSON2_SMBUS && in piix4_setup_sb800()
367 PIIX4_dev->revision >= 0x1F)) { in piix4_setup_sb800()
393 dev_info(&PIIX4_dev->dev, in piix4_setup_sb800()
400 static int piix4_setup_aux(struct pci_dev *PIIX4_dev, in piix4_setup_aux() argument
410 pci_read_config_word(PIIX4_dev, base_reg_addr, &piix4_smba); in piix4_setup_aux()
412 dev_dbg(&PIIX4_dev->dev, in piix4_setup_aux()
419 dev_dbg(&PIIX4_dev->dev, in piix4_setup_aux()
428 dev_err(&PIIX4_dev->dev, "Auxiliary SMBus region 0x%x " in piix4_setup_aux()
433 dev_info(&PIIX4_dev->dev, in piix4_setup_aux()