|
Lines 30-35
Link Here
|
| 30 |
#include <linux/byteorder/swab.h> |
30 |
#include <linux/byteorder/swab.h> |
| 31 |
#include <linux/byteorder/swabb.h> |
31 |
#include <linux/byteorder/swabb.h> |
| 32 |
|
32 |
|
|
|
33 |
#if defined(__KERNEL__) |
| 34 |
|
| 33 |
#define __constant_htonl(x) ___constant_swahb32((x)) |
35 |
#define __constant_htonl(x) ___constant_swahb32((x)) |
| 34 |
#define __constant_ntohl(x) ___constant_swahb32((x)) |
36 |
#define __constant_ntohl(x) ___constant_swahb32((x)) |
| 35 |
#define __constant_htons(x) ___constant_swab16((x)) |
37 |
#define __constant_htons(x) ___constant_swab16((x)) |
|
Lines 83-88
Link Here
|
| 83 |
#define __cpu_to_be16s(x) __swab16s((x)) |
85 |
#define __cpu_to_be16s(x) __swab16s((x)) |
| 84 |
#define __be16_to_cpus(x) __swab16s((x)) |
86 |
#define __be16_to_cpus(x) __swab16s((x)) |
| 85 |
|
87 |
|
|
|
88 |
#endif /* __KERNEL__ */ |
| 89 |
|
| 86 |
#include <linux/byteorder/generic.h> |
90 |
#include <linux/byteorder/generic.h> |
| 87 |
|
91 |
|
| 88 |
#endif /* _LINUX_BYTEORDER_PDP_ENDIAN_H */ |
92 |
#endif /* _LINUX_BYTEORDER_PDP_ENDIAN_H */ |