ubsec.c (254263) | ubsec.c (255362) |
---|---|
1/* $OpenBSD: ubsec.c,v 1.115 2002/09/24 18:33:26 jason Exp $ */ 2 3/*- 4 * Copyright (c) 2000 Jason L. Wright (jason@thought.net) 5 * Copyright (c) 2000 Theo de Raadt (deraadt@openbsd.org) 6 * Copyright (c) 2001 Patrik Lindergren (patrik@ipunplugged.com) 7 * 8 * All rights reserved. --- 25 unchanged lines hidden (view full) --- 34 * POSSIBILITY OF SUCH DAMAGE. 35 * 36 * Effort sponsored in part by the Defense Advanced Research Projects 37 * Agency (DARPA) and Air Force Research Laboratory, Air Force 38 * Materiel Command, USAF, under agreement number F30602-01-2-0537. 39 */ 40 41#include <sys/cdefs.h> | 1/* $OpenBSD: ubsec.c,v 1.115 2002/09/24 18:33:26 jason Exp $ */ 2 3/*- 4 * Copyright (c) 2000 Jason L. Wright (jason@thought.net) 5 * Copyright (c) 2000 Theo de Raadt (deraadt@openbsd.org) 6 * Copyright (c) 2001 Patrik Lindergren (patrik@ipunplugged.com) 7 * 8 * All rights reserved. --- 25 unchanged lines hidden (view full) --- 34 * POSSIBILITY OF SUCH DAMAGE. 35 * 36 * Effort sponsored in part by the Defense Advanced Research Projects 37 * Agency (DARPA) and Air Force Research Laboratory, Air Force 38 * Materiel Command, USAF, under agreement number F30602-01-2-0537. 39 */ 40 41#include <sys/cdefs.h> |
42__FBSDID("$FreeBSD: head/sys/dev/ubsec/ubsec.c 254263 2013-08-12 23:30:01Z scottl $"); | 42__FBSDID("$FreeBSD: head/sys/dev/ubsec/ubsec.c 255362 2013-09-07 14:15:13Z markm $"); |
43 44/* 45 * uBsec 5[56]01, 58xx hardware crypto accelerator 46 */ 47 48#include "opt_ubsec.h" 49 50#include <sys/param.h> --- 203 unchanged lines hidden (view full) --- 254 return "Sun unknown-part"; 255 } 256 return "Unknown-vendor unknown-part"; 257} 258 259static void 260default_harvest(struct rndtest_state *rsp, void *buf, u_int count) 261{ | 43 44/* 45 * uBsec 5[56]01, 58xx hardware crypto accelerator 46 */ 47 48#include "opt_ubsec.h" 49 50#include <sys/param.h> --- 203 unchanged lines hidden (view full) --- 254 return "Sun unknown-part"; 255 } 256 return "Unknown-vendor unknown-part"; 257} 258 259static void 260default_harvest(struct rndtest_state *rsp, void *buf, u_int count) 261{ |
262 random_harvest(buf, count, count*NBBY, 0, RANDOM_PURE); | 262 random_harvest(buf, count, count*NBBY/2, 0, RANDOM_PURE); |
263} 264 265static int 266ubsec_attach(device_t dev) 267{ 268 struct ubsec_softc *sc = device_get_softc(dev); 269 struct ubsec_dma *dmap; 270 u_int32_t i; --- 2599 unchanged lines hidden --- | 263} 264 265static int 266ubsec_attach(device_t dev) 267{ 268 struct ubsec_softc *sc = device_get_softc(dev); 269 struct ubsec_dma *dmap; 270 u_int32_t i; --- 2599 unchanged lines hidden --- |