Lines Matching refs:pdev

47 static void loongson2e_nec_fixup(struct pci_dev *pdev)  in loongson2e_nec_fixup()  argument
52 pci_read_config_dword(pdev, 0xe0, &val); in loongson2e_nec_fixup()
53 pci_write_config_dword(pdev, 0xe0, (val & ~7) | 0x4); in loongson2e_nec_fixup()
56 pci_write_config_dword(pdev, 0xe4, 1 << 5); in loongson2e_nec_fixup()
59 static void loongson2e_686b_func0_fixup(struct pci_dev *pdev) in loongson2e_686b_func0_fixup() argument
63 sb_slot = PCI_SLOT(pdev->devfn); in loongson2e_686b_func0_fixup()
68 pci_write_config_byte(pdev, 0x40, 0x08); in loongson2e_686b_func0_fixup()
71 pci_write_config_byte(pdev, 0x41, 0x01); in loongson2e_686b_func0_fixup()
74 pci_write_config_byte(pdev, 0x45, 0x00); in loongson2e_686b_func0_fixup()
77 pci_write_config_byte(pdev, 0x46, 0xe0); in loongson2e_686b_func0_fixup()
86 pci_write_config_byte(pdev, 0x47, 0xe6); in loongson2e_686b_func0_fixup()
95 pci_write_config_byte(pdev, 0x48, 0x01); in loongson2e_686b_func0_fixup()
98 pci_write_config_byte(pdev, 0x4a, 0x84); in loongson2e_686b_func0_fixup()
105 pci_write_config_byte(pdev, 0x50, 0x0e); in loongson2e_686b_func0_fixup()
112 pci_write_config_byte(pdev, 0x51, 0x76); in loongson2e_686b_func0_fixup()
115 pci_write_config_byte(pdev, 0x52, 0x34); in loongson2e_686b_func0_fixup()
118 pci_write_config_byte(pdev, 0x54, 0x00); in loongson2e_686b_func0_fixup()
121 pci_write_config_byte(pdev, 0x55, 0x90); /* bit 7-4, PIRQA */ in loongson2e_686b_func0_fixup()
122 pci_write_config_byte(pdev, 0x56, 0xba); /* bit 7-4, PIRQC; */ in loongson2e_686b_func0_fixup()
124 pci_write_config_byte(pdev, 0x57, 0xd0); /* bit 7-4, PIRQD */ in loongson2e_686b_func0_fixup()
127 pci_read_config_byte(pdev, 0x85, &c); in loongson2e_686b_func0_fixup()
129 pci_write_config_byte(pdev, 0x85, c); in loongson2e_686b_func0_fixup()
134 static void loongson2e_686b_func1_fixup(struct pci_dev *pdev) in loongson2e_686b_func1_fixup() argument
139 pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 48); in loongson2e_686b_func1_fixup()
140 pci_write_config_byte(pdev, PCI_COMMAND, in loongson2e_686b_func1_fixup()
143 pci_write_config_byte(pdev, 0x40, 0x0b); in loongson2e_686b_func1_fixup()
145 pci_write_config_byte(pdev, 0x42, 0x09); in loongson2e_686b_func1_fixup()
149 pci_write_config_byte(pdev, 0x41, 0x02); in loongson2e_686b_func1_fixup()
152 pci_write_config_byte(pdev, 0x43, 0x0a); in loongson2e_686b_func1_fixup()
153 pci_write_config_byte(pdev, 0x44, 0x00); in loongson2e_686b_func1_fixup()
155 pci_write_config_byte(pdev, 0x45, 0x00); in loongson2e_686b_func1_fixup()
157 pci_write_config_byte(pdev, 0x41, 0xc2); in loongson2e_686b_func1_fixup()
158 pci_write_config_byte(pdev, 0x43, 0x35); in loongson2e_686b_func1_fixup()
159 pci_write_config_byte(pdev, 0x44, 0x1c); in loongson2e_686b_func1_fixup()
161 pci_write_config_byte(pdev, 0x45, 0x10); in loongson2e_686b_func1_fixup()
167 static void loongson2e_686b_func2_fixup(struct pci_dev *pdev) in loongson2e_686b_func2_fixup() argument
170 pci_write_config_byte(pdev, PCI_INTERRUPT_LINE, 10); in loongson2e_686b_func2_fixup()
173 static void loongson2e_686b_func3_fixup(struct pci_dev *pdev) in loongson2e_686b_func3_fixup() argument
176 pci_write_config_byte(pdev, PCI_INTERRUPT_LINE, 11); in loongson2e_686b_func3_fixup()
179 static void loongson2e_686b_func5_fixup(struct pci_dev *pdev) in loongson2e_686b_func5_fixup() argument
185 pci_write_config_byte(pdev, PCI_COMMAND, in loongson2e_686b_func5_fixup()
188 pci_read_config_dword(pdev, 0x4, &val); in loongson2e_686b_func5_fixup()
189 pci_write_config_dword(pdev, 0x4, val | 1); in loongson2e_686b_func5_fixup()
192 pci_write_config_byte(pdev, 0x3c, 9); in loongson2e_686b_func5_fixup()
194 pci_read_config_byte(pdev, 0x8, &c); in loongson2e_686b_func5_fixup()
197 pci_write_config_byte(pdev, 0x41, 0xcc); in loongson2e_686b_func5_fixup()
200 pci_write_config_byte(pdev, 0x42, 0x20); in loongson2e_686b_func5_fixup()
203 pci_write_config_word(pdev, 0x2c, 0x1005); in loongson2e_686b_func5_fixup()
204 pci_write_config_word(pdev, 0x2e, 0x4710); in loongson2e_686b_func5_fixup()
205 pci_read_config_dword(pdev, 0x2c, &val); in loongson2e_686b_func5_fixup()
207 pci_write_config_byte(pdev, 0x42, 0x0); in loongson2e_686b_func5_fixup()