aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/smsc911x.h
diff options
context:
space:
mode:
authorMathieu J. Poirier <mathieu.poirier@linaro.org>2011-04-13 20:13:00 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-13 20:13:00 -0400
commitc326de88b8ac7ed1cd1027017ba6079dbe91be49 (patch)
tree9458898250dc12048b46b7a54581211422a8c39e /include/linux/smsc911x.h
parentc3e945006ab2295e9a3f4327aa74a502ad123fe6 (diff)
net: allow shifted access in smsc911x V2
This is a revised patch that permits a shifted access to the LAN9221 registers. More specifically: It adds a shift parameter in the platform_data. It introduces an ops in smsc911x_data. A choice of access function to use at run-time. Four new shifted access function. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/smsc911x.h')
-rw-r--r--include/linux/smsc911x.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/smsc911x.h b/include/linux/smsc911x.h
index 7144e8aa1e41..4dde70e74822 100644
--- a/include/linux/smsc911x.h
+++ b/include/linux/smsc911x.h
@@ -29,6 +29,7 @@ struct smsc911x_platform_config {
29 unsigned int irq_polarity; 29 unsigned int irq_polarity;
30 unsigned int irq_type; 30 unsigned int irq_type;
31 unsigned int flags; 31 unsigned int flags;
32 unsigned int shift;
32 phy_interface_t phy_interface; 33 phy_interface_t phy_interface;
33 unsigned char mac[6]; 34 unsigned char mac[6];
34}; 35};