diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-11-21 19:34:26 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-11-21 19:34:26 +0000 |
commit | df234af540aa3148a946aaf2c7cb99d0d430622c (patch) | |
tree | 9648d1fafda02024471905aa3f82a4608b4ad4e7 /sys/dev/pci/nofn.c | |
parent | cc4cd7513a1c3435029bffc00a6e730e3d3bd8ef (diff) |
From Angelos:
- simplistic load balancing across multiple cards
- simplified registration process
- a few style nits.
Diffstat (limited to 'sys/dev/pci/nofn.c')
-rw-r--r-- | sys/dev/pci/nofn.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/pci/nofn.c b/sys/dev/pci/nofn.c index 997d6c144c1..c7717f2c1fb 100644 --- a/sys/dev/pci/nofn.c +++ b/sys/dev/pci/nofn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nofn.c,v 1.6 2002/09/24 18:33:26 jason Exp $ */ +/* $OpenBSD: nofn.c,v 1.7 2002/11/21 19:34:25 jason Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -373,6 +373,7 @@ nofn_pk_enable(sc) struct nofn_softc *sc; { u_int32_t r; + int algs[CRK_ALGORITHM_MAX + 1]; if ((sc->sc_cid = crypto_get_driverid(0)) < 0) { printf(": failed to register cid\n"); @@ -382,7 +383,9 @@ nofn_pk_enable(sc) SIMPLEQ_INIT(&sc->sc_pk_queue); sc->sc_pk_current = NULL; - crypto_kregister(sc->sc_cid, CRK_MOD_EXP, 0, nofn_pk_process); + bzero(algs, sizeof(algs)); + algs[CRK_MOD_EXP] = CRYPTO_ALG_FLAG_SUPPORTED; + crypto_kregister(sc->sc_cid, algs, nofn_pk_process); /* enable ALU */ r = PK_READ_4(sc, NOFN_PK_CFG2); |