| 134 | } |
| 135 | |
| 136 | rt_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 | |
| 153 | rt_uint8_t rt_pci_find_next_capability(struct rt_pci_device *pdev, rt_uint8_t pos, int cap) |
| 154 | { |
no test coverage detected