diff options
author | Al Viro <viro@www.linux.org.uk> | 2005-05-04 00:39:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-04 10:33:13 -0400 |
commit | 5cae841b13f23ccdf7e38b2400b5cf57deb57ccf (patch) | |
tree | c3e673089f4e1b5e0e5db26b370a23c2851ebd69 /arch | |
parent | 9b52523aff51e3b245e6ec8887e3fcf190da4711 (diff) |
[PATCH] ISA DMA Kconfig fixes - part 1
A bunch of drivers use ISA DMA helpers or their equivalents for
platforms that have ISA with different DMA controller (a lot of ARM
boxen). Currently there is no way to put such dependency in Kconfig -
CONFIG_ISA is not it (e.g. it is not set on platforms that have no ISA
slots, but have on-board devices that pretend to be ISA ones).
New symbol added - ISA_DMA_API. Set when we have functional
enable_dma()/set_dma_mode()/etc. set of helpers. Next patches in the
series will add missing dependencies for drivers that need them.
I'm very carefully staying the hell out of the recurring flamefest on
what exactly CONFIG_ISA would mean in ideal world - added symbol has a
well-defined meaning and for now I really want to treat it as completely
independent from the mess around CONFIG_ISA.
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/alpha/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm26/Kconfig | 4 | ||||
-rw-r--r-- | arch/i386/Kconfig | 4 | ||||
-rw-r--r-- | arch/m68knommu/Kconfig | 5 | ||||
-rw-r--r-- | arch/mips/Kconfig | 4 | ||||
-rw-r--r-- | arch/parisc/Kconfig | 4 | ||||
-rw-r--r-- | arch/ppc/Kconfig | 4 | ||||
-rw-r--r-- | arch/ppc64/Kconfig | 3 | ||||
-rw-r--r-- | arch/sh/Kconfig | 4 | ||||
-rw-r--r-- | arch/x86_64/Kconfig | 5 |
11 files changed, 45 insertions, 0 deletions
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig index 0c79b9d95f74..f7c96635d3b4 100644 --- a/arch/alpha/Kconfig +++ b/arch/alpha/Kconfig | |||
@@ -280,6 +280,10 @@ config ISA | |||
280 | (MCA) or VESA. ISA is an older system, now being displaced by PCI; | 280 | (MCA) or VESA. ISA is an older system, now being displaced by PCI; |
281 | newer boards don't support it. If you have ISA, say Y, otherwise N. | 281 | newer boards don't support it. If you have ISA, say Y, otherwise N. |
282 | 282 | ||
283 | config ISA_DMA_API | ||
284 | bool | ||
285 | default y | ||
286 | |||
283 | config PCI | 287 | config PCI |
284 | bool | 288 | bool |
285 | depends on !ALPHA_JENSEN | 289 | depends on !ALPHA_JENSEN |
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 4055115ae0e2..8bfcb37460fa 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -266,6 +266,10 @@ config ISA_DMA | |||
266 | depends on FOOTBRIDGE_HOST || ARCH_SHARK | 266 | depends on FOOTBRIDGE_HOST || ARCH_SHARK |
267 | default y | 267 | default y |
268 | 268 | ||
269 | config ISA_DMA_API | ||
270 | bool | ||
271 | default y | ||
272 | |||
269 | config PCI | 273 | config PCI |
270 | bool "PCI support" if ARCH_INTEGRATOR_AP | 274 | bool "PCI support" if ARCH_INTEGRATOR_AP |
271 | default y if ARCH_SHARK || FOOTBRIDGE_HOST || ARCH_IOP3XX || ARCH_IXP4XX || ARCH_IXP2000 | 275 | default y if ARCH_SHARK || FOOTBRIDGE_HOST || ARCH_IOP3XX || ARCH_IXP4XX || ARCH_IXP2000 |
diff --git a/arch/arm26/Kconfig b/arch/arm26/Kconfig index 3955de5af4c0..6caed90661fc 100644 --- a/arch/arm26/Kconfig +++ b/arch/arm26/Kconfig | |||
@@ -89,6 +89,10 @@ config PAGESIZE_16 | |||
89 | machine with 4MB of memory. | 89 | machine with 4MB of memory. |
90 | endmenu | 90 | endmenu |
91 | 91 | ||
92 | config ISA_DMA_API | ||
93 | bool | ||
94 | default y | ||
95 | |||
92 | menu "General setup" | 96 | menu "General setup" |
93 | 97 | ||
94 | # Compressed boot loader in ROM. Yes, we really want to ask about | 98 | # Compressed boot loader in ROM. Yes, we really want to ask about |
diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig index 99b4f294a52d..fee589119606 100644 --- a/arch/i386/Kconfig +++ b/arch/i386/Kconfig | |||
@@ -1173,6 +1173,10 @@ source "drivers/pci/pcie/Kconfig" | |||
1173 | 1173 | ||
1174 | source "drivers/pci/Kconfig" | 1174 | source "drivers/pci/Kconfig" |
1175 | 1175 | ||
1176 | config ISA_DMA_API | ||
1177 | bool | ||
1178 | default y | ||
1179 | |||
1176 | config ISA | 1180 | config ISA |
1177 | bool "ISA support" | 1181 | bool "ISA support" |
1178 | depends on !(X86_VOYAGER || X86_VISWS) | 1182 | depends on !(X86_VOYAGER || X86_VISWS) |
diff --git a/arch/m68knommu/Kconfig b/arch/m68knommu/Kconfig index fc4615b6d3a9..e729bd280623 100644 --- a/arch/m68knommu/Kconfig +++ b/arch/m68knommu/Kconfig | |||
@@ -534,6 +534,11 @@ endchoice | |||
534 | 534 | ||
535 | endmenu | 535 | endmenu |
536 | 536 | ||
537 | config ISA_DMA_API | ||
538 | bool | ||
539 | depends on !M5272 | ||
540 | default y | ||
541 | |||
537 | menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)" | 542 | menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)" |
538 | 543 | ||
539 | config PCI | 544 | config PCI |
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 5e666aad8815..ab9944693f1f 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -1656,3 +1656,7 @@ config GENERIC_HARDIRQS | |||
1656 | config GENERIC_IRQ_PROBE | 1656 | config GENERIC_IRQ_PROBE |
1657 | bool | 1657 | bool |
1658 | default y | 1658 | default y |
1659 | |||
1660 | config ISA_DMA_API | ||
1661 | bool | ||
1662 | default y | ||
diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig index 5b5cd00d98ca..e7e7c56fc212 100644 --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig | |||
@@ -45,6 +45,10 @@ config GENERIC_IRQ_PROBE | |||
45 | config PM | 45 | config PM |
46 | bool | 46 | bool |
47 | 47 | ||
48 | config ISA_DMA_API | ||
49 | bool | ||
50 | default y | ||
51 | |||
48 | source "init/Kconfig" | 52 | source "init/Kconfig" |
49 | 53 | ||
50 | 54 | ||
diff --git a/arch/ppc/Kconfig b/arch/ppc/Kconfig index c3d941345e3d..ff04dcd30200 100644 --- a/arch/ppc/Kconfig +++ b/arch/ppc/Kconfig | |||
@@ -1079,6 +1079,10 @@ source kernel/power/Kconfig | |||
1079 | 1079 | ||
1080 | endmenu | 1080 | endmenu |
1081 | 1081 | ||
1082 | config ISA_DMA_API | ||
1083 | bool | ||
1084 | default y | ||
1085 | |||
1082 | menu "Bus options" | 1086 | menu "Bus options" |
1083 | 1087 | ||
1084 | config ISA | 1088 | config ISA |
diff --git a/arch/ppc64/Kconfig b/arch/ppc64/Kconfig index ef1f05e437c4..f5508abf1188 100644 --- a/arch/ppc64/Kconfig +++ b/arch/ppc64/Kconfig | |||
@@ -293,6 +293,9 @@ config SECCOMP | |||
293 | 293 | ||
294 | endmenu | 294 | endmenu |
295 | 295 | ||
296 | config ISA_DMA_API | ||
297 | bool | ||
298 | default y | ||
296 | 299 | ||
297 | menu "General setup" | 300 | menu "General setup" |
298 | 301 | ||
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 722ea1d63c94..3468d5127223 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -693,6 +693,10 @@ config RTC_9701JE | |||
693 | 693 | ||
694 | endmenu | 694 | endmenu |
695 | 695 | ||
696 | config ISA_DMA_API | ||
697 | bool | ||
698 | depends on MPC1211 | ||
699 | default y | ||
696 | 700 | ||
697 | menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)" | 701 | menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)" |
698 | 702 | ||
diff --git a/arch/x86_64/Kconfig b/arch/x86_64/Kconfig index 80c38c5d71fe..44ee7f6acf7b 100644 --- a/arch/x86_64/Kconfig +++ b/arch/x86_64/Kconfig | |||
@@ -379,6 +379,11 @@ config GENERIC_IRQ_PROBE | |||
379 | bool | 379 | bool |
380 | default y | 380 | default y |
381 | 381 | ||
382 | # we have no ISA slots, but we do have ISA-style DMA. | ||
383 | config ISA_DMA_API | ||
384 | bool | ||
385 | default y | ||
386 | |||
382 | menu "Power management options" | 387 | menu "Power management options" |
383 | 388 | ||
384 | source kernel/power/Kconfig | 389 | source kernel/power/Kconfig |