diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-05-13 01:20:03 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-05-13 01:20:03 +0000 |
commit | 8e5a89c3798af4f4558df82e55d42d8c3e8f3f7e (patch) | |
tree | 3107881822ff44b13b0f4ac16438d007a03c31dc /sys/dev/pci/ubsecvar.h | |
parent | 7279f811420d45cc0f64561ac972c426d8f2d41e (diff) |
Initial support for Broadcom 5820, which is very much like the 5805 except
that the packet context structure for ipsec has changed (added two fields
and, annoyingly, rearranged several of them). The MCR2 operations (only
RNG is used at this point) are supported, too.
Diffstat (limited to 'sys/dev/pci/ubsecvar.h')
-rw-r--r-- | sys/dev/pci/ubsecvar.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/pci/ubsecvar.h b/sys/dev/pci/ubsecvar.h index dc6c951de7e..7fc851e065b 100644 --- a/sys/dev/pci/ubsecvar.h +++ b/sys/dev/pci/ubsecvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ubsecvar.h,v 1.12 2001/01/29 00:39:21 jason Exp $ */ +/* $OpenBSD: ubsecvar.h,v 1.13 2001/05/13 01:20:02 jason Exp $ */ /* * Copyright (c) 2000 Theo de Raadt @@ -33,7 +33,7 @@ struct ubsec_softc { bus_space_handle_t sc_sh; /* memory handle */ bus_space_tag_t sc_st; /* memory tag */ bus_dma_tag_t sc_dmat; /* dma tag */ - int sc_5601; /* device is 5601 */ + int sc_flags; /* device specific flags */ u_int32_t sc_statmask; /* interrupt status mask */ int32_t sc_cid; /* crypto tag */ SIMPLEQ_HEAD(,ubsec_q) sc_queue; /* packet queue, mcr1 */ @@ -47,6 +47,9 @@ struct ubsec_softc { struct timeout sc_rngto; /* rng timeout */ }; +#define UBS_FLAGS_KEY 0x01 /* has key accelerator */ +#define UBS_FLAGS_LONGCTX 0x02 /* uses long ipsec ctx */ + struct ubsec_q { SIMPLEQ_ENTRY(ubsec_q) q_next; struct cryptop *q_crp; @@ -54,6 +57,7 @@ struct ubsec_q { struct ubsec_pktbuf q_srcpkt[MAX_SCATTER-1]; struct ubsec_pktbuf q_dstpkt[MAX_SCATTER-1]; struct ubsec_pktctx q_ctx; + struct ubsec_pktctx_long q_ctxl; struct ubsec_softc *q_sc; struct mbuf *q_src_m, *q_dst_m; |