Changeset View
Changeset View
Standalone View
Standalone View
head/sys/crypto/via/padlock.c
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static int | static int | ||||
padlock_attach(device_t dev) | padlock_attach(device_t dev) | ||||
{ | { | ||||
struct padlock_softc *sc = device_get_softc(dev); | struct padlock_softc *sc = device_get_softc(dev); | ||||
sc->sc_cid = crypto_get_driverid(dev, sizeof(struct padlock_session), | sc->sc_cid = crypto_get_driverid(dev, sizeof(struct padlock_session), | ||||
CRYPTOCAP_F_HARDWARE); | CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_SYNC); | ||||
if (sc->sc_cid < 0) { | if (sc->sc_cid < 0) { | ||||
device_printf(dev, "Could not get crypto driver id.\n"); | device_printf(dev, "Could not get crypto driver id.\n"); | ||||
return (ENOMEM); | return (ENOMEM); | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |