• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #include <asm/byteorder.h>
20 #define CFI_HOST_ENDIAN
21 #ifdef CFI_LITTLE_ENDIAN
22 #define cpu_to_cfi8(x) (x)
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define cfi8_to_cpu(x) (x)
25 #define cpu_to_cfi16(x) cpu_to_le16(x)
26 #define cpu_to_cfi32(x) cpu_to_le32(x)
27 #define cpu_to_cfi64(x) cpu_to_le64(x)
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define cfi16_to_cpu(x) le16_to_cpu(x)
30 #define cfi32_to_cpu(x) le32_to_cpu(x)
31 #define cfi64_to_cpu(x) le64_to_cpu(x)
32 #elif defined (CFI_BIG_ENDIAN)
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define cpu_to_cfi8(x) (x)
35 #define cfi8_to_cpu(x) (x)
36 #define cpu_to_cfi16(x) cpu_to_be16(x)
37 #define cpu_to_cfi32(x) cpu_to_be32(x)
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define cpu_to_cfi64(x) cpu_to_be64(x)
40 #define cfi16_to_cpu(x) be16_to_cpu(x)
41 #define cfi32_to_cpu(x) be32_to_cpu(x)
42 #define cfi64_to_cpu(x) be64_to_cpu(x)
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #elif defined (CFI_HOST_ENDIAN)
45 #define cpu_to_cfi8(x) (x)
46 #define cfi8_to_cpu(x) (x)
47 #define cpu_to_cfi16(x) (x)
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define cpu_to_cfi32(x) (x)
50 #define cpu_to_cfi64(x) (x)
51 #define cfi16_to_cpu(x) (x)
52 #define cfi32_to_cpu(x) (x)
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define cfi64_to_cpu(x) (x)
55 #else
56 #error No CFI endianness defined
57 #endif
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59