MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / pci_init_capabilities

Function pci_init_capabilities

components/drivers/pci/probe.c:286–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286static 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
304rt_err_t rt_pci_setup_device(struct rt_pci_device *pdev)
305{

Callers 1

rt_pci_setup_deviceFunction · 0.85

Calls 6

rt_pci_pme_initFunction · 0.85
rt_pci_msi_initFunction · 0.85
rt_pci_msix_initFunction · 0.85
pcie_set_port_typeFunction · 0.85
pci_cfg_space_sizeFunction · 0.85
pci_configure_ariFunction · 0.85

Tested by

no test coverage detected