Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hifn/hifn7751.c
Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Lines | hifn_partname(struct hifn_softc *sc) | ||||
} | } | ||||
return "Unknown-vendor unknown-part"; | return "Unknown-vendor unknown-part"; | ||||
} | } | ||||
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_HIFN); | random_harvest_queue(buf, count, RANDOM_PURE_HIFN); | ||||
} | } | ||||
static u_int | static u_int | ||||
checkmaxmin(device_t dev, const char *what, u_int v, u_int min, u_int max) | checkmaxmin(device_t dev, const char *what, u_int v, u_int min, u_int max) | ||||
{ | { | ||||
if (v > max) { | if (v > max) { | ||||
device_printf(dev, "Warning, %s %u out of range, " | device_printf(dev, "Warning, %s %u out of range, " | ||||
"using max %u\n", what, v, max); | "using max %u\n", what, v, max); | ||||
▲ Show 20 Lines • Show All 2,593 Lines • Show Last 20 Lines |