aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cyclades.h
diff options
context:
space:
mode:
authorKlaus Kudielka <klaus.kudielka@gmx.net>2007-05-08 03:26:25 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:03 -0400
commit7c4e95bf483231d55bc0d491bc585bb9b7e852b8 (patch)
tree13f9950574757685c639b141292294a7e99ee879 /include/linux/cyclades.h
parent9b3af29bf33bfe08c604769632799d27d56ae103 (diff)
fix cyclades.h for x86_64 (and probably others)
At least on x86_64 the present cyclades.h is broken due to the wrong size of uclong. This affects, of course, both the kernel and the user-level utilities. The symptom is that cyzload refuses to load the firmware. I also managed to freeze the machine when unloading the module. The patch below fixes this in an architecture-independent way. I have tested it with 2.6.19 and the driver works fine again with a Cyclades-Z on an Athlon 64 X2. [akpm@linux-foundation.org: fix warnings] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/cyclades.h')
-rw-r--r--include/linux/cyclades.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/include/linux/cyclades.h b/include/linux/cyclades.h
index 46d8254c1a79..a6865f0479f7 100644
--- a/include/linux/cyclades.h
+++ b/include/linux/cyclades.h
@@ -149,14 +149,12 @@ struct CYZ_BOOT_CTRL {
149 * architectures and compilers. 149 * architectures and compilers.
150 */ 150 */
151 151
152#if defined(__alpha__) 152#include <asm/types.h>
153typedef unsigned long ucdouble; /* 64 bits, unsigned */ 153
154typedef unsigned int uclong; /* 32 bits, unsigned */ 154typedef __u64 ucdouble; /* 64 bits, unsigned */
155#else 155typedef __u32 uclong; /* 32 bits, unsigned */
156typedef unsigned long uclong; /* 32 bits, unsigned */ 156typedef __u16 ucshort; /* 16 bits, unsigned */
157#endif 157typedef __u8 ucchar; /* 8 bits, unsigned */
158typedef unsigned short ucshort; /* 16 bits, unsigned */
159typedef unsigned char ucchar; /* 8 bits, unsigned */
160 158
161/* 159/*
162 * Memory Window Sizes 160 * Memory Window Sizes