public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix cyclades.h for x86_64 (and probably others)
@ 2007-03-14 21:57 Klaus Kudielka
  2007-03-15 19:07 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Klaus Kudielka @ 2007-03-14 21:57 UTC (permalink / raw)
  To: linux-kernel; +Cc: ivan

Hello,

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.

Please CC to me personally, as I am not subscribed to the list.
Thanks, Klaus

--- include/linux/cyclades.h.ORIG       2007-02-23 12:48:19.000000000 +0000
+++ include/linux/cyclades.h    2007-03-14 21:24:35.000000000 +0000
@@ -149,14 +149,12 @@
  *     architectures and compilers.
  */
 
-#if defined(__alpha__)
-typedef unsigned long  ucdouble;       /* 64 bits, unsigned */
-typedef unsigned int   uclong;         /* 32 bits, unsigned */
-#else
-typedef unsigned long  uclong;         /* 32 bits, unsigned */
-#endif
-typedef unsigned short ucshort;        /* 16 bits, unsigned */
-typedef unsigned char  ucchar;         /* 8 bits, unsigned */
+#include <asm/types.h>
+
+typedef __u64  ucdouble;       /* 64 bits, unsigned */
+typedef __u32  uclong;         /* 32 bits, unsigned */
+typedef __u16  ucshort;        /* 16 bits, unsigned */
+typedef __u8   ucchar;         /* 8 bits, unsigned */
 
 /*
  *     Memory Window Sizes


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-15 23:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-14 21:57 [PATCH] fix cyclades.h for x86_64 (and probably others) Klaus Kudielka
2007-03-15 19:07 ` Andrew Morton
2007-03-15 23:21   ` Klaus Kudielka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox