| 56 | } |
| 57 | |
| 58 | static void msix_update_ctrl(struct rt_pci_device *pdev, |
| 59 | rt_uint16_t clear, rt_uint16_t set) |
| 60 | { |
| 61 | rt_uint16_t msgctl; |
| 62 | |
| 63 | rt_pci_read_config_u16(pdev, pdev->msix_cap + PCIR_MSIX_CTRL, &msgctl); |
| 64 | msgctl &= ~clear; |
| 65 | msgctl |= set; |
| 66 | rt_pci_write_config_u16(pdev, pdev->msix_cap + PCIR_MSIX_CTRL, msgctl); |
| 67 | } |
| 68 | |
| 69 | rt_inline void msix_unmask(struct rt_pci_msix_conf *msix) |
| 70 | { |
no test coverage detected