Lines Matching refs:dev
62 static void early_uli5249(struct pci_dev *dev) in early_uli5249() argument
69 pci_write_config_word(dev, PCI_COMMAND, PCI_COMMAND_IO | in early_uli5249()
73 pci_read_config_byte(dev, 0x7c, &temp); in early_uli5249()
74 pci_write_config_byte(dev, 0x7c, 0x80); in early_uli5249()
77 pci_write_config_byte(dev, PCI_CLASS_PROG, 0x01); in early_uli5249()
78 dev->class |= 0x1; in early_uli5249()
81 pci_write_config_byte(dev, 0x7c, temp); in early_uli5249()
85 static void quirk_uli1575(struct pci_dev *dev) in quirk_uli1575() argument
99 pci_write_config_byte(dev, 0x48 + i, val); in quirk_uli1575()
103 pci_write_config_byte(dev, 0x86, ULI_PIRQD); in quirk_uli1575()
106 pci_write_config_byte(dev, 0x87, ULI_PIRQA); in quirk_uli1575()
109 pci_write_config_byte(dev, 0x88, ULI_PIRQB); in quirk_uli1575()
112 pci_write_config_byte(dev, 0x89, ULI_PIRQF); in quirk_uli1575()
115 pci_write_config_byte(dev, 0x8a, ULI_PIRQF); in quirk_uli1575()
118 pci_write_config_byte(dev, 0x8b, ULI_PIRQF); in quirk_uli1575()
121 pci_write_config_byte(dev, 0x8c, ULI_PIRQF); in quirk_uli1575()
124 pci_write_config_byte(dev, 0x8d, ULI_PIRQE); in quirk_uli1575()
127 pci_write_config_byte(dev, 0x8e, ULI_PIRQG); in quirk_uli1575()
130 pci_write_config_byte(dev, 0x8f, ULI_PIRQG); in quirk_uli1575()
133 pci_write_config_byte(dev, 0x74, ULI_8259_IRQ11); in quirk_uli1575()
138 pci_write_config_byte(dev, 0x44, 0x30 | ULI_8259_IRQ14); in quirk_uli1575()
139 pci_write_config_byte(dev, 0x75, ULI_8259_IRQ15); in quirk_uli1575()
142 static void quirk_final_uli1575(struct pci_dev *dev) in quirk_final_uli1575() argument
178 static void quirk_uli5288(struct pci_dev *dev) in quirk_uli5288() argument
187 pci_read_config_byte(dev, 0x83, &c); in quirk_uli5288()
188 pci_write_config_byte(dev, 0x83, c|0x80); in quirk_uli5288()
190 pci_read_config_dword(dev, PCI_CLASS_REVISION, &d); in quirk_uli5288()
192 pci_write_config_dword(dev, PCI_CLASS_REVISION, d); in quirk_uli5288()
195 pci_write_config_byte(dev, 0x83, c); in quirk_uli5288()
198 pci_read_config_byte(dev, 0x84, &c); in quirk_uli5288()
199 pci_write_config_byte(dev, 0x84, c & ~0x01); in quirk_uli5288()
203 static void quirk_uli5229(struct pci_dev *dev) in quirk_uli5229() argument
210 pci_write_config_word(dev, PCI_COMMAND, PCI_COMMAND_INTX_DISABLE | in quirk_uli5229()
214 pci_read_config_word(dev, 0x4a, &temp); in quirk_uli5229()
215 pci_write_config_word(dev, 0x4a, temp | 0x1000); in quirk_uli5229()
219 static void quirk_final_uli5249(struct pci_dev *dev) in quirk_final_uli5249() argument
223 struct pci_bus *bus = dev->bus; in quirk_final_uli5249()
228 unsigned long flags = pci_resource_flags(dev, i); in quirk_final_uli5249()
230 end = pci_resource_end(dev, i); in quirk_final_uli5249()
256 static void hpcd_quirk_uli1575(struct pci_dev *dev) in hpcd_quirk_uli1575() argument
264 pci_read_config_dword(dev, 0x48, &temp32); in hpcd_quirk_uli1575()
265 pci_write_config_dword(dev, 0x48, (temp32 | 1<<26)); in hpcd_quirk_uli1575()
268 pci_read_config_dword(dev, 0x90, &temp32); in hpcd_quirk_uli1575()
269 pci_write_config_dword(dev, 0x90, (temp32 | 1<<22)); in hpcd_quirk_uli1575()
272 static void hpcd_quirk_uli5288(struct pci_dev *dev) in hpcd_quirk_uli5288() argument
279 pci_read_config_byte(dev, 0x83, &c); in hpcd_quirk_uli5288()
281 pci_write_config_byte(dev, 0x83, c); in hpcd_quirk_uli5288()
283 pci_write_config_byte(dev, PCI_CLASS_PROG, 0x01); in hpcd_quirk_uli5288()
284 pci_write_config_byte(dev, PCI_CLASS_DEVICE, 0x06); in hpcd_quirk_uli5288()
286 pci_read_config_byte(dev, 0x83, &c); in hpcd_quirk_uli5288()
288 pci_write_config_byte(dev, 0x83, c); in hpcd_quirk_uli5288()
298 static void hpcd_quirk_uli5229(struct pci_dev *dev) in hpcd_quirk_uli5229() argument
305 pci_read_config_byte(dev, 0x4b, &c); in hpcd_quirk_uli5229()
307 pci_write_config_byte(dev, 0x4b, c); in hpcd_quirk_uli5229()
320 static void hpcd_final_uli5288(struct pci_dev *dev) in hpcd_final_uli5288() argument
322 struct pci_controller *hose = pci_bus_to_host(dev->bus); in hpcd_final_uli5288()
339 dev->irq = irq_create_of_mapping(&oirq); in hpcd_final_uli5288()