aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6xxx.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2015-06-20 18:42:30 +0200
committerDavid S. Miller <davem@davemloft.net>2015-06-23 06:33:40 -0700
commit80c4627b2719da6b90891d8f83251528416900e7 (patch)
treea629596d0479d45f91c8ab0366b4ca1878118ebe /drivers/net/dsa/mv88e6xxx.h
parentdsa: mv88e6xxx: Add debugfs interface for ATU (diff)
downloadlinux-dev-80c4627b2719da6b90891d8f83251528416900e7.tar.xz
linux-dev-80c4627b2719da6b90891d8f83251528416900e7.zip
dsa: mv88x6xxx: Refactor getting a single statistic
Move the code to retrieve a statistics counter into a function of its own, so it can later be reused. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/dsa/mv88e6xxx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h
index 8b9c76b66ddb..7cccff202586 100644
--- a/drivers/net/dsa/mv88e6xxx.h
+++ b/drivers/net/dsa/mv88e6xxx.h
@@ -11,6 +11,10 @@
#ifndef __MV88E6XXX_H
#define __MV88E6XXX_H
+#ifndef UINT64_MAX
+#define UINT64_MAX (u64)(~((u64)0))
+#endif
+
#define SMI_CMD 0x00
#define SMI_CMD_BUSY BIT(15)
#define SMI_CMD_CLAUSE_22 BIT(12)