diff options
| author | Adrian Bunk <bunk@stusta.de> | 2007-02-10 04:44:40 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:24 -0500 |
| commit | 7131b6d167b41593463ce98df17e101e776bf5ec (patch) | |
| tree | 3d8ffa2a8ccd5723c37bb9c92bb878148e8be844 /include/linux/byteorder | |
| parent | 3ee75ac3c0f4904633322b7d9b111566fbc4a7d3 (diff) | |
[PATCH] remove include/linux/byteorder/pdp_endian.h
include/linux/byteorder/pdp_endian.h is completely unused, and the comment in
the file itself states that it's both untested and only a proof-of-concept.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/byteorder')
| -rw-r--r-- | include/linux/byteorder/Kbuild | 1 | ||||
| -rw-r--r-- | include/linux/byteorder/pdp_endian.h | 88 |
2 files changed, 0 insertions, 89 deletions
diff --git a/include/linux/byteorder/Kbuild b/include/linux/byteorder/Kbuild index 56499ab9e32e..d39dc0f7c67e 100644 --- a/include/linux/byteorder/Kbuild +++ b/include/linux/byteorder/Kbuild | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | header-y += big_endian.h | 1 | header-y += big_endian.h |
| 2 | header-y += little_endian.h | 2 | header-y += little_endian.h |
| 3 | header-y += pdp_endian.h | ||
| 4 | 3 | ||
| 5 | unifdef-y += generic.h | 4 | unifdef-y += generic.h |
| 6 | unifdef-y += swabb.h | 5 | unifdef-y += swabb.h |
diff --git a/include/linux/byteorder/pdp_endian.h b/include/linux/byteorder/pdp_endian.h deleted file mode 100644 index 618631cbc6e3..000000000000 --- a/include/linux/byteorder/pdp_endian.h +++ /dev/null | |||
| @@ -1,88 +0,0 @@ | |||
| 1 | #ifndef _LINUX_BYTEORDER_PDP_ENDIAN_H | ||
| 2 | #define _LINUX_BYTEORDER_PDP_ENDIAN_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * Could have been named NUXI-endian, but we use the same name as in glibc. | ||
| 6 | * hopefully only the PDP and its evolutions (old VAXen in compatibility mode) | ||
| 7 | * should ever use this braindead byteorder. | ||
| 8 | * This file *should* work, but has not been tested. | ||
| 9 | * | ||
| 10 | * little-endian is 1234; big-endian is 4321; nuxi/pdp-endian is 3412 | ||
| 11 | * | ||
| 12 | * I thought vaxen were NUXI-endian, but was told they were correct-endian | ||
| 13 | * (little-endian), though indeed there existed NUXI-endian machines | ||
| 14 | * (DEC PDP-11 and old VAXen in compatibility mode). | ||
| 15 | * This makes this file a bit useless, but as a proof-of-concept. | ||
| 16 | * | ||
| 17 | * But what does a __u64 look like: is it 34127856 or 78563412 ??? | ||
| 18 | * I don't dare imagine! Hence, no 64-bit byteorder support yet. | ||
| 19 | * Hopefully, there 64-bit pdp-endian support shouldn't ever be required. | ||
| 20 | * | ||
| 21 | */ | ||
| 22 | |||
| 23 | #ifndef __PDP_ENDIAN | ||
| 24 | #define __PDP_ENDIAN 3412 | ||
| 25 | #endif | ||
| 26 | #ifndef __PDP_ENDIAN_BITFIELD | ||
| 27 | #define __PDP_ENDIAN_BITFIELD | ||
| 28 | #endif | ||
| 29 | |||
| 30 | #include <linux/byteorder/swab.h> | ||
| 31 | #include <linux/byteorder/swabb.h> | ||
| 32 | |||
| 33 | #define __constant_htonl(x) ___constant_swahb32((x)) | ||
| 34 | #define __constant_ntohl(x) ___constant_swahb32((x)) | ||
| 35 | #define __constant_htons(x) ___constant_swab16((x)) | ||
| 36 | #define __constant_ntohs(x) ___constant_swab16((x)) | ||
| 37 | #define __constant_cpu_to_le64(x) I DON'T KNOW | ||
| 38 | #define __constant_le64_to_cpu(x) I DON'T KNOW | ||
| 39 | #define __constant_cpu_to_le32(x) ___constant_swahw32((x)) | ||
| 40 | #define __constant_le32_to_cpu(x) ___constant_swahw32((x)) | ||
| 41 | #define __constant_cpu_to_le16(x) ((__u16)(x) | ||
| 42 | #define __constant_le16_to_cpu(x) ((__u16)(x) | ||
| 43 | #define __constant_cpu_to_be64(x) I DON'T KNOW | ||
| 44 | #define __constant_be64_to_cpu(x) I DON'T KNOW | ||
| 45 | #define __constant_cpu_to_be32(x) ___constant_swahb32((x)) | ||
| 46 | #define __constant_be32_to_cpu(x) ___constant_swahb32((x)) | ||
| 47 | #define __constant_cpu_to_be16(x) ___constant_swab16((x)) | ||
| 48 | #define __constant_be16_to_cpu(x) ___constant_swab16((x)) | ||
| 49 | #define __cpu_to_le64(x) I DON'T KNOW | ||
| 50 | #define __le64_to_cpu(x) I DON'T KNOW | ||
| 51 | #define __cpu_to_le32(x) ___swahw32((x)) | ||
| 52 | #define __le32_to_cpu(x) ___swahw32((x)) | ||
| 53 | #define __cpu_to_le16(x) ((__u16)(x) | ||
| 54 | #define __le16_to_cpu(x) ((__u16)(x) | ||
| 55 | #define __cpu_to_be64(x) I DON'T KNOW | ||
| 56 | #define __be64_to_cpu(x) I DON'T KNOW | ||
| 57 | #define __cpu_to_be32(x) __swahb32((x)) | ||
| 58 | #define __be32_to_cpu(x) __swahb32((x)) | ||
| 59 | #define __cpu_to_be16(x) __swab16((x)) | ||
| 60 | #define __be16_to_cpu(x) __swab16((x)) | ||
| 61 | #define __cpu_to_le64p(x) I DON'T KNOW | ||
| 62 | #define __le64_to_cpup(x) I DON'T KNOW | ||
| 63 | #define __cpu_to_le32p(x) ___swahw32p((x)) | ||
| 64 | #define __le32_to_cpup(x) ___swahw32p((x)) | ||
| 65 | #define __cpu_to_le16p(x) (*(__u16*)(x)) | ||
| 66 | #define __le16_to_cpup(x) (*(__u16*)(x)) | ||
| 67 | #define __cpu_to_be64p(x) I DON'T KNOW | ||
| 68 | #define __be64_to_cpup(x) I DON'T KNOW | ||
| 69 | #define __cpu_to_be32p(x) __swahb32p((x)) | ||
| 70 | #define __be32_to_cpup(x) __swahb32p((x)) | ||
| 71 | #define __cpu_to_be16p(x) __swab16p((x)) | ||
| 72 | #define __be16_to_cpup(x) __swab16p((x)) | ||
| 73 | #define __cpu_to_le64s(x) I DON'T KNOW | ||
| 74 | #define __le64_to_cpus(x) I DON'T KNOW | ||
| 75 | #define __cpu_to_le32s(x) ___swahw32s((x)) | ||
| 76 | #define __le32_to_cpus(x) ___swahw32s((x)) | ||
| 77 | #define __cpu_to_le16s(x) do {} while (0) | ||
| 78 | #define __le16_to_cpus(x) do {} while (0) | ||
| 79 | #define __cpu_to_be64s(x) I DON'T KNOW | ||
| 80 | #define __be64_to_cpus(x) I DON'T KNOW | ||
| 81 | #define __cpu_to_be32s(x) __swahb32s((x)) | ||
| 82 | #define __be32_to_cpus(x) __swahb32s((x)) | ||
| 83 | #define __cpu_to_be16s(x) __swab16s((x)) | ||
| 84 | #define __be16_to_cpus(x) __swab16s((x)) | ||
| 85 | |||
| 86 | #include <linux/byteorder/generic.h> | ||
| 87 | |||
| 88 | #endif /* _LINUX_BYTEORDER_PDP_ENDIAN_H */ | ||
