Skip to content

Commit abb4970

Browse files
stffrdhrnbjorn-helgaas
authored andcommitted
PCI: Move isa_dma_bridge_buggy out of asm/dma.h
The isa_dma_bridge_buggy symbol is only used for x86_32, and only x86_32 platforms or quirks ever set it. Add a new linux/isa-dma.h header that #defines isa_dma_bridge_buggy to 0 except on x86_32, where we keep it as a variable, and remove all the arch- specific definitions. [bhelgaas: commit log] Suggested-by: Arnd Bergmann <[email protected]> Suggested-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stafford Horne <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]>
1 parent ae85b23 commit abb4970

File tree

23 files changed

+21
-100
lines changed

23 files changed

+21
-100
lines changed

arch/alpha/include/asm/dma.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,4 @@ extern void free_dma(unsigned int dmanr); /* release it again */
365365
#define KERNEL_HAVE_CHECK_DMA
366366
extern int check_dma(unsigned int dmanr);
367367

368-
/* From PCI */
369-
370-
#ifdef CONFIG_PCI
371-
extern int isa_dma_bridge_buggy;
372-
#else
373-
#define isa_dma_bridge_buggy (0)
374-
#endif
375-
376-
377368
#endif /* _ASM_DMA_H */

arch/arc/include/asm/dma.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,5 @@
77
#define ASM_ARC_DMA_H
88

99
#define MAX_DMA_ADDRESS 0xC0000000
10-
#ifdef CONFIG_PCI
11-
extern int isa_dma_bridge_buggy;
12-
#else
13-
#define isa_dma_bridge_buggy 0
14-
#endif
1510

1611
#endif

arch/arm/include/asm/dma.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,4 @@ extern int get_dma_residue(unsigned int chan);
143143

144144
#endif /* CONFIG_ISA_DMA_API */
145145

146-
#ifdef CONFIG_PCI
147-
extern int isa_dma_bridge_buggy;
148-
#else
149-
#define isa_dma_bridge_buggy (0)
150-
#endif
151-
152146
#endif /* __ASM_ARM_DMA_H */

arch/arm64/include/asm/pci.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#define arch_can_pci_mmap_wc() 1
2121
#define ARCH_GENERIC_PCI_MMAP_RESOURCE 1
2222

23-
extern int isa_dma_bridge_buggy;
24-
2523
#ifdef CONFIG_PCI
2624
static inline int pci_proc_domain(struct pci_bus *bus)
2725
{

arch/csky/include/asm/pci.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
/* C-SKY shim does not initialize PCI bus */
1616
#define pcibios_assign_all_busses() 1
1717

18-
extern int isa_dma_bridge_buggy;
19-
2018
#ifdef CONFIG_PCI
2119
static inline int pci_proc_domain(struct pci_bus *bus)
2220
{

arch/ia64/include/asm/dma.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
extern unsigned long MAX_DMA_ADDRESS;
1414

15-
extern int isa_dma_bridge_buggy;
16-
1715
#define free_dma(x)
1816

1917
#endif /* _ASM_IA64_DMA_H */

arch/m68k/include/asm/dma.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,4 @@
66
bootmem allocator (but this should do it for this) */
77
#define MAX_DMA_ADDRESS PAGE_OFFSET
88

9-
#ifdef CONFIG_PCI
10-
extern int isa_dma_bridge_buggy;
11-
#else
12-
#define isa_dma_bridge_buggy (0)
13-
#endif
14-
159
#endif /* _M68K_DMA_H */

arch/microblaze/include/asm/dma.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,4 @@
99
/* Virtual address corresponding to last available physical memory address. */
1010
#define MAX_DMA_ADDRESS (CONFIG_KERNEL_START + memory_size - 1)
1111

12-
#ifdef CONFIG_PCI
13-
extern int isa_dma_bridge_buggy;
14-
#else
15-
#define isa_dma_bridge_buggy (0)
16-
#endif
17-
1812
#endif /* _ASM_MICROBLAZE_DMA_H */

arch/mips/include/asm/dma.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,4 @@ static __inline__ int get_dma_residue(unsigned int dmanr)
307307
extern int request_dma(unsigned int dmanr, const char * device_id); /* reserve a DMA channel */
308308
extern void free_dma(unsigned int dmanr); /* release it again */
309309

310-
/* From PCI */
311-
312-
#ifdef CONFIG_PCI
313-
extern int isa_dma_bridge_buggy;
314-
#else
315-
#define isa_dma_bridge_buggy (0)
316-
#endif
317-
318310
#endif /* _ASM_DMA_H */

arch/parisc/include/asm/dma.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,4 @@ static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count)
176176

177177
#define free_dma(dmanr)
178178

179-
#ifdef CONFIG_PCI
180-
extern int isa_dma_bridge_buggy;
181-
#else
182-
#define isa_dma_bridge_buggy (0)
183-
#endif
184-
185179
#endif /* _ASM_DMA_H */

0 commit comments

Comments
 (0)