diff options
author | Steve Glendinning <steve.glendinning@smsc.com> | 2009-03-30 10:59:55 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-04-30 17:22:37 +0100 |
commit | 8fa7f65c026f675f6eba92fd9e87e3cd4b81b651 (patch) | |
tree | fd241d65afbd8aaabe4d1ee291b61b140337859f /include | |
parent | 8814658377809ac739ed9f6769ad7d33f361b711 (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.h | 5 |
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 @@ struct smsc911x_platform_config { unsigned int irq_polarity; unsigned int irq_type; + unsigned int flags; phy_interface_t phy_interface; }; @@ -39,4 +40,8 @@ struct smsc911x_platform_config { #define SMSC911X_IRQ_TYPE_OPEN_DRAIN 0 #define SMSC911X_IRQ_TYPE_PUSH_PULL 1 +/* Constants for flags */ +#define SMSC911X_USE_16BIT (BIT(0)) +#define SMSC911X_USE_32BIT (BIT(1)) + #endif /* __LINUX_SMSC911X_H__ */ |