blob: 46ab5dcddad3274d8175c314a3a208eb82015d6c [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#include <asm/byteorder.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080020#define CFI_HOST_ENDIAN
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#ifdef CFI_LITTLE_ENDIAN
22#define cpu_to_cfi8(x) (x)
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#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)
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029#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)
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034#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)
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039#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)
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044#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)
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049#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)
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054#define cfi64_to_cpu(x) (x)
55#else
56#error No CFI endianness defined
57#endif
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */