diff options
author | Sandeep Gopalpet <Sandeep.Kumar@freescale.com> | 2009-11-02 02:03:34 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-03 02:40:59 -0500 |
commit | 46ceb60ca80fa07703bc6eb8f4651f900dff5a82 (patch) | |
tree | 9bd694c3b1559cbd0fa72bff1f521ce4bcc95aa6 /drivers/net/gianfar_sysfs.c | |
parent | 2e0246c72fa2e2b61865a2d5aaff1cc9155b9447 (diff) |
gianfar: Add Multiple group Support
This patch introduces multiple group support for etsec2.0
devices.
Multiple group support is provided by mapping the set of enabled
queues to different groups and then programming the per group
regsiters imask, ievent, rstat, tstat.
The queues corresponding to a group are indicated by programming
isrg (interrupt steering) registers.
Signed-off-by: Sandeep Gopalpet <Sandeep.Kumar@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gianfar_sysfs.c')
-rw-r--r-- | drivers/net/gianfar_sysfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/gianfar_sysfs.c b/drivers/net/gianfar_sysfs.c index 4b726f61314e..3724835d2856 100644 --- a/drivers/net/gianfar_sysfs.c +++ b/drivers/net/gianfar_sysfs.c | |||
@@ -50,7 +50,7 @@ static ssize_t gfar_set_bd_stash(struct device *dev, | |||
50 | const char *buf, size_t count) | 50 | const char *buf, size_t count) |
51 | { | 51 | { |
52 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); | 52 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); |
53 | struct gfar __iomem *regs = priv->gfargrp.regs; | 53 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
54 | int new_setting = 0; | 54 | int new_setting = 0; |
55 | u32 temp; | 55 | u32 temp; |
56 | unsigned long flags; | 56 | unsigned long flags; |
@@ -105,7 +105,7 @@ static ssize_t gfar_set_rx_stash_size(struct device *dev, | |||
105 | const char *buf, size_t count) | 105 | const char *buf, size_t count) |
106 | { | 106 | { |
107 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); | 107 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); |
108 | struct gfar __iomem *regs = priv->gfargrp.regs; | 108 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
109 | unsigned int length = simple_strtoul(buf, NULL, 0); | 109 | unsigned int length = simple_strtoul(buf, NULL, 0); |
110 | u32 temp; | 110 | u32 temp; |
111 | unsigned long flags; | 111 | unsigned long flags; |
@@ -164,7 +164,7 @@ static ssize_t gfar_set_rx_stash_index(struct device *dev, | |||
164 | const char *buf, size_t count) | 164 | const char *buf, size_t count) |
165 | { | 165 | { |
166 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); | 166 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); |
167 | struct gfar __iomem *regs = priv->gfargrp.regs; | 167 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
168 | unsigned short index = simple_strtoul(buf, NULL, 0); | 168 | unsigned short index = simple_strtoul(buf, NULL, 0); |
169 | u32 temp; | 169 | u32 temp; |
170 | unsigned long flags; | 170 | unsigned long flags; |
@@ -212,7 +212,7 @@ static ssize_t gfar_set_fifo_threshold(struct device *dev, | |||
212 | const char *buf, size_t count) | 212 | const char *buf, size_t count) |
213 | { | 213 | { |
214 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); | 214 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); |
215 | struct gfar __iomem *regs = priv->gfargrp.regs; | 215 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
216 | unsigned int length = simple_strtoul(buf, NULL, 0); | 216 | unsigned int length = simple_strtoul(buf, NULL, 0); |
217 | u32 temp; | 217 | u32 temp; |
218 | unsigned long flags; | 218 | unsigned long flags; |
@@ -252,7 +252,7 @@ static ssize_t gfar_set_fifo_starve(struct device *dev, | |||
252 | const char *buf, size_t count) | 252 | const char *buf, size_t count) |
253 | { | 253 | { |
254 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); | 254 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); |
255 | struct gfar __iomem *regs = priv->gfargrp.regs; | 255 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
256 | unsigned int num = simple_strtoul(buf, NULL, 0); | 256 | unsigned int num = simple_strtoul(buf, NULL, 0); |
257 | u32 temp; | 257 | u32 temp; |
258 | unsigned long flags; | 258 | unsigned long flags; |
@@ -293,7 +293,7 @@ static ssize_t gfar_set_fifo_starve_off(struct device *dev, | |||
293 | const char *buf, size_t count) | 293 | const char *buf, size_t count) |
294 | { | 294 | { |
295 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); | 295 | struct gfar_private *priv = netdev_priv(to_net_dev(dev)); |
296 | struct gfar __iomem *regs = priv->gfargrp.regs; | 296 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
297 | unsigned int num = simple_strtoul(buf, NULL, 0); | 297 | unsigned int num = simple_strtoul(buf, NULL, 0); |
298 | u32 temp; | 298 | u32 temp; |
299 | unsigned long flags; | 299 | unsigned long flags; |