| 156 | } |
| 157 | |
| 158 | static rt_bool_t pci_intx_mask_broken(struct rt_pci_device *pdev) |
| 159 | { |
| 160 | rt_bool_t res = RT_FALSE; |
| 161 | rt_uint16_t orig, toggle, new; |
| 162 | |
| 163 | rt_pci_read_config_u16(pdev, PCIR_COMMAND, &orig); |
| 164 | toggle = orig ^ PCIM_CMD_INTxDIS; |
| 165 | rt_pci_write_config_u16(pdev, PCIR_COMMAND, toggle); |
| 166 | rt_pci_read_config_u16(pdev, PCIR_COMMAND, &new); |
| 167 | |
| 168 | rt_pci_write_config_u16(pdev, PCIR_COMMAND, orig); |
| 169 | |
| 170 | if (new != toggle) |
| 171 | { |
| 172 | res = RT_TRUE; |
| 173 | } |
| 174 | |
| 175 | return res; |
| 176 | } |
| 177 | |
| 178 | static void pci_read_irq(struct rt_pci_device *pdev) |
| 179 | { |
no test coverage detected