OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / prebuilt / ndk / android-ndk-r4 / platforms / android-4 / arch-arm / usr / include / linux / patchkey.h
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  ****************************************************************************
11  ****************************************************************************/
12 #ifndef _LINUX_PATCHKEY_H_INDIRECT
13 #error "patchkey.h included directly"
14 #endif
15
16 #ifndef _LINUX_PATCHKEY_H
17 #define _LINUX_PATCHKEY_H
18
19 #include <endian.h>
20
21 #ifdef __BYTE_ORDER
22 #if __BYTE_ORDER == __BIG_ENDIAN
23 #define _PATCHKEY(id) (0xfd00|id)
24 #elif __BYTE_ORDER == __LITTLE_ENDIAN
25 #define _PATCHKEY(id) ((id<<8)|0x00fd)
26 #else
27 #error "could not determine byte order"
28 #endif
29 #endif
30
31 #endif