diff options
author | Giuseppe CAVALLARO <peppe.cavallaro@st.com> | 2010-04-13 16:21:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-14 07:49:51 -0400 |
commit | e326e8503dfc73e4f79d488a78ee3d7cde10081f (patch) | |
tree | 04f0c29dfd48edf2de175eec64b24c7164e88e86 /include | |
parent | 688911c2f5e5e4f33b5a1c32839184f1fdf814ee (diff) |
stmmac: new descriptor field for the driver's platform
The new enh_desc is used for selecting the enhanced descriptors
structure. There are several scenarios; some chips (mac10/100
or gmac) want to use the enhanced descriptors; others want the normal
ones.
For example, on ST platforms: MAC10/100 uses the normal desc structure
and the GMAC uses the enhanced one.
It can be useful to get this information from the platform.
This could also be decided at run-time looking at the chip's ID number;
but it could happen that chips with the same ID want to use different
descriptor structure.
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/stmmac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 32bfd1a8a48d..632ff7c03280 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h | |||
@@ -33,6 +33,7 @@ struct plat_stmmacenet_data { | |||
33 | int bus_id; | 33 | int bus_id; |
34 | int pbl; | 34 | int pbl; |
35 | int has_gmac; | 35 | int has_gmac; |
36 | int enh_desc; | ||
36 | void (*fix_mac_speed)(void *priv, unsigned int speed); | 37 | void (*fix_mac_speed)(void *priv, unsigned int speed); |
37 | void (*bus_setup)(unsigned long ioaddr); | 38 | void (*bus_setup)(unsigned long ioaddr); |
38 | #ifdef CONFIG_STM_DRIVERS | 39 | #ifdef CONFIG_STM_DRIVERS |