Lines Matching refs:ALI15X3_dev
121 static int ali15x3_setup(struct pci_dev *ALI15X3_dev) in ali15x3_setup() argument
137 pci_read_config_byte(ALI15X3_dev, SMBATPC, &temp); in ali15x3_setup()
140 pci_write_config_byte(ALI15X3_dev, SMBATPC, temp); in ali15x3_setup()
144 pci_read_config_word(ALI15X3_dev, SMBBA, &ali15x3_smba); in ali15x3_setup()
147 dev_err(&ALI15X3_dev->dev, "ALI15X3_smb region uninitialized " in ali15x3_setup()
161 dev_err(&ALI15X3_dev->dev, in ali15x3_setup()
170 dev_info(&ALI15X3_dev->dev, "forcing ISA address 0x%04X\n", in ali15x3_setup()
172 ret = pci_write_config_word(ALI15X3_dev, SMBBA, ali15x3_smba); in ali15x3_setup()
175 ret = pci_read_config_word(ALI15X3_dev, SMBBA, &a); in ali15x3_setup()
180 dev_err(&ALI15X3_dev->dev, in ali15x3_setup()
186 pci_read_config_byte(ALI15X3_dev, SMBCOM, &temp); in ali15x3_setup()
188 dev_info(&ALI15X3_dev->dev, "enabling SMBus device\n"); in ali15x3_setup()
189 pci_write_config_byte(ALI15X3_dev, SMBCOM, temp | 0x01); in ali15x3_setup()
193 pci_read_config_byte(ALI15X3_dev, SMBHSTCFG, &temp); in ali15x3_setup()
195 dev_info(&ALI15X3_dev->dev, "enabling SMBus controller\n"); in ali15x3_setup()
196 pci_write_config_byte(ALI15X3_dev, SMBHSTCFG, temp | 0x01); in ali15x3_setup()
200 pci_write_config_byte(ALI15X3_dev, SMBCLK, 0x20); in ali15x3_setup()
209 pci_read_config_byte(ALI15X3_dev, SMBREV, &temp); in ali15x3_setup()
210 dev_dbg(&ALI15X3_dev->dev, "SMBREV = 0x%X\n", temp); in ali15x3_setup()
211 dev_dbg(&ALI15X3_dev->dev, "iALI15X3_smba = 0x%X\n", ali15x3_smba); in ali15x3_setup()