blob: bea714990f0f3253b76c5ac34d2d9d37eb487df3 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _LINUX_PATCHKEY_H_INDIRECT
8#error "patchkey.h included directly"
Nick Kralevicha67e4de2013-01-14 11:28:26 -08009#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070010#ifndef _UAPI_LINUX_PATCHKEY_H
Ben Cheng655a7c02013-10-16 16:09:24 -070011#define _UAPI_LINUX_PATCHKEY_H
12#include <endian.h>
13#ifdef __BYTE_ORDER
14#if __BYTE_ORDER == __BIG_ENDIAN
Tao Baod7db5942015-01-28 10:07:51 -080015#define _PATCHKEY(id) (0xfd00 | id)
16#elif __BYTE_ORDER==__LITTLE_ENDIAN
17#define _PATCHKEY(id) ((id << 8) | 0x00fd)
Ben Cheng655a7c02013-10-16 16:09:24 -070018#else
Ben Cheng655a7c02013-10-16 16:09:24 -070019#error "could not determine byte order"
20#endif
21#endif
22#endif