Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _LINUX_PATCHKEY_H_INDIRECT |
| 8 | #error "patchkey.h included directly" |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 9 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 10 | #ifndef _UAPI_LINUX_PATCHKEY_H |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #define _UAPI_LINUX_PATCHKEY_H |
| 12 | #include <endian.h> |
| 13 | #ifdef __BYTE_ORDER |
| 14 | #if __BYTE_ORDER == __BIG_ENDIAN |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 15 | #define _PATCHKEY(id) (0xfd00 | id) |
| 16 | #elif __BYTE_ORDER==__LITTLE_ENDIAN |
| 17 | #define _PATCHKEY(id) ((id << 8) | 0x00fd) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 18 | #else |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #error "could not determine byte order" |
| 20 | #endif |
| 21 | #endif |
| 22 | #endif |