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 32