mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
committed by
Joe Hershberger
parent
362b123f47
commit
e677da9723
@@ -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;
|
||||
|
Reference in New Issue
Block a user