aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/stmmac.h
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>2011-07-17 16:54:09 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-18 13:47:24 -0400
commit61b8013a114cb041db2c56f747953cac69637f26 (patch)
treeadc39f580015301e9be3e74bef360de8145512fd /include/linux/stmmac.h
parenteb0dc4bb2e22c04964d6e9545e86f629f117108b (diff)
stmmac: Allow SOCs to use Store forward mode eventhough tx_coe is 0. (V2)
This patch adds new field 'force_sf_dma_mode' to plat_stmmacenet_data struct to allow users to specify if they want to use force store forward eventhough tx_coe is not available in hw. without this flag stmmac driver will use cut-thru mode not use store-forward mode. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r--include/linux/stmmac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index 9529e49b038..05d775690b7 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -40,6 +40,7 @@ struct plat_stmmacenet_data {
40 int tx_coe; 40 int tx_coe;
41 int bugged_jumbo; 41 int bugged_jumbo;
42 int pmt; 42 int pmt;
43 int force_sf_dma_mode;
43 void (*fix_mac_speed)(void *priv, unsigned int speed); 44 void (*fix_mac_speed)(void *priv, unsigned int speed);
44 void (*bus_setup)(void __iomem *ioaddr); 45 void (*bus_setup)(void __iomem *ioaddr);
45 int (*init)(struct platform_device *pdev); 46 int (*init)(struct platform_device *pdev);