aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-alpha
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2006-10-11 01:22:02 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-11 11:14:23 -0700
commite50190a8341485b413f599033cb74649f849d939 (patch)
treec45e165f8167dd95f3b5d4163433b91c8b7afd55 /include/asm-alpha
parent[PATCH] Use linux/io.h instead of asm/io.h (diff)
downloadlinux-dev-e50190a8341485b413f599033cb74649f849d939.tar.xz
linux-dev-e50190a8341485b413f599033cb74649f849d939.zip
[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-alpha')
-rw-r--r--include/asm-alpha/io.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/asm-alpha/io.h b/include/asm-alpha/io.h
index f5ae98c25d1f..5d15af24573b 100644
--- a/include/asm-alpha/io.h
+++ b/include/asm-alpha/io.h
@@ -533,19 +533,6 @@ extern void outsl (unsigned long port, const void *src, unsigned long count);
#define eth_io_copy_and_sum(skb,src,len,unused) \
memcpy_fromio((skb)->data,src,len)
-static inline int
-check_signature(const volatile void __iomem *io_addr,
- const unsigned char *signature, int length)
-{
- do {
- if (readb(io_addr) != *signature)
- return 0;
- io_addr++;
- signature++;
- } while (--length);
- return 1;
-}
-
/*
* The Alpha Jensen hardware for some rather strange reason puts
* the RTC clock at 0x170 instead of 0x70. Probably due to some