drivers: net: stmmac: reworking the PCS code.
The 3.xx and 4.xx synopsys gmacs have a very similar PCS embedded module and they share almost the same registers: for example: AN_Control, AN_Status, AN_Advertisement, AN_Link_Partner_Ability, AN_Expansion, TBI_Extended_Status. Just the RGMII/SMII Control/Status register differs. So This patch aims to reorganize and enhance the PCS support. It removes the existent support from the dwmac1000/dwmac4_core.c moving basic PCS functions inside a new file called: stmmac_pcs.h. The patch also reviews the available APIs to be better shared among different hardware and easily enhanced to support new features. Signed-off-by:Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- Documentation/networking/stmmac.txt 1 addition, 0 deletionsDocumentation/networking/stmmac.txt
- drivers/net/ethernet/stmicro/stmmac/common.h 11 additions, 5 deletionsdrivers/net/ethernet/stmicro/stmmac/common.h
- drivers/net/ethernet/stmicro/stmmac/dwmac1000.h 17 additions, 39 deletionsdrivers/net/ethernet/stmicro/stmmac/dwmac1000.h
- drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 51 additions, 59 deletionsdrivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
- drivers/net/ethernet/stmicro/stmmac/dwmac4.h 19 additions, 15 deletionsdrivers/net/ethernet/stmicro/stmmac/dwmac4.h
- drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 44 additions, 29 deletionsdrivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
- drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 38 additions, 16 deletionsdrivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 10 additions, 2 deletionsdrivers/net/ethernet/stmicro/stmmac/stmmac_main.c
- drivers/net/ethernet/stmicro/stmmac/stmmac_pcs.h 159 additions, 0 deletionsdrivers/net/ethernet/stmicro/stmmac/stmmac_pcs.h
Loading
Please register or sign in to comment