diff options
author | Matthew Wilcox <matthew@wil.cx> | 2006-10-11 04:22:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:23 -0400 |
commit | e50190a8341485b413f599033cb74649f849d939 (patch) | |
tree | c45e165f8167dd95f3b5d4163433b91c8b7afd55 /include/asm-ppc | |
parent | 53d5ed627df852ba8bab7f70df25290bd733792c (diff) |
[PATCH] Consolidate check_signature
There's nothing arch-specific about check_signature(), so move it to
<linux/io.h>. Use a cross between the Alpha and i386 implementations as
the generic one.
Signed-off-by: Matthew Wilcox <willy@parisc-linux.org>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-ppc')
-rw-r--r-- | include/asm-ppc/io.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h index 3d9a9e6f3321..a4c411b753ef 100644 --- a/include/asm-ppc/io.h +++ b/include/asm-ppc/io.h | |||
@@ -439,22 +439,6 @@ extern inline void * phys_to_virt(unsigned long address) | |||
439 | #define iobarrier_r() eieio() | 439 | #define iobarrier_r() eieio() |
440 | #define iobarrier_w() eieio() | 440 | #define iobarrier_w() eieio() |
441 | 441 | ||
442 | static inline int check_signature(volatile void __iomem * io_addr, | ||
443 | const unsigned char *signature, int length) | ||
444 | { | ||
445 | int retval = 0; | ||
446 | do { | ||
447 | if (readb(io_addr) != *signature) | ||
448 | goto out; | ||
449 | io_addr++; | ||
450 | signature++; | ||
451 | length--; | ||
452 | } while (length); | ||
453 | retval = 1; | ||
454 | out: | ||
455 | return retval; | ||
456 | } | ||
457 | |||
458 | /* | 442 | /* |
459 | * Here comes the ppc implementation of the IOMAP | 443 | * Here comes the ppc implementation of the IOMAP |
460 | * interfaces. | 444 | * interfaces. |