Two hda_verb.h files: Add more comments.
[coreboot.git] / src / arch / i386 / include / arch / byteorder.h
1 #ifndef _BYTEORDER_H
2 #define _BYTEORDER_H
3
4 #define __LITTLE_ENDIAN 1234
5
6 #include <swab.h>
7
8 #define cpu_to_le32(x) ((unsigned int)(x))
9 #define le32_to_cpu(x) ((unsigned int)(x))
10 #define cpu_to_le16(x) ((unsigned short)(x))
11 #define le16_to_cpu(x) ((unsigned short)(x))
12 #define cpu_to_be32(x) swab32((x))
13 #define be32_to_cpu(x) swab32((x))
14 #define cpu_to_be16(x) swab16((x))
15 #define be16_to_cpu(x) swab16((x))
16
17 #define ntohl(x) be32_to_cpu(x)
18 #define htonl(x) cpu_to_be32(x)
19
20 #endif /* _BYTEORDER_H */