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

Function rt_pci_domain

components/drivers/pci/pci.c:32–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32rt_uint32_t rt_pci_domain(struct rt_pci_device *pdev)
33{
34 struct rt_pci_host_bridge *host_bridge;
35
36 if (!pdev)
37 {
38 return RT_UINT32_MAX;
39 }
40
41 if ((host_bridge = rt_pci_find_host_bridge(pdev->bus)))
42 {
43 return host_bridge->domain;
44 }
45
46 return RT_UINT32_MAX;
47}
48
49static rt_uint8_t pci_find_next_cap_ttl(struct rt_pci_bus *bus,
50 rt_uint32_t devfn, rt_uint8_t pos, int cap, int *ttl)

Callers 2

rt_pci_setup_deviceFunction · 0.85

Calls 1

rt_pci_find_host_bridgeFunction · 0.85

Tested by

no test coverage detected