| 30 | } |
| 31 | |
| 32 | rt_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 | |
| 49 | static 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) |
no test coverage detected