summaryrefslogtreecommitdiffstats
path: root/include/linux/stmmac.h
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>2012-05-13 22:18:42 +0000
committerDavid S. Miller <davem@davemloft.net>2012-05-14 18:53:19 -0400
commitb9cde0a8be876c680cc549daa6246256864473fb (patch)
treef9c3c69c40ecd673a77148ec0712d1f2e3f2309e /include/linux/stmmac.h
parentcffb13f4d6fb5976f907c37e7fc7f6e6acb10d5f (diff)
downloadlinux-b9cde0a8be876c680cc549daa6246256864473fb.tar.gz
linux-b9cde0a8be876c680cc549daa6246256864473fb.tar.bz2
linux-b9cde0a8be876c680cc549daa6246256864473fb.zip
stmmac: add mixed burst for DMA
In mixed burst (MB) mode, the AHB master always initiates the bursts with fixed-size when the DMA requests transfers of size less than or equal to 16 beats. This patch adds the MB support and the flag that can be passed from the platform to select it. MB mode can also give some benefits in terms of performances on some platforms. v2: fixed Coding Style 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 f85c93d6e6da..b69bdb1e08b6 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -86,6 +86,7 @@ struct stmmac_mdio_bus_data {
struct stmmac_dma_cfg {
int pbl;
int fixed_burst;
+ int mixed_burst;
int burst_len;
};