summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2020-07-07 02:42:02 +0000
committerdlg <dlg@openbsd.org>2020-07-07 02:42:02 +0000
commit352d022a47f1d392e5bb7891bad285ba65f02d04 (patch)
treeabedc9f7bc60b559c79e129a2be87ae2900c1c27
parentadd kstat support for reading hardware counters. (diff)
downloadwireguard-openbsd-352d022a47f1d392e5bb7891bad285ba65f02d04.tar.xz
wireguard-openbsd-352d022a47f1d392e5bb7891bad285ba65f02d04.zip
remove some old code from a previous version of the kstat diff.
ixl(4) is only enabled on 64bit archs, so we don't need a 32bit fallback for the 48 and 64 bit counter reads.
-rw-r--r--sys/dev/pci/if_ixl.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/dev/pci/if_ixl.c b/sys/dev/pci/if_ixl.c
index c739b4e5291..7f19f7d22bc 100644
--- a/sys/dev/pci/if_ixl.c
+++ b/sys/dev/pci/if_ixl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ixl.c,v 1.60 2020/07/07 02:38:56 dlg Exp $ */
+/* $OpenBSD: if_ixl.c,v 1.61 2020/07/07 02:42:02 dlg Exp $ */
/*
* Copyright (c) 2013-2015, Intel Corporation
@@ -5021,26 +5021,6 @@ ixl_dmamem_free(struct ixl_softc *sc, struct ixl_dmamem *ixm)
#if NKSTAT > 0
-#if 0
-static uint64_t
-ixl_st64(struct ixl_softc *sc, bus_addr_t r)
-{
- uint32_t hi, ohi, lo;
-
- hi = ixl_rd(sc, r + 4);
- do {
- ohi = hi;
- lo = ixl_rd(sc, r);
- hi = ixl_rd(sc, r + 4);
- } while (__predict_false(ohi != hi));
-
- return (((uint64_t)hi << 32) | (uint64_t)lo);
-}
-#endif
-
-#define ixl_st32(_sc, _r) ixl_rd((_sc), (_r))
-#define ixl_st48(_sc, _r) ixl_st64((_sc), (_r))
-
CTASSERT(KSTAT_KV_U_NONE <= 0xffU);
CTASSERT(KSTAT_KV_U_PACKETS <= 0xffU);
CTASSERT(KSTAT_KV_U_BYTES <= 0xffU);