diff options
-rw-r--r-- | sys/dev/pci/hifn7751.c | 12 | ||||
-rw-r--r-- | sys/dev/pci/hifn7751var.h | 16 |
2 files changed, 15 insertions, 13 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c index f42a7e84079..4d9709650ff 100644 --- a/sys/dev/pci/hifn7751.c +++ b/sys/dev/pci/hifn7751.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hifn7751.c,v 1.90 2001/08/08 03:46:44 jason Exp $ */ +/* $OpenBSD: hifn7751.c,v 1.91 2001/08/11 06:40:35 jason Exp $ */ /* * Invertex AEON / Hifn 7751 driver @@ -104,15 +104,7 @@ int hifn_init_pubrng __P((struct hifn_softc *)); void hifn_rng __P((void *)); void hifn_tick __P((void *)); -struct hifn_stats { - u_int64_t hst_ibytes; - u_int64_t hst_obytes; - u_int32_t hst_ipackets; - u_int32_t hst_opackets; - u_int32_t hst_invalid; - u_int32_t hst_nomem; - u_int32_t hst_abort; -} hifnstats; +struct hifn_stats hifnstats; int hifn_probe(parent, match, aux) diff --git a/sys/dev/pci/hifn7751var.h b/sys/dev/pci/hifn7751var.h index 0aa10127bea..239a2c64830 100644 --- a/sys/dev/pci/hifn7751var.h +++ b/sys/dev/pci/hifn7751var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hifn7751var.h,v 1.31 2001/08/08 03:46:44 jason Exp $ */ +/* $OpenBSD: hifn7751var.h,v 1.32 2001/08/11 06:40:35 jason Exp $ */ /* * Invertex AEON / Hifn 7751 driver @@ -39,6 +39,8 @@ #ifndef __HIFN7751VAR_H__ #define __HIFN7751VAR_H__ +#ifdef _KERNEL + /* * Some configurable values for the driver */ @@ -227,8 +229,6 @@ struct hifn_command { #define HIFN_CRYPTO_BAD_INPUT (-1) #define HIFN_CRYPTO_RINGS_FULL (-2) -#ifdef _KERNEL - /************************************************************************** * * Function: hifn_crypto @@ -263,4 +263,14 @@ struct hifn_command { #endif /* _KERNEL */ +struct hifn_stats { + u_int64_t hst_ibytes; + u_int64_t hst_obytes; + u_int32_t hst_ipackets; + u_int32_t hst_opackets; + u_int32_t hst_invalid; + u_int32_t hst_nomem; + u_int32_t hst_abort; +}; + #endif /* __HIFN7751VAR_H__ */ |