diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2000-03-29 20:55:00 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2000-03-29 20:55:00 +0000 |
commit | 3ab02fc81d90a0157cc020b0c61660faa072e7ce (patch) | |
tree | fe84dab83fd894757e1c8c629c78ab373082a445 /sys/dev/pci/hifn7751var.h | |
parent | e23adf48556def630d861e7e0f95b9e7e71abc70 (diff) |
Long over due checkpoint:
o register the hifn as handling DES and 3DES (no md5 or sha1 yet) depending
on whether the board is unlocked (none, half, or full)
o Fix many KNF nits
o print the amount of memory correctly and don't print the number of sessions
o set command and result buffer sizes correctly
o reclaim the descriptor rings so new commands and buffers can be added
o remove some bogus checks on the command buffer
o add new variables mac_process_len and crypt_process_len to hifn_command_t
o fix calculation in hifn_mbuf to generate the pa/len array for src/dst
o simplify the code for setting up the jump descriptor
o rework the hifn_intr routine to interrupt at IPL_IMP and simplify it's
results processing
o more to come...
Diffstat (limited to 'sys/dev/pci/hifn7751var.h')
-rw-r--r-- | sys/dev/pci/hifn7751var.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/hifn7751var.h b/sys/dev/pci/hifn7751var.h index f50bf7acd11..4b758174348 100644 --- a/sys/dev/pci/hifn7751var.h +++ b/sys/dev/pci/hifn7751var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hifn7751var.h,v 1.6 2000/03/22 15:49:51 jason Exp $ */ +/* $OpenBSD: hifn7751var.h,v 1.7 2000/03/29 20:54:59 jason Exp $ */ /* * Invertex AEON / Hi/fn 7751 driver @@ -186,8 +186,8 @@ typedef struct hifn_command { u_short session_num; - u_char *iv, *ck, *mac; - int iv_len, ck_len, mac_len; + u_char iv[HIFN_IV_LENGTH], *ck, *mac; + int ck_len, mac_len; struct mbuf *src_m; long src_packp[MAX_SCATTER]; @@ -201,8 +201,8 @@ typedef struct hifn_command { int dst_npa; int dst_l; - u_short mac_header_skip; - u_short crypt_header_skip; + u_short mac_header_skip, mac_process_len; + u_short crypt_header_skip, crypt_process_len; void (*dest_ready_callback)(struct hifn_command *); u_long private_data; |