Searched refs:PIIX4_dev (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/i2c/busses/
H A Di2c-piix4.c129 static int piix4_setup(struct pci_dev *PIIX4_dev, piix4_setup() argument
135 if ((PIIX4_dev->vendor == PCI_VENDOR_ID_SERVERWORKS) && piix4_setup()
136 (PIIX4_dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB5)) piix4_setup()
142 dev_err(&PIIX4_dev->dev, piix4_setup()
149 PIIX4_dev->vendor == PCI_VENDOR_ID_INTEL) { piix4_setup()
150 dev_err(&PIIX4_dev->dev, "IBM system detected; this module " piix4_setup()
161 pci_read_config_word(PIIX4_dev, SMBBA, &piix4_smba); piix4_setup()
164 dev_err(&PIIX4_dev->dev, "SMBus base address " piix4_setup()
175 dev_err(&PIIX4_dev->dev, "SMBus region 0x%x already in use!\n", piix4_setup()
180 pci_read_config_byte(PIIX4_dev, SMBHSTCFG, &temp); piix4_setup()
185 pci_write_config_byte(PIIX4_dev, SMBHSTCFG, temp & 0xfe); piix4_setup()
186 pci_write_config_word(PIIX4_dev, SMBBA, piix4_smba); piix4_setup()
187 pci_write_config_byte(PIIX4_dev, SMBHSTCFG, temp | 0x01); piix4_setup()
188 dev_info(&PIIX4_dev->dev, "WARNING: SMBus interface set to " piix4_setup()
200 pci_write_config_byte(PIIX4_dev, SMBHSTCFG, piix4_setup()
202 dev_notice(&PIIX4_dev->dev, piix4_setup()
205 dev_err(&PIIX4_dev->dev, piix4_setup()
213 dev_dbg(&PIIX4_dev->dev, "Using IRQ for SMBus\n"); piix4_setup()
215 dev_dbg(&PIIX4_dev->dev, "Using SMI# for SMBus\n"); piix4_setup()
217 dev_err(&PIIX4_dev->dev, "Illegal Interrupt configuration " piix4_setup()
220 pci_read_config_byte(PIIX4_dev, SMBREV, &temp); piix4_setup()
221 dev_info(&PIIX4_dev->dev, piix4_setup()
228 static int piix4_setup_sb800(struct pci_dev *PIIX4_dev, piix4_setup_sb800() argument
238 dev_err(&PIIX4_dev->dev, "SMBus does not support " piix4_setup_sb800()
244 if ((PIIX4_dev->vendor == PCI_VENDOR_ID_AMD && piix4_setup_sb800()
245 PIIX4_dev->device == PCI_DEVICE_ID_AMD_HUDSON2_SMBUS && piix4_setup_sb800()
246 PIIX4_dev->revision >= 0x41) || piix4_setup_sb800()
247 (PIIX4_dev->vendor == PCI_VENDOR_ID_AMD && piix4_setup_sb800()
248 PIIX4_dev->device == PCI_DEVICE_ID_AMD_KERNCZ_SMBUS && piix4_setup_sb800()
249 PIIX4_dev->revision >= 0x49)) piix4_setup_sb800()
255 dev_err(&PIIX4_dev->dev, "SMBus base address index region " piix4_setup_sb800()
276 dev_err(&PIIX4_dev->dev, piix4_setup_sb800()
285 dev_err(&PIIX4_dev->dev, "SMBus region 0x%x already in use!\n", piix4_setup_sb800()
292 dev_info(&PIIX4_dev->dev, piix4_setup_sb800()
300 dev_err(&PIIX4_dev->dev, "SMBus I2C bus config region " piix4_setup_sb800()
309 dev_dbg(&PIIX4_dev->dev, "Using IRQ for SMBus\n"); piix4_setup_sb800()
311 dev_dbg(&PIIX4_dev->dev, "Using SMI# for SMBus\n"); piix4_setup_sb800()
313 dev_info(&PIIX4_dev->dev, piix4_setup_sb800()
320 static int piix4_setup_aux(struct pci_dev *PIIX4_dev, piix4_setup_aux() argument
330 pci_read_config_word(PIIX4_dev, base_reg_addr, &piix4_smba); piix4_setup_aux()
332 dev_dbg(&PIIX4_dev->dev, piix4_setup_aux()
339 dev_dbg(&PIIX4_dev->dev, piix4_setup_aux()
348 dev_err(&PIIX4_dev->dev, "Auxiliary SMBus region 0x%x " piix4_setup_aux()
353 dev_info(&PIIX4_dev->dev, piix4_setup_aux()

Completed in 190 milliseconds