Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/cavium/cryptocteon/cryptocteon.c
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
static int | static int | ||||
cryptocteon_attach(device_t dev) | cryptocteon_attach(device_t dev) | ||||
{ | { | ||||
struct cryptocteon_softc *sc; | struct cryptocteon_softc *sc; | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
sc->sc_cid = crypto_get_driverid(dev, sizeof(struct octo_sess), | sc->sc_cid = crypto_get_driverid(dev, sizeof(struct octo_sess), | ||||
CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_SYNC); | CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_SYNC | | ||||
CRYPTOCAP_F_ACCEL_SOFTWARE); | |||||
if (sc->sc_cid < 0) { | if (sc->sc_cid < 0) { | ||||
device_printf(dev, "crypto_get_driverid ret %d\n", sc->sc_cid); | device_printf(dev, "crypto_get_driverid ret %d\n", sc->sc_cid); | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines |