| 1457 | } |
| 1458 | |
| 1459 | static int |
| 1460 | swcr_attach(device_t dev) |
| 1461 | { |
| 1462 | |
| 1463 | swcr_id = crypto_get_driverid(dev, sizeof(struct swcr_session), |
| 1464 | CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_SYNC); |
| 1465 | if (swcr_id < 0) { |
| 1466 | device_printf(dev, "cannot initialize!"); |
| 1467 | return (ENXIO); |
| 1468 | } |
| 1469 | |
| 1470 | return (0); |
| 1471 | } |
| 1472 | |
| 1473 | static int |
| 1474 | swcr_detach(device_t dev) |
nothing calls this directly
no test coverage detected