diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/alpha/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/common-pci.c | 10 | ||||
-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/sparc/prom/memory.c | 28 | ||||
-rw-r--r-- | arch/sparc/prom/sun4prom.c | 2 | ||||
-rw-r--r-- | arch/sparc64/kernel/irq.c | 6 | ||||
-rw-r--r-- | arch/x86_64/Kconfig | 5 |
15 files changed, 63 insertions, 28 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/arm/mach-ixp4xx/common-pci.c b/arch/arm/mach-ixp4xx/common-pci.c index 94bcdb933e41..aa92e3708838 100644 --- a/arch/arm/mach-ixp4xx/common-pci.c +++ b/arch/arm/mach-ixp4xx/common-pci.c | |||
@@ -502,15 +502,6 @@ pci_set_dma_mask(struct pci_dev *dev, u64 mask) | |||
502 | } | 502 | } |
503 | 503 | ||
504 | int | 504 | int |
505 | pci_dac_set_dma_mask(struct pci_dev *dev, u64 mask) | ||
506 | { | ||
507 | if (mask >= SZ_64M - 1 ) | ||
508 | return 0; | ||
509 | |||
510 | return -EIO; | ||
511 | } | ||
512 | |||
513 | int | ||
514 | pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) | 505 | pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) |
515 | { | 506 | { |
516 | if (mask >= SZ_64M - 1 ) | 507 | if (mask >= SZ_64M - 1 ) |
@@ -520,7 +511,6 @@ pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) | |||
520 | } | 511 | } |
521 | 512 | ||
522 | EXPORT_SYMBOL(pci_set_dma_mask); | 513 | EXPORT_SYMBOL(pci_set_dma_mask); |
523 | EXPORT_SYMBOL(pci_dac_set_dma_mask); | ||
524 | EXPORT_SYMBOL(pci_set_consistent_dma_mask); | 514 | EXPORT_SYMBOL(pci_set_consistent_dma_mask); |
525 | EXPORT_SYMBOL(ixp4xx_pci_read); | 515 | EXPORT_SYMBOL(ixp4xx_pci_read); |
526 | EXPORT_SYMBOL(ixp4xx_pci_write); | 516 | EXPORT_SYMBOL(ixp4xx_pci_write); |
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/sparc/prom/memory.c b/arch/sparc/prom/memory.c index 46aa51afec14..c20e5309f8aa 100644 --- a/arch/sparc/prom/memory.c +++ b/arch/sparc/prom/memory.c | |||
@@ -47,9 +47,9 @@ prom_sortmemlist(struct linux_mlist_v0 *thislist) | |||
47 | char *tmpaddr; | 47 | char *tmpaddr; |
48 | char *lowest; | 48 | char *lowest; |
49 | 49 | ||
50 | for(i=0; thislist[i].theres_more != 0; i++) { | 50 | for(i=0; thislist[i].theres_more; i++) { |
51 | lowest = thislist[i].start_adr; | 51 | lowest = thislist[i].start_adr; |
52 | for(mitr = i+1; thislist[mitr-1].theres_more != 0; mitr++) | 52 | for(mitr = i+1; thislist[mitr-1].theres_more; mitr++) |
53 | if(thislist[mitr].start_adr < lowest) { | 53 | if(thislist[mitr].start_adr < lowest) { |
54 | lowest = thislist[mitr].start_adr; | 54 | lowest = thislist[mitr].start_adr; |
55 | swapi = mitr; | 55 | swapi = mitr; |
@@ -85,7 +85,7 @@ void __init prom_meminit(void) | |||
85 | prom_phys_total[iter].num_bytes = mptr->num_bytes; | 85 | prom_phys_total[iter].num_bytes = mptr->num_bytes; |
86 | prom_phys_total[iter].theres_more = &prom_phys_total[iter+1]; | 86 | prom_phys_total[iter].theres_more = &prom_phys_total[iter+1]; |
87 | } | 87 | } |
88 | prom_phys_total[iter-1].theres_more = 0x0; | 88 | prom_phys_total[iter-1].theres_more = NULL; |
89 | /* Second, the total prom taken descriptors. */ | 89 | /* Second, the total prom taken descriptors. */ |
90 | for(mptr = (*(romvec->pv_v0mem.v0_prommap)), iter=0; | 90 | for(mptr = (*(romvec->pv_v0mem.v0_prommap)), iter=0; |
91 | mptr; mptr=mptr->theres_more, iter++) { | 91 | mptr; mptr=mptr->theres_more, iter++) { |
@@ -93,7 +93,7 @@ void __init prom_meminit(void) | |||
93 | prom_prom_taken[iter].num_bytes = mptr->num_bytes; | 93 | prom_prom_taken[iter].num_bytes = mptr->num_bytes; |
94 | prom_prom_taken[iter].theres_more = &prom_prom_taken[iter+1]; | 94 | prom_prom_taken[iter].theres_more = &prom_prom_taken[iter+1]; |
95 | } | 95 | } |
96 | prom_prom_taken[iter-1].theres_more = 0x0; | 96 | prom_prom_taken[iter-1].theres_more = NULL; |
97 | /* Last, the available physical descriptors. */ | 97 | /* Last, the available physical descriptors. */ |
98 | for(mptr = (*(romvec->pv_v0mem.v0_available)), iter=0; | 98 | for(mptr = (*(romvec->pv_v0mem.v0_available)), iter=0; |
99 | mptr; mptr=mptr->theres_more, iter++) { | 99 | mptr; mptr=mptr->theres_more, iter++) { |
@@ -101,7 +101,7 @@ void __init prom_meminit(void) | |||
101 | prom_phys_avail[iter].num_bytes = mptr->num_bytes; | 101 | prom_phys_avail[iter].num_bytes = mptr->num_bytes; |
102 | prom_phys_avail[iter].theres_more = &prom_phys_avail[iter+1]; | 102 | prom_phys_avail[iter].theres_more = &prom_phys_avail[iter+1]; |
103 | } | 103 | } |
104 | prom_phys_avail[iter-1].theres_more = 0x0; | 104 | prom_phys_avail[iter-1].theres_more = NULL; |
105 | /* Sort all the lists. */ | 105 | /* Sort all the lists. */ |
106 | prom_sortmemlist(prom_phys_total); | 106 | prom_sortmemlist(prom_phys_total); |
107 | prom_sortmemlist(prom_prom_taken); | 107 | prom_sortmemlist(prom_prom_taken); |
@@ -124,7 +124,7 @@ void __init prom_meminit(void) | |||
124 | prom_phys_avail[iter].theres_more = | 124 | prom_phys_avail[iter].theres_more = |
125 | &prom_phys_avail[iter+1]; | 125 | &prom_phys_avail[iter+1]; |
126 | } | 126 | } |
127 | prom_phys_avail[iter-1].theres_more = 0x0; | 127 | prom_phys_avail[iter-1].theres_more = NULL; |
128 | 128 | ||
129 | num_regs = prom_getproperty(node, "reg", | 129 | num_regs = prom_getproperty(node, "reg", |
130 | (char *) prom_reg_memlist, | 130 | (char *) prom_reg_memlist, |
@@ -138,7 +138,7 @@ void __init prom_meminit(void) | |||
138 | prom_phys_total[iter].theres_more = | 138 | prom_phys_total[iter].theres_more = |
139 | &prom_phys_total[iter+1]; | 139 | &prom_phys_total[iter+1]; |
140 | } | 140 | } |
141 | prom_phys_total[iter-1].theres_more = 0x0; | 141 | prom_phys_total[iter-1].theres_more = NULL; |
142 | 142 | ||
143 | node = prom_getchild(prom_root_node); | 143 | node = prom_getchild(prom_root_node); |
144 | node = prom_searchsiblings(node, "virtual-memory"); | 144 | node = prom_searchsiblings(node, "virtual-memory"); |
@@ -158,7 +158,7 @@ void __init prom_meminit(void) | |||
158 | prom_prom_taken[iter].theres_more = | 158 | prom_prom_taken[iter].theres_more = |
159 | &prom_prom_taken[iter+1]; | 159 | &prom_prom_taken[iter+1]; |
160 | } | 160 | } |
161 | prom_prom_taken[iter-1].theres_more = 0x0; | 161 | prom_prom_taken[iter-1].theres_more = NULL; |
162 | 162 | ||
163 | prom_sortmemlist(prom_prom_taken); | 163 | prom_sortmemlist(prom_prom_taken); |
164 | 164 | ||
@@ -182,15 +182,15 @@ void __init prom_meminit(void) | |||
182 | case PROM_SUN4: | 182 | case PROM_SUN4: |
183 | #ifdef CONFIG_SUN4 | 183 | #ifdef CONFIG_SUN4 |
184 | /* how simple :) */ | 184 | /* how simple :) */ |
185 | prom_phys_total[0].start_adr = 0x0; | 185 | prom_phys_total[0].start_adr = NULL; |
186 | prom_phys_total[0].num_bytes = *(sun4_romvec->memorysize); | 186 | prom_phys_total[0].num_bytes = *(sun4_romvec->memorysize); |
187 | prom_phys_total[0].theres_more = 0x0; | 187 | prom_phys_total[0].theres_more = NULL; |
188 | prom_prom_taken[0].start_adr = 0x0; | 188 | prom_prom_taken[0].start_adr = NULL; |
189 | prom_prom_taken[0].num_bytes = 0x0; | 189 | prom_prom_taken[0].num_bytes = 0x0; |
190 | prom_prom_taken[0].theres_more = 0x0; | 190 | prom_prom_taken[0].theres_more = NULL; |
191 | prom_phys_avail[0].start_adr = 0x0; | 191 | prom_phys_avail[0].start_adr = NULL; |
192 | prom_phys_avail[0].num_bytes = *(sun4_romvec->memoryavail); | 192 | prom_phys_avail[0].num_bytes = *(sun4_romvec->memoryavail); |
193 | prom_phys_avail[0].theres_more = 0x0; | 193 | prom_phys_avail[0].theres_more = NULL; |
194 | #endif | 194 | #endif |
195 | break; | 195 | break; |
196 | 196 | ||
diff --git a/arch/sparc/prom/sun4prom.c b/arch/sparc/prom/sun4prom.c index 69ca735f0d4e..00390a2652aa 100644 --- a/arch/sparc/prom/sun4prom.c +++ b/arch/sparc/prom/sun4prom.c | |||
@@ -151,7 +151,7 @@ struct linux_romvec * __init sun4_prom_init(void) | |||
151 | * have more time, we can teach the penguin to say "By your | 151 | * have more time, we can teach the penguin to say "By your |
152 | * command" or "Activating turbo boost, Michael". :-) | 152 | * command" or "Activating turbo boost, Michael". :-) |
153 | */ | 153 | */ |
154 | sun4_romvec->setLEDs(0x0); | 154 | sun4_romvec->setLEDs(NULL); |
155 | 155 | ||
156 | printk("PROMLIB: Old Sun4 boot PROM monitor %s, romvec version %d\n", | 156 | printk("PROMLIB: Old Sun4 boot PROM monitor %s, romvec version %d\n", |
157 | sun4_romvec->monid, | 157 | sun4_romvec->monid, |
diff --git a/arch/sparc64/kernel/irq.c b/arch/sparc64/kernel/irq.c index a38cb5036df0..4dcb8af94090 100644 --- a/arch/sparc64/kernel/irq.c +++ b/arch/sparc64/kernel/irq.c | |||
@@ -756,7 +756,7 @@ void handler_irq(int irq, struct pt_regs *regs) | |||
756 | clear_softint(clr_mask); | 756 | clear_softint(clr_mask); |
757 | } | 757 | } |
758 | #else | 758 | #else |
759 | int should_forward = 1; | 759 | int should_forward = 0; |
760 | 760 | ||
761 | clear_softint(1 << irq); | 761 | clear_softint(1 << irq); |
762 | #endif | 762 | #endif |
@@ -1007,10 +1007,10 @@ static int retarget_one_irq(struct irqaction *p, int goal_cpu) | |||
1007 | } | 1007 | } |
1008 | upa_writel(tid | IMAP_VALID, imap); | 1008 | upa_writel(tid | IMAP_VALID, imap); |
1009 | 1009 | ||
1010 | while (!cpu_online(goal_cpu)) { | 1010 | do { |
1011 | if (++goal_cpu >= NR_CPUS) | 1011 | if (++goal_cpu >= NR_CPUS) |
1012 | goal_cpu = 0; | 1012 | goal_cpu = 0; |
1013 | } | 1013 | } while (!cpu_online(goal_cpu)); |
1014 | 1014 | ||
1015 | return goal_cpu; | 1015 | return goal_cpu; |
1016 | } | 1016 | } |
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 |