diff options
author | Eric Miao <eric.miao@marvell.com> | 2008-06-24 03:36:05 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-07-12 16:52:41 -0400 |
commit | 52256c0e06e4a4df67134b951a21b50c713a9588 (patch) | |
tree | 6e003932a594d85cb8bcbc880d5fc12d25faf8a6 /include/linux/smc91x.h | |
parent | 159198862adad7109bb347bb30a620f67beac45f (diff) |
[NET] smc91x: prepare SMC_USE_PXA_DMA to be specified in platform data
Now that the original SMC_USE_PXA_DMA specific code will always being
built if CONFIG_ARCH_PXA is defined, so to make this part of the code
to be PXA public, and still prevent it from being built if support of
PXA is not selected.
A SMC91X_USE_DMA flag is added to the platform data to allow platform
to choose its usage of DMA. Note this flag itself is so named to be
generic enough (assuming other platforms can also use DMA).
It keeps backward compatibility to set the SMC91X_USE_DMA flag if
SMC_USE_PXA_DMA is still defined.
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/smc91x.h')
-rw-r--r-- | include/linux/smc91x.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/smc91x.h b/include/linux/smc91x.h index 0dea9459a8e4..3827b922ba1f 100644 --- a/include/linux/smc91x.h +++ b/include/linux/smc91x.h | |||
@@ -14,6 +14,8 @@ | |||
14 | #define SMC91X_IO_SHIFT_3 (3 << 4) | 14 | #define SMC91X_IO_SHIFT_3 (3 << 4) |
15 | #define SMC91X_IO_SHIFT(x) (((x) >> 4) & 0x3) | 15 | #define SMC91X_IO_SHIFT(x) (((x) >> 4) & 0x3) |
16 | 16 | ||
17 | #define SMC91X_USE_DMA (1 << 6) | ||
18 | |||
17 | struct smc91x_platdata { | 19 | struct smc91x_platdata { |
18 | unsigned long flags; | 20 | unsigned long flags; |
19 | }; | 21 | }; |