aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ti/cpsw_priv.h
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2019-04-26 20:12:41 +0300
committerDavid S. Miller <davem@davemloft.net>2019-04-27 17:11:49 -0400
commitcfc08345ec2201a67d5511fa90831b79f5183dda (patch)
treea907bb8504753ac3e5c2ea023750b26c9857b3a4 /drivers/net/ethernet/ti/cpsw_priv.h
parentnet: ethernet: ti: cpsw: introduce mac sl module api (diff)
downloadlinux-dev-cfc08345ec2201a67d5511fa90831b79f5183dda.tar.xz
linux-dev-cfc08345ec2201a67d5511fa90831b79f5183dda.zip
net: ethernet: ti: cpsw: switch to use mac sl api
Switch CPSW driver to use the new MAC SL API. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/ti/cpsw_priv.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/ethernet/ti/cpsw_priv.h b/drivers/net/ethernet/ti/cpsw_priv.h
index 53bd6e020f94..fc1a8dee391e 100644
--- a/drivers/net/ethernet/ti/cpsw_priv.h
+++ b/drivers/net/ethernet/ti/cpsw_priv.h
@@ -269,19 +269,6 @@ struct cpsw_host_regs {
u32 cpdma_rx_chan_map;
};
-struct cpsw_sliver_regs {
- u32 id_ver;
- u32 mac_control;
- u32 mac_status;
- u32 soft_reset;
- u32 rx_maxlen;
- u32 __reserved_0;
- u32 rx_pause;
- u32 tx_pause;
- u32 __reserved_1;
- u32 rx_pri_map;
-};
-
struct cpsw_hw_stats {
u32 rxgoodframes;
u32 rxbroadcastframes;
@@ -344,13 +331,13 @@ struct cpsw_platform_data {
struct cpsw_slave {
void __iomem *regs;
- struct cpsw_sliver_regs __iomem *sliver;
int slave_num;
u32 mac_control;
struct cpsw_slave_data *data;
struct phy_device *phy;
struct net_device *ndev;
u32 port_vlan;
+ struct cpsw_sl *mac_sl;
};
static inline u32 slave_read(struct cpsw_slave *slave, u32 offset)