X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=include%2Fbyteorder.h;fp=include%2Fbyteorder.h;h=2403afe7f1c9b859c57e97c46d451150462747a3;hb=f4ebbd9f7ea23e3f0fcbe098754580c220894628;hp=0000000000000000000000000000000000000000;hpb=f42aaadb5c8c5f7f15e5159cbc251e64e1a4ac8f;p=yaboot.git diff --git a/include/byteorder.h b/include/byteorder.h new file mode 100644 index 0000000..2403afe --- /dev/null +++ b/include/byteorder.h @@ -0,0 +1,13 @@ +#ifndef _BYTEORDER_H_ +#define _BYTEORDER_H_ + +#include "swab.h" + +# define le64_to_cpu(x) swab64((x)) +# define cpu_to_le64(x) swab64((x)) +# define le32_to_cpu(x) swab32((x)) +# define cpu_to_le32(x) swab32((x)) +# define le16_to_cpu(x) swab16((x)) +# define cpu_to_le16(x) swab16((x)) + +#endif /* _BYTEORDER_H_ */