diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /arch/mips/include/asm/io.h | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'arch/mips/include/asm/io.h')
-rw-r--r-- | arch/mips/include/asm/io.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index 436878e4e063..c98bf514ec7d 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h | |||
@@ -447,6 +447,24 @@ __BUILDIO(q, u64) | |||
447 | #define readl_relaxed readl | 447 | #define readl_relaxed readl |
448 | #define readq_relaxed readq | 448 | #define readq_relaxed readq |
449 | 449 | ||
450 | #define readb_be(addr) \ | ||
451 | __raw_readb((__force unsigned *)(addr)) | ||
452 | #define readw_be(addr) \ | ||
453 | be16_to_cpu(__raw_readw((__force unsigned *)(addr))) | ||
454 | #define readl_be(addr) \ | ||
455 | be32_to_cpu(__raw_readl((__force unsigned *)(addr))) | ||
456 | #define readq_be(addr) \ | ||
457 | be64_to_cpu(__raw_readq((__force unsigned *)(addr))) | ||
458 | |||
459 | #define writeb_be(val, addr) \ | ||
460 | __raw_writeb((val), (__force unsigned *)(addr)) | ||
461 | #define writew_be(val, addr) \ | ||
462 | __raw_writew(cpu_to_be16((val)), (__force unsigned *)(addr)) | ||
463 | #define writel_be(val, addr) \ | ||
464 | __raw_writel(cpu_to_be32((val)), (__force unsigned *)(addr)) | ||
465 | #define writeq_be(val, addr) \ | ||
466 | __raw_writeq(cpu_to_be64((val)), (__force unsigned *)(addr)) | ||
467 | |||
450 | /* | 468 | /* |
451 | * Some code tests for these symbols | 469 | * Some code tests for these symbols |
452 | */ | 470 | */ |