unmap a particular resource */
| 144 | |
| 145 | /* unmap a particular resource */ |
| 146 | void |
| 147 | pci_unmap_resource(void *requested_addr, size_t size) |
| 148 | { |
| 149 | if (requested_addr == NULL) |
| 150 | return; |
| 151 | |
| 152 | /* Unmap the PCI memory resource of device */ |
| 153 | if (rte_mem_unmap(requested_addr, size)) { |
| 154 | RTE_LOG(ERR, EAL, "%s(): cannot mem unmap(%p, %#zx): %s\n", |
| 155 | __func__, requested_addr, size, |
| 156 | rte_strerror(rte_errno)); |
| 157 | } else |
| 158 | RTE_LOG(DEBUG, EAL, " PCI memory unmapped at %p\n", |
| 159 | requested_addr); |
| 160 | } |
| 161 | /* |
| 162 | * Match the PCI Driver and Device using the ID Table |
| 163 | */ |
no test coverage detected