summaryrefslogtreecommitdiff
path: root/sys/dev/pci/hifn7751var.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-02-17 16:48:23 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-02-17 16:48:23 +0000
commitc217fded180b300fe4b23aa6d85051a2da519de8 (patch)
tree401210e0a3bd67561472235641cbaad6e7741612 /sys/dev/pci/hifn7751var.h
parent9e11ca43e970ad7b99211258ca4f0a4c7e105888 (diff)
whitespace, typos, and compression structure defns
Diffstat (limited to 'sys/dev/pci/hifn7751var.h')
-rw-r--r--sys/dev/pci/hifn7751var.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/hifn7751var.h b/sys/dev/pci/hifn7751var.h
index c4a4e0025ad..31afba74e7c 100644
--- a/sys/dev/pci/hifn7751var.h
+++ b/sys/dev/pci/hifn7751var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751var.h,v 1.46 2003/01/05 20:07:44 deraadt Exp $ */
+/* $OpenBSD: hifn7751var.h,v 1.47 2003/02/17 16:48:22 jason Exp $ */
/*
* Invertex AEON / Hifn 7751 driver
@@ -107,6 +107,11 @@ struct hifn_session {
u_int8_t hs_iv[HIFN_IV_LENGTH];
};
+/* We use a state machine 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 */
+
#define HIFN_RING_SYNC(sc, r, i, f) \
bus_dmamap_sync((sc)->sc_dmat, (sc)->sc_dmamap, \
offsetof(struct hifn_dma, r[i]), sizeof(struct hifn_desc), (f))
@@ -126,11 +131,6 @@ struct hifn_session {
offsetof(struct hifn_dma, result_bufs[(i)][0]), \
HIFN_MAX_RESULT, (f))
-/* 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.
*/