diff options
Diffstat (limited to 'arch/mips/include/asm/io.h')
-rw-r--r-- | arch/mips/include/asm/io.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index 3321dd5a8872..933b50e125a0 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h | |||
@@ -331,7 +331,7 @@ static inline void pfx##write##bwlq(type val, \ | |||
331 | if (irq) \ | 331 | if (irq) \ |
332 | local_irq_save(__flags); \ | 332 | local_irq_save(__flags); \ |
333 | __asm__ __volatile__( \ | 333 | __asm__ __volatile__( \ |
334 | ".set mips3" "\t\t# __writeq""\n\t" \ | 334 | ".set arch=r4000" "\t\t# __writeq""\n\t" \ |
335 | "dsll32 %L0, %L0, 0" "\n\t" \ | 335 | "dsll32 %L0, %L0, 0" "\n\t" \ |
336 | "dsrl32 %L0, %L0, 0" "\n\t" \ | 336 | "dsrl32 %L0, %L0, 0" "\n\t" \ |
337 | "dsll32 %M0, %M0, 0" "\n\t" \ | 337 | "dsll32 %M0, %M0, 0" "\n\t" \ |
@@ -361,7 +361,7 @@ static inline type pfx##read##bwlq(const volatile void __iomem *mem) \ | |||
361 | if (irq) \ | 361 | if (irq) \ |
362 | local_irq_save(__flags); \ | 362 | local_irq_save(__flags); \ |
363 | __asm__ __volatile__( \ | 363 | __asm__ __volatile__( \ |
364 | ".set mips3" "\t\t# __readq" "\n\t" \ | 364 | ".set arch=r4000" "\t\t# __readq" "\n\t" \ |
365 | "ld %L0, %1" "\n\t" \ | 365 | "ld %L0, %1" "\n\t" \ |
366 | "dsra32 %M0, %L0, 0" "\n\t" \ | 366 | "dsra32 %M0, %L0, 0" "\n\t" \ |
367 | "sll %L0, %L0, 0" "\n\t" \ | 367 | "sll %L0, %L0, 0" "\n\t" \ |
@@ -584,7 +584,7 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int | |||
584 | * | 584 | * |
585 | * This API used to be exported; it now is for arch code internal use only. | 585 | * This API used to be exported; it now is for arch code internal use only. |
586 | */ | 586 | */ |
587 | #ifdef CONFIG_DMA_NONCOHERENT | 587 | #if defined(CONFIG_DMA_NONCOHERENT) || defined(CONFIG_DMA_MAYBE_COHERENT) |
588 | 588 | ||
589 | extern void (*_dma_cache_wback_inv)(unsigned long start, unsigned long size); | 589 | extern void (*_dma_cache_wback_inv)(unsigned long start, unsigned long size); |
590 | extern void (*_dma_cache_wback)(unsigned long start, unsigned long size); | 590 | extern void (*_dma_cache_wback)(unsigned long start, unsigned long size); |
@@ -603,7 +603,7 @@ extern void (*_dma_cache_inv)(unsigned long start, unsigned long size); | |||
603 | #define dma_cache_inv(start,size) \ | 603 | #define dma_cache_inv(start,size) \ |
604 | do { (void) (start); (void) (size); } while (0) | 604 | do { (void) (start); (void) (size); } while (0) |
605 | 605 | ||
606 | #endif /* CONFIG_DMA_NONCOHERENT */ | 606 | #endif /* CONFIG_DMA_NONCOHERENT || CONFIG_DMA_MAYBE_COHERENT */ |
607 | 607 | ||
608 | /* | 608 | /* |
609 | * Read a 32-bit register that requires a 64-bit read cycle on the bus. | 609 | * Read a 32-bit register that requires a 64-bit read cycle on the bus. |