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

Function rt_pci_find_capability

components/drivers/pci/pci.c:136–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136rt_uint8_t rt_pci_find_capability(struct rt_pci_device *pdev, int cap)
137{
138 rt_uint8_t res = RT_UINT8_MAX;
139
140 if (pdev)
141 {
142 res = pci_bus_find_cap_start(pdev->bus, pdev->devfn, pdev->hdr_type);
143
144 if (res)
145 {
146 res = pci_find_next_cap(pdev->bus, pdev->devfn, res, cap);
147 }
148 }
149
150 return res;
151}
152
153rt_uint8_t rt_pci_find_next_capability(struct rt_pci_device *pdev, rt_uint8_t pos, int cap)
154{

Callers 7

rt_pci_pme_initFunction · 0.85
pcie_set_port_typeFunction · 0.85
pci_cfg_space_sizeFunction · 0.85
rt_pci_setup_deviceFunction · 0.85
pci_ea_fixed_busnrsFunction · 0.85
rt_pci_msi_initFunction · 0.85
rt_pci_msix_initFunction · 0.85

Calls 2

pci_bus_find_cap_startFunction · 0.85
pci_find_next_capFunction · 0.85

Tested by

no test coverage detected