|
|
|
@ -1,264 +0,0 @@ |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# Please add additional copyright information _after_ the line containing |
|
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by |
|
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! |
|
|
|
# |
|
|
|
# ROCK Linux: rock-src/package/base/linux/linux26/75-linux-types_h.patch |
|
|
|
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf |
|
|
|
# |
|
|
|
# This patch file is dual-licensed. It is available under the license the |
|
|
|
# patched project is licensed under, as long as it is an OpenSource license |
|
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
|
|
|
# of the GNU General Public License as published by the Free Software |
|
|
|
# Foundation; either version 2 of the License, or (at your option) any later |
|
|
|
# version. |
|
|
|
# |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
diff -dur linux-2.6.10/include/linux/byteorder/big_endian.h linux-2.6.10/include/linux-p/byteorder/big_endian.h
|
|
|
|
--- linux-2.6.10/include/linux/byteorder/big_endian.h 2004-12-27 08:39:23.000000000 +0000
|
|
|
|
+++ linux-2.6.10/include/linux-p/byteorder/big_endian.h 2004-12-29 08:03:51.021207112 +0000
|
|
|
|
@@ -10,36 +10,62 @@
|
|
|
|
|
|
|
|
#include <linux/types.h> |
|
|
|
#include <linux/byteorder/swab.h> |
|
|
|
-
|
|
|
|
+
|
|
|
|
#define __constant_htonl(x) ((__force __be32)(__u32)(x)) |
|
|
|
#define __constant_ntohl(x) ((__force __u32)(__be32)(x)) |
|
|
|
#define __constant_htons(x) ((__force __be16)(__u16)(x)) |
|
|
|
#define __constant_ntohs(x) ((__force __u16)(__be16)(x)) |
|
|
|
+
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
#define __constant_cpu_to_le64(x) ((__force __le64)___constant_swab64((x))) |
|
|
|
#define __constant_le64_to_cpu(x) ___constant_swab64((__force __u64)(__le64)(x)) |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define __constant_cpu_to_le32(x) ((__force __le32)___constant_swab32((x))) |
|
|
|
#define __constant_le32_to_cpu(x) ___constant_swab32((__force __u32)(__le32)(x)) |
|
|
|
#define __constant_cpu_to_le16(x) ((__force __le16)___constant_swab16((x))) |
|
|
|
#define __constant_le16_to_cpu(x) ___constant_swab16((__force __u16)(__le16)(x)) |
|
|
|
+
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
#define __constant_cpu_to_be64(x) ((__force __be64)(__u64)(x)) |
|
|
|
#define __constant_be64_to_cpu(x) ((__force __u64)(__be64)(x)) |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define __constant_cpu_to_be32(x) ((__force __be32)(__u32)(x)) |
|
|
|
#define __constant_be32_to_cpu(x) ((__force __u32)(__be32)(x)) |
|
|
|
#define __constant_cpu_to_be16(x) ((__force __be16)(__u16)(x)) |
|
|
|
#define __constant_be16_to_cpu(x) ((__force __u16)(__be16)(x)) |
|
|
|
+
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
#define __cpu_to_le64(x) ((__force __le64)__swab64((x))) |
|
|
|
#define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x)) |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define __cpu_to_le32(x) ((__force __le32)__swab32((x))) |
|
|
|
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) |
|
|
|
#define __cpu_to_le16(x) ((__force __le16)__swab16((x))) |
|
|
|
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) |
|
|
|
+
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
#define __cpu_to_be64(x) ((__force __be64)(__u64)(x)) |
|
|
|
#define __be64_to_cpu(x) ((__force __u64)(__be64)(x)) |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define __cpu_to_be32(x) ((__force __be32)(__u32)(x)) |
|
|
|
#define __be32_to_cpu(x) ((__force __u32)(__be32)(x)) |
|
|
|
#define __cpu_to_be16(x) ((__force __be16)(__u16)(x)) |
|
|
|
#define __be16_to_cpu(x) ((__force __u16)(__be16)(x)) |
|
|
|
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
static inline __le64 __cpu_to_le64p(const __u64 *p) |
|
|
|
{ |
|
|
|
return (__force __le64)__swab64p(p); |
|
|
|
@@ -48,6 +74,9 @@
|
|
|
|
{ |
|
|
|
return __swab64p((__u64 *)p); |
|
|
|
} |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
static inline __le32 __cpu_to_le32p(const __u32 *p) |
|
|
|
{ |
|
|
|
return (__force __le32)__swab32p(p); |
|
|
|
@@ -64,6 +93,9 @@
|
|
|
|
{ |
|
|
|
return __swab16p((__u16 *)p); |
|
|
|
} |
|
|
|
+
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
static inline __be64 __cpu_to_be64p(const __u64 *p) |
|
|
|
{ |
|
|
|
return (__force __be64)*p; |
|
|
|
@@ -72,6 +104,9 @@
|
|
|
|
{ |
|
|
|
return (__force __u64)*p; |
|
|
|
} |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
static inline __be32 __cpu_to_be32p(const __u32 *p) |
|
|
|
{ |
|
|
|
return (__force __be32)*p; |
|
|
|
@@ -88,14 +123,26 @@
|
|
|
|
{ |
|
|
|
return (__force __u16)*p; |
|
|
|
} |
|
|
|
+
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
#define __cpu_to_le64s(x) __swab64s((x)) |
|
|
|
#define __le64_to_cpus(x) __swab64s((x)) |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define __cpu_to_le32s(x) __swab32s((x)) |
|
|
|
#define __le32_to_cpus(x) __swab32s((x)) |
|
|
|
#define __cpu_to_le16s(x) __swab16s((x)) |
|
|
|
#define __le16_to_cpus(x) __swab16s((x)) |
|
|
|
+
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
#define __cpu_to_be64s(x) do {} while (0) |
|
|
|
#define __be64_to_cpus(x) do {} while (0) |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define __cpu_to_be32s(x) do {} while (0) |
|
|
|
#define __be32_to_cpus(x) do {} while (0) |
|
|
|
#define __cpu_to_be16s(x) do {} while (0) |
|
|
|
diff -dur linux-2.6.10/include/linux/byteorder/little_endian.h linux-2.6.10/include/linux-p/byteorder/little_endian.h
|
|
|
|
--- linux-2.6.10/include/linux/byteorder/little_endian.h 2004-12-27 08:39:23.000000000 +0000
|
|
|
|
+++ linux-2.6.10/include/linux-p/byteorder/little_endian.h 2004-12-29 08:05:45.593789432 +0000
|
|
|
|
@@ -15,31 +15,57 @@
|
|
|
|
#define __constant_ntohl(x) ___constant_swab32((__force __be32)(x)) |
|
|
|
#define __constant_htons(x) ((__force __be16)___constant_swab16((x))) |
|
|
|
#define __constant_ntohs(x) ___constant_swab16((__force __be16)(x)) |
|
|
|
+
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
#define __constant_cpu_to_le64(x) ((__force __le64)(__u64)(x)) |
|
|
|
#define __constant_le64_to_cpu(x) ((__force __u64)(__le64)(x)) |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define __constant_cpu_to_le32(x) ((__force __le32)(__u32)(x)) |
|
|
|
#define __constant_le32_to_cpu(x) ((__force __u32)(__le32)(x)) |
|
|
|
#define __constant_cpu_to_le16(x) ((__force __le16)(__u16)(x)) |
|
|
|
#define __constant_le16_to_cpu(x) ((__force __u16)(__le16)(x)) |
|
|
|
+
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
#define __constant_cpu_to_be64(x) ((__force __be64)___constant_swab64((x))) |
|
|
|
#define __constant_be64_to_cpu(x) ___constant_swab64((__force __u64)(__be64)(x)) |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define __constant_cpu_to_be32(x) ((__force __be32)___constant_swab32((x))) |
|
|
|
#define __constant_be32_to_cpu(x) ___constant_swab32((__force __u32)(__be32)(x)) |
|
|
|
#define __constant_cpu_to_be16(x) ((__force __be16)___constant_swab16((x))) |
|
|
|
#define __constant_be16_to_cpu(x) ___constant_swab16((__force __u16)(__be16)(x)) |
|
|
|
+
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
#define __cpu_to_le64(x) ((__force __le64)(__u64)(x)) |
|
|
|
#define __le64_to_cpu(x) ((__force __u64)(__le64)(x)) |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define __cpu_to_le32(x) ((__force __le32)(__u32)(x)) |
|
|
|
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) |
|
|
|
#define __cpu_to_le16(x) ((__force __le16)(__u16)(x)) |
|
|
|
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) |
|
|
|
+
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
#define __cpu_to_be64(x) ((__force __be64)__swab64((x))) |
|
|
|
#define __be64_to_cpu(x) __swab64((__force __u64)(__be64)(x)) |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define __cpu_to_be32(x) ((__force __be32)__swab32((x))) |
|
|
|
#define __be32_to_cpu(x) __swab32((__force __u32)(__be32)(x)) |
|
|
|
#define __cpu_to_be16(x) ((__force __be16)__swab16((x))) |
|
|
|
#define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x)) |
|
|
|
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
static inline __le64 __cpu_to_le64p(const __u64 *p) |
|
|
|
{ |
|
|
|
return (__force __le64)*p; |
|
|
|
@@ -48,6 +74,9 @@
|
|
|
|
{ |
|
|
|
return (__force __u64)*p; |
|
|
|
} |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
static inline __le32 __cpu_to_le32p(const __u32 *p) |
|
|
|
{ |
|
|
|
return (__force __le32)*p; |
|
|
|
@@ -64,6 +93,9 @@
|
|
|
|
{ |
|
|
|
return (__force __u16)*p; |
|
|
|
} |
|
|
|
+
|
|
|
|
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
|
|
|
+
|
|
|
|
static inline __be64 __cpu_to_be64p(const __u64 *p) |
|
|
|
{ |
|
|
|
return (__force __be64)__swab64p(p); |
|
|
|
@@ -72,6 +104,9 @@
|
|
|
|
{ |
|
|
|
return __swab64p((__u64 *)p); |
|
|
|
} |
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
static inline __be32 __cpu_to_be32p(const __u32 *p) |
|
|
|
{ |
|
|
|
return (__force __be32)__swab32p(p); |
|
|
|
diff -dur linux-2.6.10/include/linux/types.h linux-2.6.10/include/linux-p/types.h
|
|
|
|
--- linux-2.6.10/include/linux/types.h 2004-12-27 08:39:26.000000000 +0000
|
|
|
|
+++ linux-2.6.10/include/linux-p/types.h 2004-12-29 08:07:33.782342272 +0000
|
|
|
|
@@ -131,6 +131,12 @@
|
|
|
|
#ifndef HAVE_SECTOR_T |
|
|
|
typedef unsigned long sector_t; |
|
|
|
#endif |
|
|
|
+#endif /* __KERNEL_STRICT_NAMES */
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * Below are truly Linux-specific types that should never collide with
|
|
|
|
+ * any application/library that wants linux/types.h.
|
|
|
|
+ */
|
|
|
|
|
|
|
|
/* |
|
|
|
* The type of an index into the pagecache. Use a #define so asm/types.h |
|
|
|
@@ -140,13 +146,6 @@
|
|
|
|
#define pgoff_t unsigned long |
|
|
|
#endif |
|
|
|
|
|
|
|
-#endif /* __KERNEL_STRICT_NAMES */
|
|
|
|
-
|
|
|
|
-/*
|
|
|
|
- * Below are truly Linux-specific types that should never collide with
|
|
|
|
- * any application/library that wants linux/types.h.
|
|
|
|
- */
|
|
|
|
-
|
|
|
|
#ifdef __CHECKER__ |
|
|
|
#define __bitwise __attribute__((bitwise)) |
|
|
|
#else |