summaryrefslogtreecommitdiffstats
path: root/sys/dev/txp
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2011-01-12 19:53:56 +0000
committermdf <mdf@FreeBSD.org>2011-01-12 19:53:56 +0000
commit8045b08e4df0219c258a95afc6a654c8ba4f3494 (patch)
tree8a1b3ef398eb3f730dd98cd8346c8e47be7d3821 /sys/dev/txp
parent5e41205b166387321bf83101cb158e537c71dc58 (diff)
downloadFreeBSD-src-8045b08e4df0219c258a95afc6a654c8ba4f3494.zip
FreeBSD-src-8045b08e4df0219c258a95afc6a654c8ba4f3494.tar.gz
sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly.
Commit the rest of the devices.
Diffstat (limited to 'sys/dev/txp')
-rw-r--r--sys/dev/txp/if_txp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/txp/if_txp.c b/sys/dev/txp/if_txp.c
index 9396f4d..52d5c5f 100644
--- a/sys/dev/txp/if_txp.c
+++ b/sys/dev/txp/if_txp.c
@@ -2859,7 +2859,10 @@ txp_stats_update(struct txp_softc *sc, struct txp_rsp_desc *rsp)
#define TXP_SYSCTL_STAT_ADD32(c, h, n, p, d) \
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
-#if __FreeBSD_version > 800000
+#if __FreeBSD_version >= 900030
+#define TXP_SYSCTL_STAT_ADD64(c, h, n, p, d) \
+ SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
+#elif __FreeBSD_version > 800000
#define TXP_SYSCTL_STAT_ADD64(c, h, n, p, d) \
SYSCTL_ADD_QUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
#else
OpenPOWER on IntegriCloud