summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-04-23 05:03:41 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-04-23 05:03:41 +0000
commit867d76536176279f454404264cf1d8711b742877 (patch)
treea138343fd86bd2ea790697e5f2e2645962c53554 /sys
parent5f26901cb1d06d6093c5f57ea4b9d7533a9784bd (diff)
freesession takes u_int64_t
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/hifn7751.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c
index 780f3fcce8a..c00b333b67e 100644
--- a/sys/dev/pci/hifn7751.c
+++ b/sys/dev/pci/hifn7751.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751.c,v 1.33 2000/04/19 00:10:35 deraadt Exp $ */
+/* $OpenBSD: hifn7751.c,v 1.34 2000/04/23 05:03:40 angelos Exp $ */
/*
* Invertex AEON / Hi/fn 7751 driver
@@ -90,7 +90,7 @@ int hifn_intr __P((void *));
u_int hifn_write_command __P((struct hifn_command *, u_int8_t *));
u_int32_t hifn_next_signature __P((u_int a, u_int cnt));
int hifn_newsession __P((u_int32_t *, struct cryptoini *));
-int hifn_freesession __P((u_int32_t));
+int hifn_freesession __P((u_int64_t));
int hifn_process __P((struct cryptop *));
void hifn_callback __P((struct hifn_softc *, struct hifn_command *, u_int8_t *));
int hifn_crypto __P((struct hifn_softc *, hifn_command_t *));
@@ -1084,11 +1084,12 @@ hifn_newsession(sidp, cri)
* XXX to blow away any keys already stored there.
*/
int
-hifn_freesession(sid)
- u_int32_t sid;
+hifn_freesession(tid)
+ u_int64_t tid;
{
struct hifn_softc *sc;
int card, session;
+ u_int32_t sid = (tid >> 31) & 0xffffffff;
card = HIFN_CARD(sid);
if (card >= hifn_cd.cd_ndevs || hifn_cd.cd_devs[card] == NULL)