summaryrefslogtreecommitdiff
path: root/sys/dev/pci/hifn7751var.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-02-24 20:36:03 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-02-24 20:36:03 +0000
commitdfc64e5da469f1d05787a0566fc2e44586c00847 (patch)
tree9782c8107db2ae420b3a0418b4a7a1501bfb2351 /sys/dev/pci/hifn7751var.h
parent454ca876825bec630c948b12a1670566a9270042 (diff)
Add support for LZS compression (only usable by ipcomp at the moment)
Diffstat (limited to 'sys/dev/pci/hifn7751var.h')
-rw-r--r--sys/dev/pci/hifn7751var.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pci/hifn7751var.h b/sys/dev/pci/hifn7751var.h
index 31afba74e7c..8224689a7fd 100644
--- a/sys/dev/pci/hifn7751var.h
+++ b/sys/dev/pci/hifn7751var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751var.h,v 1.47 2003/02/17 16:48:22 jason Exp $ */
+/* $OpenBSD: hifn7751var.h,v 1.48 2003/02/24 20:36:02 jason Exp $ */
/*
* Invertex AEON / Hifn 7751 driver
@@ -183,7 +183,7 @@ struct hifn_softc {
READ_REG_1(sc, HIFN_1_7811_MIPSRST) & ~(v))
/*
- * hifn_command_t
+ * struct hifn_command
*
* This is the control structure used to pass commands to hifn_encrypt().
*
@@ -249,7 +249,7 @@ struct hifn_softc {
*/
struct hifn_command {
u_int16_t session_num;
- u_int16_t base_masks, cry_masks, mac_masks;
+ u_int16_t base_masks, cry_masks, mac_masks, comp_masks;
u_int8_t iv[HIFN_IV_LENGTH], *ck, mac[HIFN_MAC_KEY_LENGTH];
int cklen;
int sloplen, slopidx;
@@ -268,7 +268,9 @@ struct hifn_command {
struct hifn_softc *softc;
struct cryptop *crp;
- struct cryptodesc *enccrd, *maccrd;
+ struct cryptodesc *enccrd, *maccrd, *compcrd;
+ void (*cmd_callback)(struct hifn_softc *, struct hifn_command *,
+ u_int8_t *);
};
/*