diff options
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/common.h | 12 | ||||
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h | 17 | ||||
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/mmc.h | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac.h | 10 |
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 { | |||
451 | struct mac_device_info *dwmac1000_setup(void __iomem *ioaddr); | 451 | struct mac_device_info *dwmac1000_setup(void __iomem *ioaddr); |
452 | struct mac_device_info *dwmac100_setup(void __iomem *ioaddr); | 452 | struct mac_device_info *dwmac100_setup(void __iomem *ioaddr); |
453 | 453 | ||
454 | extern void stmmac_set_mac_addr(void __iomem *ioaddr, u8 addr[6], | 454 | void stmmac_set_mac_addr(void __iomem *ioaddr, u8 addr[6], |
455 | unsigned int high, unsigned int low); | 455 | unsigned int high, unsigned int low); |
456 | extern void stmmac_get_mac_addr(void __iomem *ioaddr, unsigned char *addr, | 456 | void 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 | ||
459 | extern void stmmac_set_mac(void __iomem *ioaddr, bool enable); | 459 | void stmmac_set_mac(void __iomem *ioaddr, bool enable); |
460 | 460 | ||
461 | extern void dwmac_dma_flush_tx_fifo(void __iomem *ioaddr); | 461 | void dwmac_dma_flush_tx_fifo(void __iomem *ioaddr); |
462 | extern const struct stmmac_ring_mode_ops ring_mode_ops; | 462 | extern const struct stmmac_ring_mode_ops ring_mode_ops; |
463 | extern const struct stmmac_chain_mode_ops chain_mode_ops; | 463 | extern 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 | ||
107 | extern void dwmac_enable_dma_transmission(void __iomem *ioaddr); | 107 | void dwmac_enable_dma_transmission(void __iomem *ioaddr); |
108 | extern void dwmac_enable_dma_irq(void __iomem *ioaddr); | 108 | void dwmac_enable_dma_irq(void __iomem *ioaddr); |
109 | extern void dwmac_disable_dma_irq(void __iomem *ioaddr); | 109 | void dwmac_disable_dma_irq(void __iomem *ioaddr); |
110 | extern void dwmac_dma_start_tx(void __iomem *ioaddr); | 110 | void dwmac_dma_start_tx(void __iomem *ioaddr); |
111 | extern void dwmac_dma_stop_tx(void __iomem *ioaddr); | 111 | void dwmac_dma_stop_tx(void __iomem *ioaddr); |
112 | extern void dwmac_dma_start_rx(void __iomem *ioaddr); | 112 | void dwmac_dma_start_rx(void __iomem *ioaddr); |
113 | extern void dwmac_dma_stop_rx(void __iomem *ioaddr); | 113 | void dwmac_dma_stop_rx(void __iomem *ioaddr); |
114 | extern int dwmac_dma_interrupt(void __iomem *ioaddr, | 114 | int 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 | ||
131 | extern void dwmac_mmc_ctrl(void __iomem *ioaddr, unsigned int mode); | 131 | void dwmac_mmc_ctrl(void __iomem *ioaddr, unsigned int mode); |
132 | extern void dwmac_mmc_intr_all_mask(void __iomem *ioaddr); | 132 | void dwmac_mmc_intr_all_mask(void __iomem *ioaddr); |
133 | extern void dwmac_mmc_read(void __iomem *ioaddr, struct stmmac_counters *mmc); | 133 | void 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 | ||
111 | extern int phyaddr; | 111 | extern int phyaddr; |
112 | 112 | ||
113 | extern int stmmac_mdio_unregister(struct net_device *ndev); | 113 | int stmmac_mdio_unregister(struct net_device *ndev); |
114 | extern int stmmac_mdio_register(struct net_device *ndev); | 114 | int stmmac_mdio_register(struct net_device *ndev); |
115 | extern void stmmac_set_ethtool_ops(struct net_device *netdev); | 115 | void stmmac_set_ethtool_ops(struct net_device *netdev); |
116 | extern const struct stmmac_desc_ops enh_desc_ops; | 116 | extern const struct stmmac_desc_ops enh_desc_ops; |
117 | extern const struct stmmac_desc_ops ndesc_ops; | 117 | extern const struct stmmac_desc_ops ndesc_ops; |
118 | extern const struct stmmac_hwtimestamp stmmac_ptp; | 118 | extern const struct stmmac_hwtimestamp stmmac_ptp; |
119 | extern int stmmac_ptp_register(struct stmmac_priv *priv); | 119 | int stmmac_ptp_register(struct stmmac_priv *priv); |
120 | extern void stmmac_ptp_unregister(struct stmmac_priv *priv); | 120 | void stmmac_ptp_unregister(struct stmmac_priv *priv); |
121 | int stmmac_freeze(struct net_device *ndev); | 121 | int stmmac_freeze(struct net_device *ndev); |
122 | int stmmac_restore(struct net_device *ndev); | 122 | int stmmac_restore(struct net_device *ndev); |
123 | int stmmac_resume(struct net_device *ndev); | 123 | int stmmac_resume(struct net_device *ndev); |