aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/stmmac.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r--include/linux/stmmac.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index bb5deb0feb6b..6f27d4f957bd 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -110,12 +110,34 @@ struct plat_stmmacenet_data {
110 int force_sf_dma_mode; 110 int force_sf_dma_mode;
111 int force_thresh_dma_mode; 111 int force_thresh_dma_mode;
112 int riwt_off; 112 int riwt_off;
113 int max_speed;
114 int maxmtu;
113 void (*fix_mac_speed)(void *priv, unsigned int speed); 115 void (*fix_mac_speed)(void *priv, unsigned int speed);
114 void (*bus_setup)(void __iomem *ioaddr); 116 void (*bus_setup)(void __iomem *ioaddr);
115 int (*init)(struct platform_device *pdev); 117 void *(*setup)(struct platform_device *pdev);
116 void (*exit)(struct platform_device *pdev); 118 void (*free)(struct platform_device *pdev, void *priv);
119 int (*init)(struct platform_device *pdev, void *priv);
120 void (*exit)(struct platform_device *pdev, void *priv);
117 void *custom_cfg; 121 void *custom_cfg;
118 void *custom_data; 122 void *custom_data;
119 void *bsp_priv; 123 void *bsp_priv;
120}; 124};
125
126/* of_data for SoC glue layer device tree bindings */
127
128struct stmmac_of_data {
129 int has_gmac;
130 int enh_desc;
131 int tx_coe;
132 int rx_coe;
133 int bugged_jumbo;
134 int pmt;
135 int riwt_off;
136 void (*fix_mac_speed)(void *priv, unsigned int speed);
137 void (*bus_setup)(void __iomem *ioaddr);
138 void *(*setup)(struct platform_device *pdev);
139 void (*free)(struct platform_device *pdev, void *priv);
140 int (*init)(struct platform_device *pdev, void *priv);
141 void (*exit)(struct platform_device *pdev, void *priv);
142};
121#endif 143#endif