#ifndef __INSN_X86_USER_H #define __INSN_X86_USER_H /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Copyright (C) IBM Corporation, 2009 */ #ifdef __x86_64__ #define CONFIG_X86_64 #else #define CONFIG_X86_32 #endif typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; typedef unsigned long long u64; typedef signed char s8; typedef short s16; typedef int s32; typedef long long s64; typedef enum bool { false, true } bool; /* any harmless file-scope decl */ #define NOP_DECL struct __nop #define EXPORT_SYMBOL_GPL(symbol) NOP_DECL #define MODULE_LICENSE(gpl) NOP_DECL #define WARN_ON(cond) do{}while(0) #define BITS_PER_LONG (8*sizeof(long)) /* from arch/x86/include/asm/bitops.h */ static inline int test_bit(int nr, const volatile unsigned long *addr) { return ((1UL << (nr % BITS_PER_LONG)) & (((unsigned long *)addr)[nr / BITS_PER_LONG])) != 0; } #endif /* __INSN_X86_USER_H */