diff options
Diffstat (limited to 'drivers/net/stmmac/common.h')
-rw-r--r-- | drivers/net/stmmac/common.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/drivers/net/stmmac/common.h b/drivers/net/stmmac/common.h index 2a58172e986a..144f76fd3e39 100644 --- a/drivers/net/stmmac/common.h +++ b/drivers/net/stmmac/common.h | |||
@@ -22,8 +22,26 @@ | |||
22 | Author: Giuseppe Cavallaro <peppe.cavallaro@st.com> | 22 | Author: Giuseppe Cavallaro <peppe.cavallaro@st.com> |
23 | *******************************************************************************/ | 23 | *******************************************************************************/ |
24 | 24 | ||
25 | #include "descs.h" | ||
26 | #include <linux/netdevice.h> | 25 | #include <linux/netdevice.h> |
26 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) | ||
27 | #define STMMAC_VLAN_TAG_USED | ||
28 | #include <linux/if_vlan.h> | ||
29 | #endif | ||
30 | |||
31 | #include "descs.h" | ||
32 | |||
33 | #undef CHIP_DEBUG_PRINT | ||
34 | /* Turn-on extra printk debug for MAC core, dma and descriptors */ | ||
35 | /* #define CHIP_DEBUG_PRINT */ | ||
36 | |||
37 | #ifdef CHIP_DEBUG_PRINT | ||
38 | #define CHIP_DBG(fmt, args...) printk(fmt, ## args) | ||
39 | #else | ||
40 | #define CHIP_DBG(fmt, args...) do { } while (0) | ||
41 | #endif | ||
42 | |||
43 | #undef FRAME_FILTER_DEBUG | ||
44 | /* #define FRAME_FILTER_DEBUG */ | ||
27 | 45 | ||
28 | struct stmmac_extra_stats { | 46 | struct stmmac_extra_stats { |
29 | /* Transmit errors */ | 47 | /* Transmit errors */ |
@@ -231,3 +249,4 @@ extern void stmmac_set_mac_addr(unsigned long ioaddr, u8 addr[6], | |||
231 | unsigned int high, unsigned int low); | 249 | unsigned int high, unsigned int low); |
232 | extern void stmmac_get_mac_addr(unsigned long ioaddr, unsigned char *addr, | 250 | extern void stmmac_get_mac_addr(unsigned long ioaddr, unsigned char *addr, |
233 | unsigned int high, unsigned int low); | 251 | unsigned int high, unsigned int low); |
252 | extern void dwmac_dma_flush_tx_fifo(unsigned long ioaddr); | ||