15 #include <linux/pci.h>
20 static u8 sb_slot = 5;
26 if (slot == sb_slot) {
56 pci_read_config_dword(pdev, 0xe0, &val);
57 pci_write_config_dword(pdev, 0xe0, (val & ~7) | 0x4);
60 pci_write_config_dword(pdev, 0xe4, 1 << 5);
72 pci_write_config_byte(pdev, 0x40, 0x08);
75 pci_write_config_byte(pdev, 0x41, 0x01);
78 pci_write_config_byte(pdev, 0x45, 0x00);
81 pci_write_config_byte(pdev, 0x46, 0xe0);
90 pci_write_config_byte(pdev, 0x47, 0xe6);
99 pci_write_config_byte(pdev, 0x48, 0x01);
102 pci_write_config_byte(pdev, 0x4a, 0x84);
109 pci_write_config_byte(pdev, 0x50, 0x0e);
116 pci_write_config_byte(pdev, 0x51, 0x76);
119 pci_write_config_byte(pdev, 0x52, 0x34);
122 pci_write_config_byte(pdev, 0x54, 0x00);
125 pci_write_config_byte(pdev, 0x55, 0x90);
126 pci_write_config_byte(pdev, 0x56, 0xba);
128 pci_write_config_byte(pdev, 0x57, 0xd0);
131 pci_read_config_byte(pdev, 0x85, &c);
133 pci_write_config_byte(pdev, 0x85, c);
147 pci_write_config_byte(pdev, 0x40, 0x0b);
149 pci_write_config_byte(pdev, 0x42, 0x09);
153 pci_write_config_byte(pdev, 0x41, 0x02);
156 pci_write_config_byte(pdev, 0x43, 0x0a);
157 pci_write_config_byte(pdev, 0x44, 0x00);
159 pci_write_config_byte(pdev, 0x45, 0x00);
161 pci_write_config_byte(pdev, 0x41, 0xc2);
162 pci_write_config_byte(pdev, 0x43, 0x35);
163 pci_write_config_byte(pdev, 0x44, 0x1c);
165 pci_write_config_byte(pdev, 0x45, 0x10);
192 pci_read_config_dword(pdev, 0x4, &val);
193 pci_write_config_dword(pdev, 0x4, val | 1);
196 pci_write_config_byte(pdev, 0x3c, 9);
198 pci_read_config_byte(pdev, 0x8, &c);
201 pci_write_config_byte(pdev, 0x41, 0xcc);
204 pci_write_config_byte(pdev, 0x42, 0x20);
207 pci_write_config_word(pdev, 0x2c, 0x1005);
208 pci_write_config_word(pdev, 0x2e, 0x4710);
209 pci_read_config_dword(pdev, 0x2c, &val);
211 pci_write_config_byte(pdev, 0x42, 0x0);
215 loongson2e_686b_func0_fixup);
217 loongson2e_686b_func1_fixup);
219 loongson2e_686b_func2_fixup);
221 loongson2e_686b_func3_fixup);
223 loongson2e_686b_func5_fixup);
225 loongson2e_nec_fixup);