summaryrefslogtreecommitdiffstats
path: root/include/linux/smc91x.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/smc91x.h')
-rw-r--r--include/linux/smc91x.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/smc91x.h b/include/linux/smc91x.h
index 90434db72db..0dea9459a8e 100644
--- a/include/linux/smc91x.h
+++ b/include/linux/smc91x.h
@@ -7,6 +7,13 @@
#define SMC91X_NOWAIT (1 << 3)
+/* two bits for IO_SHIFT, let's hope later designs will keep this sane */
+#define SMC91X_IO_SHIFT_0 (0 << 4)
+#define SMC91X_IO_SHIFT_1 (1 << 4)
+#define SMC91X_IO_SHIFT_2 (2 << 4)
+#define SMC91X_IO_SHIFT_3 (3 << 4)
+#define SMC91X_IO_SHIFT(x) (((x) >> 4) & 0x3)
+
struct smc91x_platdata {
unsigned long flags;
};