Lines Matching +full:0 +full:x7c
20 #define ULI_PIRQA 0x08
21 #define ULI_PIRQB 0x09
22 #define ULI_PIRQC 0x0a
23 #define ULI_PIRQD 0x0b
24 #define ULI_PIRQE 0x0c
25 #define ULI_PIRQF 0x0d
26 #define ULI_PIRQG 0x0e
28 #define ULI_8259_NONE 0x00
29 #define ULI_8259_IRQ1 0x08
30 #define ULI_8259_IRQ3 0x02
31 #define ULI_8259_IRQ4 0x04
32 #define ULI_8259_IRQ5 0x05
33 #define ULI_8259_IRQ6 0x07
34 #define ULI_8259_IRQ7 0x06
35 #define ULI_8259_IRQ9 0x01
36 #define ULI_8259_IRQ10 0x03
37 #define ULI_8259_IRQ11 0x09
38 #define ULI_8259_IRQ12 0x0b
39 #define ULI_8259_IRQ14 0x0d
40 #define ULI_8259_IRQ15 0x0f
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()
97 for (i = 0; i < 4; i++) { in quirk_uli1575()
99 pci_write_config_byte(dev, 0x48 + i, val); in quirk_uli1575()
102 /* USB 1.1 OHCI controller 1: dev 28, func 0 - IRQ12 */ 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()
111 /* Lan controller: dev 27, func 0 - IRQ6 */ in quirk_uli1575()
112 pci_write_config_byte(dev, 0x89, ULI_PIRQF); in quirk_uli1575()
114 /* AC97 Audio controller: dev 29, func 0 - IRQ6 */ 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()
160 outb(0xfa, 0x4d0); in quirk_final_uli1575()
161 outb(0x1e, 0x4d1); in quirk_final_uli1575()
168 CMOS_WRITE(0, RTC_VALID); in quirk_final_uli1575()
170 outb_p(0x7c, 0x72); in quirk_final_uli1575()
171 outb_p(RTC_ALARM_DONT_CARE, 0x73); in quirk_final_uli1575()
173 outb_p(0x7d, 0x72); in quirk_final_uli1575()
174 outb_p(RTC_ALARM_DONT_CARE, 0x73); in quirk_final_uli1575()
187 pci_read_config_byte(dev, 0x83, &c); in quirk_uli5288()
188 pci_write_config_byte(dev, 0x83, c|0x80); in quirk_uli5288()
191 d = (d & 0xff) | (PCI_CLASS_STORAGE_SATA_AHCI << 8); 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()
214 pci_read_config_word(dev, 0x4a, &temp); in quirk_uli5229()
215 pci_write_config_word(dev, 0x4a, temp | 0x1000); in quirk_uli5229()
225 resource_size_t end = 0; in quirk_final_uli5249()
236 dummy = ioremap(res->start, 0x4); in quirk_final_uli5249()
238 dummy = ioremap(res->end - 3, 0x4); in quirk_final_uli5249()
248 DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_AL, 0x5249, early_uli5249);
249 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x1575, quirk_uli1575);
250 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5288, quirk_uli5288);
251 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5229, quirk_uli5229);
252 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, 0x5249, quirk_final_uli5249);
253 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, 0x1575, quirk_final_uli1575);
254 DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_AL, 0x5229, quirk_uli5229);
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()
279 pci_read_config_byte(dev, 0x83, &c); in hpcd_quirk_uli5288()
280 c |= 0x80; 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()
287 c &= 0x7f; in hpcd_quirk_uli5288()
288 pci_write_config_byte(dev, 0x83, c); in hpcd_quirk_uli5288()
305 pci_read_config_byte(dev, 0x4b, &c); in hpcd_quirk_uli5229()
306 c |= 0x10; in hpcd_quirk_uli5229()
307 pci_write_config_byte(dev, 0x4b, c); in hpcd_quirk_uli5229()
334 oirq.args[0] = 2; in hpcd_final_uli5288()
336 laddr[0] = (hose->first_busno << 16) | (PCI_DEVFN(31, 0) << 8); in hpcd_final_uli5288()
337 laddr[1] = laddr[2] = 0; in hpcd_final_uli5288()
342 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x1575, hpcd_quirk_uli1575);
343 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5288, hpcd_quirk_uli5288);
344 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5229, hpcd_quirk_uli5229);
345 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, 0x5288, hpcd_final_uli5288);