aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSteve Glendinning <steve.glendinning@smsc.com>2008-11-04 19:35:38 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-10 18:12:45 -0500
commit2107fb8b5bf018be691afdd4c6ffaecf0c3307be (patch)
treef3554a4cb46f23a9d4de7cc54d56ad229b055236 /include
parent6fabd715e6d8e1b37c0c66d9bfda2c19643e3f77 (diff)
smsc911x: add dynamic bus configuration
Convert the driver to select 16-bit or 32-bit bus access at runtime, at a small performance cost. Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/smsc911x.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/smsc911x.h b/include/linux/smsc911x.h
index 47c4ffd10dbb..1cbf0313adde 100644
--- a/include/linux/smsc911x.h
+++ b/include/linux/smsc911x.h
@@ -28,6 +28,7 @@
28struct smsc911x_platform_config { 28struct 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 phy_interface_t phy_interface; 32 phy_interface_t phy_interface;
32}; 33};
33 34
@@ -39,4 +40,8 @@ struct smsc911x_platform_config {
39#define SMSC911X_IRQ_TYPE_OPEN_DRAIN 0 40#define SMSC911X_IRQ_TYPE_OPEN_DRAIN 0
40#define SMSC911X_IRQ_TYPE_PUSH_PULL 1 41#define SMSC911X_IRQ_TYPE_PUSH_PULL 1
41 42
43/* Constants for flags */
44#define SMSC911X_USE_16BIT (BIT(0))
45#define SMSC911X_USE_32BIT (BIT(1))
46
42#endif /* __LINUX_SMSC911X_H__ */ 47#endif /* __LINUX_SMSC911X_H__ */