summaryrefslogtreecommitdiff
path: root/include/tsec.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-01-11 22:41:20 -0800
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 12:22:59 -0600
commite677da9723ede30b3072f8b8e290e9d8daea8642 (patch)
tree768a8aa76476a5b3b604a41ad2c1c53a2637339f /include/tsec.h
parent362b123f473cbc72d43720f9245c68d174439310 (diff)
downloadu-boot-e677da9723ede30b3072f8b8e290e9d8daea8642.tar.gz
u-boot-e677da9723ede30b3072f8b8e290e9d8daea8642.tar.bz2
u-boot-e677da9723ede30b3072f8b8e290e9d8daea8642.zip
net: tsec: Move rxbd and txbd to struct tsec_private
rxbd and txbd are declared static with 8 byte alignment requirement, but they can be put into struct tsec_private as well and are natually aligned to 8 byte. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/tsec.h')
-rw-r--r--include/tsec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/tsec.h b/include/tsec.h
index 023f095427..72002296e6 100644
--- a/include/tsec.h
+++ b/include/tsec.h
@@ -387,7 +387,11 @@ struct tsec {
#define TSEC_REDUCED (1 << 1) /* MAC-PHY interface uses RGMII */
#define TSEC_SGMII (1 << 2) /* MAC-PHY interface uses SGMII */
+#define TX_BUF_CNT 2
+
struct tsec_private {
+ struct txbd8 __iomem txbd[TX_BUF_CNT];
+ struct rxbd8 __iomem rxbd[PKTBUFSRX];
struct tsec __iomem *regs;
struct tsec_mii_mng __iomem *phyregs_sgmii;
struct phy_device *phydev;