Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/cryptosoft.c
Show First 20 Lines • Show All 1,652 Lines • ▼ Show 20 Lines | if (device_find_child(parent, "cryptosoft", -1) == NULL && | ||||
BUS_ADD_CHILD(parent, 10, "cryptosoft", 0) == 0) | BUS_ADD_CHILD(parent, 10, "cryptosoft", 0) == 0) | ||||
panic("cryptosoft: could not attach"); | panic("cryptosoft: could not attach"); | ||||
} | } | ||||
static int | static int | ||||
swcr_probe(device_t dev) | swcr_probe(device_t dev) | ||||
{ | { | ||||
device_set_desc(dev, "software crypto"); | device_set_desc(dev, "software crypto"); | ||||
device_quiet(dev); | |||||
return (BUS_PROBE_NOWILDCARD); | return (BUS_PROBE_NOWILDCARD); | ||||
} | } | ||||
static int | static int | ||||
swcr_attach(device_t dev) | swcr_attach(device_t dev) | ||||
{ | { | ||||
swcr_id = crypto_get_driverid(dev, sizeof(struct swcr_session), | swcr_id = crypto_get_driverid(dev, sizeof(struct swcr_session), | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |