diff options
author | David Brown <davidb@quicinc.com> | 2010-03-05 12:12:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-06 00:56:40 +0300 |
commit | 4b79a1aedcb9dd6e3f27b970dcb553aefcd97254 (patch) | |
tree | 742bc28fc2457f3d1ca319f379c4f87367b3ab86 /drivers | |
parent | a3a858ff18a72a8d388e31ab0d98f7e944841a62 (diff) | |
download | linux-4b79a1aedcb9dd6e3f27b970dcb553aefcd97254.tar.xz |
net: smc91x: Support Qualcomm MSM development boards.
Signed-off-by: David Brown <davidb@quicinc.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Acked-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/smc91x.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/smc91x.h b/drivers/net/smc91x.h index 54799544bda3..a6ee883d1b0e 100644 --- a/drivers/net/smc91x.h +++ b/drivers/net/smc91x.h @@ -330,6 +330,20 @@ static inline void LPD7_SMC_outsw (unsigned char* a, int r, #include <unit/smc91111.h> +#elif defined(CONFIG_ARCH_MSM) + +#define SMC_CAN_USE_8BIT 0 +#define SMC_CAN_USE_16BIT 1 +#define SMC_CAN_USE_32BIT 0 +#define SMC_NOWAIT 1 + +#define SMC_inw(a, r) readw((a) + (r)) +#define SMC_outw(v, a, r) writew(v, (a) + (r)) +#define SMC_insw(a, r, p, l) readsw((a) + (r), p, l) +#define SMC_outsw(a, r, p, l) writesw((a) + (r), p, l) + +#define SMC_IRQ_FLAGS IRQF_TRIGGER_HIGH + #else /* |