diff options
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/dma-mapping.h | 9 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-generic/kmalloc.h | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-ip27/kmalloc.h | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-ip32/kmalloc.h | 4 |
4 files changed, 4 insertions, 13 deletions
diff --git a/arch/mips/include/asm/dma-mapping.h b/arch/mips/include/asm/dma-mapping.h index 664ba53dc32a..18fbf7af8e93 100644 --- a/arch/mips/include/asm/dma-mapping.h +++ b/arch/mips/include/asm/dma-mapping.h | |||
@@ -62,15 +62,6 @@ dma_set_mask(struct device *dev, u64 mask) | |||
62 | return 0; | 62 | return 0; |
63 | } | 63 | } |
64 | 64 | ||
65 | static inline int | ||
66 | dma_get_cache_alignment(void) | ||
67 | { | ||
68 | /* XXX Largest on any MIPS */ | ||
69 | return 128; | ||
70 | } | ||
71 | |||
72 | extern int dma_is_consistent(struct device *dev, dma_addr_t dma_addr); | ||
73 | |||
74 | extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size, | 65 | extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size, |
75 | enum dma_data_direction direction); | 66 | enum dma_data_direction direction); |
76 | 67 | ||
diff --git a/arch/mips/include/asm/mach-generic/kmalloc.h b/arch/mips/include/asm/mach-generic/kmalloc.h index b8e6deba352f..a5d669086ed9 100644 --- a/arch/mips/include/asm/mach-generic/kmalloc.h +++ b/arch/mips/include/asm/mach-generic/kmalloc.h | |||
@@ -7,7 +7,7 @@ | |||
7 | * Total overkill for most systems but need as a safe default. | 7 | * Total overkill for most systems but need as a safe default. |
8 | * Set this one if any device in the system might do non-coherent DMA. | 8 | * Set this one if any device in the system might do non-coherent DMA. |
9 | */ | 9 | */ |
10 | #define ARCH_KMALLOC_MINALIGN 128 | 10 | #define ARCH_DMA_MINALIGN 128 |
11 | #endif | 11 | #endif |
12 | 12 | ||
13 | #endif /* __ASM_MACH_GENERIC_KMALLOC_H */ | 13 | #endif /* __ASM_MACH_GENERIC_KMALLOC_H */ |
diff --git a/arch/mips/include/asm/mach-ip27/kmalloc.h b/arch/mips/include/asm/mach-ip27/kmalloc.h index 426bd049b2d7..82c23ce2afa7 100644 --- a/arch/mips/include/asm/mach-ip27/kmalloc.h +++ b/arch/mips/include/asm/mach-ip27/kmalloc.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define __ASM_MACH_IP27_KMALLOC_H | 2 | #define __ASM_MACH_IP27_KMALLOC_H |
3 | 3 | ||
4 | /* | 4 | /* |
5 | * All happy, no need to define ARCH_KMALLOC_MINALIGN | 5 | * All happy, no need to define ARCH_DMA_MINALIGN |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #endif /* __ASM_MACH_IP27_KMALLOC_H */ | 8 | #endif /* __ASM_MACH_IP27_KMALLOC_H */ |
diff --git a/arch/mips/include/asm/mach-ip32/kmalloc.h b/arch/mips/include/asm/mach-ip32/kmalloc.h index b1e0be60f720..042ca926c48f 100644 --- a/arch/mips/include/asm/mach-ip32/kmalloc.h +++ b/arch/mips/include/asm/mach-ip32/kmalloc.h | |||
@@ -3,9 +3,9 @@ | |||
3 | 3 | ||
4 | 4 | ||
5 | #if defined(CONFIG_CPU_R5000) || defined(CONFIG_CPU_RM7000) | 5 | #if defined(CONFIG_CPU_R5000) || defined(CONFIG_CPU_RM7000) |
6 | #define ARCH_KMALLOC_MINALIGN 32 | 6 | #define ARCH_DMA_MINALIGN 32 |
7 | #else | 7 | #else |
8 | #define ARCH_KMALLOC_MINALIGN 128 | 8 | #define ARCH_DMA_MINALIGN 128 |
9 | #endif | 9 | #endif |
10 | 10 | ||
11 | #endif /* __ASM_MACH_IP32_KMALLOC_H */ | 11 | #endif /* __ASM_MACH_IP32_KMALLOC_H */ |