| 284 | } |
| 285 | |
| 286 | static void pci_init_capabilities(struct rt_pci_device *pdev) |
| 287 | { |
| 288 | rt_pci_pme_init(pdev); |
| 289 | |
| 290 | #ifdef RT_PCI_MSI |
| 291 | rt_pci_msi_init(pdev); /* Disable MSI */ |
| 292 | rt_pci_msix_init(pdev); /* Disable MSI-X */ |
| 293 | #endif |
| 294 | |
| 295 | pcie_set_port_type(pdev); |
| 296 | pdev->cfg_size = pci_cfg_space_size(pdev); |
| 297 | pci_configure_ari(pdev); |
| 298 | |
| 299 | pdev->no_msi = RT_FALSE; |
| 300 | pdev->msi_enabled = RT_FALSE; |
| 301 | pdev->msix_enabled = RT_FALSE; |
| 302 | } |
| 303 | |
| 304 | rt_err_t rt_pci_setup_device(struct rt_pci_device *pdev) |
| 305 | { |
no test coverage detected