Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/safe/safe.c
Show First 20 Lines • Show All 206 Lines • ▼ Show 20 Lines | safe_partname(struct safe_softc *sc) | ||||
return "Unknown-vendor unknown-part"; | return "Unknown-vendor unknown-part"; | ||||
} | } | ||||
#ifndef SAFE_NO_RNG | #ifndef SAFE_NO_RNG | ||||
static void | static void | ||||
default_harvest(struct rndtest_state *rsp, void *buf, u_int count) | default_harvest(struct rndtest_state *rsp, void *buf, u_int count) | ||||
{ | { | ||||
/* MarkM: FIX!! Check that this does not swamp the harvester! */ | /* MarkM: FIX!! Check that this does not swamp the harvester! */ | ||||
random_harvest_queue(buf, count, count*NBBY/2, RANDOM_PURE_SAFE); | random_harvest_queue(buf, count, RANDOM_PURE_SAFE); | ||||
} | } | ||||
#endif /* SAFE_NO_RNG */ | #endif /* SAFE_NO_RNG */ | ||||
static int | static int | ||||
safe_attach(device_t dev) | safe_attach(device_t dev) | ||||
{ | { | ||||
struct safe_softc *sc = device_get_softc(dev); | struct safe_softc *sc = device_get_softc(dev); | ||||
u_int32_t raddr; | u_int32_t raddr; | ||||
▲ Show 20 Lines • Show All 1,944 Lines • Show Last 20 Lines |