X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=include%2Flinux%2Ftypes.h;h=82bf905b11ee24fd7a3c87a3d5df95a16e93bb75;hb=c0eb5f0c0ed17249b6c2f361f108b1fd6c85d658;hp=206ef0cc9e596139367d4aff4c8ca11ffebe4d82;hpb=e72388a0aa23da8bc8e24a0cbe9d523c5a9ce294;p=carl9170fw.git diff --git a/include/linux/types.h b/include/linux/types.h index 206ef0c..82bf905 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -21,6 +21,7 @@ #include #include #include +#include #if BYTE_ORDER == BIG_ENDIAN #error "big endian is not supported by target" @@ -54,4 +55,27 @@ typedef int64_t __s64; #define cpu_to_le64(x) ((__le64)(uint64_t)(x)) #define le64_to_cpu(x) ((uint64_t)(__le64)(x)) +typedef uint16_t __be16; +typedef uint32_t __be32; +typedef uint64_t __be64; + +#define cpu_to_be64 __cpu_to_be64 +#define be64_to_cpu __be64_to_cpu +#define cpu_to_be32 __cpu_to_be32 +#define be32_to_cpu __be32_to_cpu +#define cpu_to_be16 __cpu_to_be16 +#define be16_to_cpu __be16_to_cpu +#define cpu_to_be64p __cpu_to_be64p +#define be64_to_cpup __be64_to_cpup +#define cpu_to_be32p __cpu_to_be32p +#define be32_to_cpup __be32_to_cpup +#define cpu_to_be16p __cpu_to_be16p +#define cpu_to_be64s __cpu_to_be64s +#define be64_to_cpus __be64_to_cpus +#define cpu_to_be32s __cpu_to_be32s +#define be32_to_cpus __be32_to_cpus +#define cpu_to_be16s __cpu_to_be16s +#define be16_to_cpus __be16_to_cpus +#define be16_to_cpup __be16_to_cpup + #endif /* __LINUX_TYPES_H */