diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-08 11:06:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-08 11:06:09 -0500 |
commit | 423ab71a8bd2345f87724abe320092a3a516b0bb (patch) | |
tree | 5d5eb306001e4341c3c073777f4d0b9e05ccd454 /include/asm-mips | |
parent | b7ed1de0ae4edb3fd2c53fa3dd7e6f104beb6d00 (diff) | |
parent | 63f716b9419420defb3e550a1e5f526c11b2ed2d (diff) |
Merge branch 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/bird
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/io.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h index a9fa1254894a..6c0aae5151a6 100644 --- a/include/asm-mips/io.h +++ b/include/asm-mips/io.h | |||
@@ -56,38 +56,38 @@ | |||
56 | * variations of functions: non-prefixed ones that preserve the value | 56 | * variations of functions: non-prefixed ones that preserve the value |
57 | * and prefixed ones that preserve byte addresses. The latters are | 57 | * and prefixed ones that preserve byte addresses. The latters are |
58 | * typically used for moving raw data between a peripheral and memory (cf. | 58 | * typically used for moving raw data between a peripheral and memory (cf. |
59 | * string I/O functions), hence the "mem_" prefix. | 59 | * string I/O functions), hence the "__mem_" prefix. |
60 | */ | 60 | */ |
61 | #if defined(CONFIG_SWAP_IO_SPACE) | 61 | #if defined(CONFIG_SWAP_IO_SPACE) |
62 | 62 | ||
63 | # define ioswabb(x) (x) | 63 | # define ioswabb(x) (x) |
64 | # define mem_ioswabb(x) (x) | 64 | # define __mem_ioswabb(x) (x) |
65 | # ifdef CONFIG_SGI_IP22 | 65 | # ifdef CONFIG_SGI_IP22 |
66 | /* | 66 | /* |
67 | * IP22 seems braindead enough to swap 16bits values in hardware, but | 67 | * IP22 seems braindead enough to swap 16bits values in hardware, but |
68 | * not 32bits. Go figure... Can't tell without documentation. | 68 | * not 32bits. Go figure... Can't tell without documentation. |
69 | */ | 69 | */ |
70 | # define ioswabw(x) (x) | 70 | # define ioswabw(x) (x) |
71 | # define mem_ioswabw(x) le16_to_cpu(x) | 71 | # define __mem_ioswabw(x) le16_to_cpu(x) |
72 | # else | 72 | # else |
73 | # define ioswabw(x) le16_to_cpu(x) | 73 | # define ioswabw(x) le16_to_cpu(x) |
74 | # define mem_ioswabw(x) (x) | 74 | # define __mem_ioswabw(x) (x) |
75 | # endif | 75 | # endif |
76 | # define ioswabl(x) le32_to_cpu(x) | 76 | # define ioswabl(x) le32_to_cpu(x) |
77 | # define mem_ioswabl(x) (x) | 77 | # define __mem_ioswabl(x) (x) |
78 | # define ioswabq(x) le64_to_cpu(x) | 78 | # define ioswabq(x) le64_to_cpu(x) |
79 | # define mem_ioswabq(x) (x) | 79 | # define __mem_ioswabq(x) (x) |
80 | 80 | ||
81 | #else | 81 | #else |
82 | 82 | ||
83 | # define ioswabb(x) (x) | 83 | # define ioswabb(x) (x) |
84 | # define mem_ioswabb(x) (x) | 84 | # define __mem_ioswabb(x) (x) |
85 | # define ioswabw(x) (x) | 85 | # define ioswabw(x) (x) |
86 | # define mem_ioswabw(x) cpu_to_le16(x) | 86 | # define __mem_ioswabw(x) cpu_to_le16(x) |
87 | # define ioswabl(x) (x) | 87 | # define ioswabl(x) (x) |
88 | # define mem_ioswabl(x) cpu_to_le32(x) | 88 | # define __mem_ioswabl(x) cpu_to_le32(x) |
89 | # define ioswabq(x) (x) | 89 | # define ioswabq(x) (x) |
90 | # define mem_ioswabq(x) cpu_to_le32(x) | 90 | # define __mem_ioswabq(x) cpu_to_le32(x) |
91 | 91 | ||
92 | #endif | 92 | #endif |
93 | 93 | ||
@@ -417,7 +417,7 @@ __BUILD_MEMORY_SINGLE(bus, bwlq, type, 1) | |||
417 | \ | 417 | \ |
418 | __BUILD_MEMORY_PFX(__raw_, bwlq, type) \ | 418 | __BUILD_MEMORY_PFX(__raw_, bwlq, type) \ |
419 | __BUILD_MEMORY_PFX(, bwlq, type) \ | 419 | __BUILD_MEMORY_PFX(, bwlq, type) \ |
420 | __BUILD_MEMORY_PFX(mem_, bwlq, type) \ | 420 | __BUILD_MEMORY_PFX(__mem_, bwlq, type) \ |
421 | 421 | ||
422 | BUILDIO_MEM(b, u8) | 422 | BUILDIO_MEM(b, u8) |
423 | BUILDIO_MEM(w, u16) | 423 | BUILDIO_MEM(w, u16) |
@@ -430,7 +430,7 @@ BUILDIO_MEM(q, u64) | |||
430 | 430 | ||
431 | #define BUILDIO_IOPORT(bwlq, type) \ | 431 | #define BUILDIO_IOPORT(bwlq, type) \ |
432 | __BUILD_IOPORT_PFX(, bwlq, type) \ | 432 | __BUILD_IOPORT_PFX(, bwlq, type) \ |
433 | __BUILD_IOPORT_PFX(mem_, bwlq, type) | 433 | __BUILD_IOPORT_PFX(__mem_, bwlq, type) |
434 | 434 | ||
435 | BUILDIO_IOPORT(b, u8) | 435 | BUILDIO_IOPORT(b, u8) |
436 | BUILDIO_IOPORT(w, u16) | 436 | BUILDIO_IOPORT(w, u16) |
@@ -464,7 +464,7 @@ static inline void writes##bwlq(volatile void __iomem *mem, \ | |||
464 | const volatile type *__addr = addr; \ | 464 | const volatile type *__addr = addr; \ |
465 | \ | 465 | \ |
466 | while (count--) { \ | 466 | while (count--) { \ |
467 | mem_write##bwlq(*__addr, mem); \ | 467 | __mem_write##bwlq(*__addr, mem); \ |
468 | __addr++; \ | 468 | __addr++; \ |
469 | } \ | 469 | } \ |
470 | } \ | 470 | } \ |
@@ -475,7 +475,7 @@ static inline void reads##bwlq(volatile void __iomem *mem, void *addr, \ | |||
475 | volatile type *__addr = addr; \ | 475 | volatile type *__addr = addr; \ |
476 | \ | 476 | \ |
477 | while (count--) { \ | 477 | while (count--) { \ |
478 | *__addr = mem_read##bwlq(mem); \ | 478 | *__addr = __mem_read##bwlq(mem); \ |
479 | __addr++; \ | 479 | __addr++; \ |
480 | } \ | 480 | } \ |
481 | } | 481 | } |
@@ -488,7 +488,7 @@ static inline void outs##bwlq(unsigned long port, const void *addr, \ | |||
488 | const volatile type *__addr = addr; \ | 488 | const volatile type *__addr = addr; \ |
489 | \ | 489 | \ |
490 | while (count--) { \ | 490 | while (count--) { \ |
491 | mem_out##bwlq(*__addr, port); \ | 491 | __mem_out##bwlq(*__addr, port); \ |
492 | __addr++; \ | 492 | __addr++; \ |
493 | } \ | 493 | } \ |
494 | } \ | 494 | } \ |
@@ -499,7 +499,7 @@ static inline void ins##bwlq(unsigned long port, void *addr, \ | |||
499 | volatile type *__addr = addr; \ | 499 | volatile type *__addr = addr; \ |
500 | \ | 500 | \ |
501 | while (count--) { \ | 501 | while (count--) { \ |
502 | *__addr = mem_in##bwlq(port); \ | 502 | *__addr = __mem_in##bwlq(port); \ |
503 | __addr++; \ | 503 | __addr++; \ |
504 | } \ | 504 | } \ |
505 | } | 505 | } |