aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ioat/ioat_hw.h
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2015-10-22 04:33:05 +0000
committerConrad Meyer <cem@FreeBSD.org>2015-10-22 04:33:05 +0000
commitb81eee4a223460fc326de905c6d127bc985078c4 (patch)
tree1bd4580ebf4309c151ad38d3fd2bbbacb088eb6d /sys/dev/ioat/ioat_hw.h
parent01d591d45b2f6f21787e93f0e57b6a151d4769db (diff)
downloadsrc-b81eee4a223460fc326de905c6d127bc985078c4.tar.gz
src-b81eee4a223460fc326de905c6d127bc985078c4.zip
ioat: Define IOAT_XFERCAP_VALID_MASK and use in ioat_read_xfercap
Instead of ANDing a magic constant later. Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=289732
Diffstat (limited to 'sys/dev/ioat/ioat_hw.h')
-rw-r--r--sys/dev/ioat/ioat_hw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ioat/ioat_hw.h b/sys/dev/ioat/ioat_hw.h
index 8e9952af184f..f248a18fc842 100644
--- a/sys/dev/ioat/ioat_hw.h
+++ b/sys/dev/ioat/ioat_hw.h
@@ -34,6 +34,8 @@ __FBSDID("$FreeBSD$");
#define IOAT_CHANCNT_OFFSET 0x00
#define IOAT_XFERCAP_OFFSET 0x01
+/* Only bits [4:0] are valid. */
+#define IOAT_XFERCAP_VALID_MASK 0x1f
#define IOAT_GENCTRL_OFFSET 0x02