From: jason Date: Thu, 30 Mar 2000 23:14:25 +0000 (+0000) Subject: document hook functions X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=834534068a7367bbb79bed0981ae31613e9d1d06;p=openbsd document hook functions --- diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c index 7b22b85b821..ee9e324ae13 100644 --- a/sys/dev/pci/hifn7751.c +++ b/sys/dev/pci/hifn7751.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hifn7751.c,v 1.21 2000/03/30 07:30:39 jason Exp $ */ +/* $OpenBSD: hifn7751.c,v 1.22 2000/03/30 23:14:25 jason Exp $ */ /* * Invertex AEON / Hi/fn 7751 driver @@ -104,7 +104,7 @@ struct hifn_stats { u_int32_t hst_opackets; u_int32_t hst_invalid; u_int32_t hst_nomem; -} hifnstats = { 0, 0, 0, 0, 0, 0 }; +} hifnstats; int hifn_probe(parent, match, aux) @@ -1244,6 +1244,13 @@ hifn_intr(arg) return (1); } +/* + * Allocate a new 'session' and return an encoded session id. 'sidp' + * contains our registration id, and should contain an encoded session + * id on successful allocation. + * XXX Mac and encrypt keys should be sent to context ram and should + * XXX maintain some sort of state. + */ int hifn_newsession(sidp, cri) u_int32_t *sidp; @@ -1288,6 +1295,11 @@ hifn_newsession(sidp, cri) return (0); } +/* + * Deallocate a session. + * XXX this routine should run a zero'd mac/encrypt key into context ram. + * XXX to blow away any keys already stored there. + */ int hifn_freesession(sid) u_int32_t sid;