| 5283 | } |
| 5284 | |
| 5285 | static void |
| 5286 | iflib_free_intr_mem(if_ctx_t ctx) |
| 5287 | { |
| 5288 | |
| 5289 | if (ctx->ifc_softc_ctx.isc_intr != IFLIB_INTR_MSIX) { |
| 5290 | iflib_irq_free(ctx, &ctx->ifc_legacy_irq); |
| 5291 | } |
| 5292 | if (ctx->ifc_softc_ctx.isc_intr != IFLIB_INTR_LEGACY) { |
| 5293 | pci_release_msi(ctx->ifc_dev); |
| 5294 | } |
| 5295 | if (ctx->ifc_msix_mem != NULL) { |
| 5296 | bus_release_resource(ctx->ifc_dev, SYS_RES_MEMORY, |
| 5297 | rman_get_rid(ctx->ifc_msix_mem), ctx->ifc_msix_mem); |
| 5298 | ctx->ifc_msix_mem = NULL; |
| 5299 | } |
| 5300 | } |
| 5301 | |
| 5302 | int |
| 5303 | iflib_device_detach(device_t dev) |
no test coverage detected