| 5181 | } |
| 5182 | |
| 5183 | int |
| 5184 | iflib_device_attach(device_t dev) |
| 5185 | { |
| 5186 | if_ctx_t ctx; |
| 5187 | if_shared_ctx_t sctx; |
| 5188 | |
| 5189 | if ((sctx = DEVICE_REGISTER(dev)) == NULL || sctx->isc_magic != IFLIB_MAGIC) |
| 5190 | return (ENOTSUP); |
| 5191 | |
| 5192 | pci_enable_busmaster(dev); |
| 5193 | |
| 5194 | return (iflib_device_register(dev, NULL, sctx, &ctx)); |
| 5195 | } |
| 5196 | |
| 5197 | int |
| 5198 | iflib_device_deregister(if_ctx_t ctx) |
nothing calls this directly
no test coverage detected