xref: /aosp_15_r20/prebuilts/build-tools/sysroots/x86_64-unknown-linux-musl/include/linux/patchkey.h (revision cda5da8d549138a6648c5ee6d7a49cf8f4a657be)
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _LINUX_PATCHKEY_H_INDIRECT
8 #error "patchkey.h included directly"
9 #endif
10 #ifndef _UAPI_LINUX_PATCHKEY_H
11 #define _UAPI_LINUX_PATCHKEY_H
12 #include <endian.h>
13 #ifdef __BYTE_ORDER
14 #if __BYTE_ORDER == __BIG_ENDIAN
15 #define _PATCHKEY(id) (0xfd00 | id)
16 #elif __BYTE_ORDER==__LITTLE_ENDIAN
17 #define _PATCHKEY(id) ((id << 8) | 0x00fd)
18 #else
19 #error "could not determine byte order"
20 #endif
21 #endif
22 #endif
23