aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/common.h12
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h17
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/mmc.h6
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac.h10
4 files changed, 22 insertions, 23 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h
index 7eb8babed2cb..fc94f202a43e 100644
--- a/drivers/net/ethernet/stmicro/stmmac/common.h
+++ b/drivers/net/ethernet/stmicro/stmmac/common.h
@@ -451,14 +451,14 @@ struct mac_device_info {
451struct mac_device_info *dwmac1000_setup(void __iomem *ioaddr); 451struct mac_device_info *dwmac1000_setup(void __iomem *ioaddr);
452struct mac_device_info *dwmac100_setup(void __iomem *ioaddr); 452struct mac_device_info *dwmac100_setup(void __iomem *ioaddr);
453 453
454extern void stmmac_set_mac_addr(void __iomem *ioaddr, u8 addr[6], 454void stmmac_set_mac_addr(void __iomem *ioaddr, u8 addr[6],
455 unsigned int high, unsigned int low); 455 unsigned int high, unsigned int low);
456extern void stmmac_get_mac_addr(void __iomem *ioaddr, unsigned char *addr, 456void stmmac_get_mac_addr(void __iomem *ioaddr, unsigned char *addr,
457 unsigned int high, unsigned int low); 457 unsigned int high, unsigned int low);
458 458
459extern void stmmac_set_mac(void __iomem *ioaddr, bool enable); 459void stmmac_set_mac(void __iomem *ioaddr, bool enable);
460 460
461extern void dwmac_dma_flush_tx_fifo(void __iomem *ioaddr); 461void dwmac_dma_flush_tx_fifo(void __iomem *ioaddr);
462extern const struct stmmac_ring_mode_ops ring_mode_ops; 462extern const struct stmmac_ring_mode_ops ring_mode_ops;
463extern const struct stmmac_chain_mode_ops chain_mode_ops; 463extern const struct stmmac_chain_mode_ops chain_mode_ops;
464 464
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h b/drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h
index 8e5662ce488b..def266da55db 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h
@@ -104,14 +104,13 @@
104#define DMA_STATUS_TI 0x00000001 /* Transmit Interrupt */ 104#define DMA_STATUS_TI 0x00000001 /* Transmit Interrupt */
105#define DMA_CONTROL_FTF 0x00100000 /* Flush transmit FIFO */ 105#define DMA_CONTROL_FTF 0x00100000 /* Flush transmit FIFO */
106 106
107extern void dwmac_enable_dma_transmission(void __iomem *ioaddr); 107void dwmac_enable_dma_transmission(void __iomem *ioaddr);
108extern void dwmac_enable_dma_irq(void __iomem *ioaddr); 108void dwmac_enable_dma_irq(void __iomem *ioaddr);
109extern void dwmac_disable_dma_irq(void __iomem *ioaddr); 109void dwmac_disable_dma_irq(void __iomem *ioaddr);
110extern void dwmac_dma_start_tx(void __iomem *ioaddr); 110void dwmac_dma_start_tx(void __iomem *ioaddr);
111extern void dwmac_dma_stop_tx(void __iomem *ioaddr); 111void dwmac_dma_stop_tx(void __iomem *ioaddr);
112extern void dwmac_dma_start_rx(void __iomem *ioaddr); 112void dwmac_dma_start_rx(void __iomem *ioaddr);
113extern void dwmac_dma_stop_rx(void __iomem *ioaddr); 113void dwmac_dma_stop_rx(void __iomem *ioaddr);
114extern int dwmac_dma_interrupt(void __iomem *ioaddr, 114int dwmac_dma_interrupt(void __iomem *ioaddr, struct stmmac_extra_stats *x);
115 struct stmmac_extra_stats *x);
116 115
117#endif /* __DWMAC_DMA_H__ */ 116#endif /* __DWMAC_DMA_H__ */
diff --git a/drivers/net/ethernet/stmicro/stmmac/mmc.h b/drivers/net/ethernet/stmicro/stmmac/mmc.h
index 48ec001566b5..8607488cbcfc 100644
--- a/drivers/net/ethernet/stmicro/stmmac/mmc.h
+++ b/drivers/net/ethernet/stmicro/stmmac/mmc.h
@@ -128,8 +128,8 @@ struct stmmac_counters {
128 unsigned int mmc_rx_icmp_err_octets; 128 unsigned int mmc_rx_icmp_err_octets;
129}; 129};
130 130
131extern void dwmac_mmc_ctrl(void __iomem *ioaddr, unsigned int mode); 131void dwmac_mmc_ctrl(void __iomem *ioaddr, unsigned int mode);
132extern void dwmac_mmc_intr_all_mask(void __iomem *ioaddr); 132void dwmac_mmc_intr_all_mask(void __iomem *ioaddr);
133extern void dwmac_mmc_read(void __iomem *ioaddr, struct stmmac_counters *mmc); 133void dwmac_mmc_read(void __iomem *ioaddr, struct stmmac_counters *mmc);
134 134
135#endif /* __MMC_H__ */ 135#endif /* __MMC_H__ */
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
index f16a9bdf45bb..22f89ffdfd95 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
@@ -110,14 +110,14 @@ struct stmmac_priv {
110 110
111extern int phyaddr; 111extern int phyaddr;
112 112
113extern int stmmac_mdio_unregister(struct net_device *ndev); 113int stmmac_mdio_unregister(struct net_device *ndev);
114extern int stmmac_mdio_register(struct net_device *ndev); 114int stmmac_mdio_register(struct net_device *ndev);
115extern void stmmac_set_ethtool_ops(struct net_device *netdev); 115void stmmac_set_ethtool_ops(struct net_device *netdev);
116extern const struct stmmac_desc_ops enh_desc_ops; 116extern const struct stmmac_desc_ops enh_desc_ops;
117extern const struct stmmac_desc_ops ndesc_ops; 117extern const struct stmmac_desc_ops ndesc_ops;
118extern const struct stmmac_hwtimestamp stmmac_ptp; 118extern const struct stmmac_hwtimestamp stmmac_ptp;
119extern int stmmac_ptp_register(struct stmmac_priv *priv); 119int stmmac_ptp_register(struct stmmac_priv *priv);
120extern void stmmac_ptp_unregister(struct stmmac_priv *priv); 120void stmmac_ptp_unregister(struct stmmac_priv *priv);
121int stmmac_freeze(struct net_device *ndev); 121int stmmac_freeze(struct net_device *ndev);
122int stmmac_restore(struct net_device *ndev); 122int stmmac_restore(struct net_device *ndev);
123int stmmac_resume(struct net_device *ndev); 123int stmmac_resume(struct net_device *ndev);