diff options
Diffstat (limited to 'sys/dev/pci/hifn7751var.h')
-rw-r--r-- | sys/dev/pci/hifn7751var.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/pci/hifn7751var.h b/sys/dev/pci/hifn7751var.h index 264b81d4a6b..c1e718b2e78 100644 --- a/sys/dev/pci/hifn7751var.h +++ b/sys/dev/pci/hifn7751var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hifn7751var.h,v 1.33 2001/08/17 17:37:12 ben Exp $ */ +/* $OpenBSD: hifn7751var.h,v 1.34 2001/08/22 16:34:47 jason Exp $ */ /* * Invertex AEON / Hifn 7751 driver @@ -97,11 +97,16 @@ struct hifn_dma { }; struct hifn_session { - int hs_flags; + int hs_state; int hs_prev_op; /* XXX collapse into hs_flags? */ u_int8_t hs_iv[HIFN_IV_LENGTH]; }; +/* We use a state machine to on sessions */ +#define HS_STATE_FREE 0 /* unused session entry */ +#define HS_STATE_USED 1 /* allocated, but key not on card */ +#define HS_STATE_KEY 2 /* allocated and key is on card */ + /* * Holds data specific to a single HIFN board. */ |