1
/*********************************************************
2
* Copyright (C) 1998 VMware, Inc. All rights reserved.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License as published by the
6
* Free Software Foundation version 2 and no later version.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13
* You should have received a copy of the GNU General Public License along
14
* with this program; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
*********************************************************/
20
* Sets the proper defines from the Linux header files
22
* This file must be included before the inclusion of any kernel header file,
23
* with the exception of linux/autoconf.h and linux/version.h --hpreg
26
#ifndef __VMX_CONFIG_H__
27
#define __VMX_CONFIG_H__
29
#define INCLUDE_ALLOW_VMCORE
30
#define INCLUDE_ALLOW_VMMON
31
#define INCLUDE_ALLOW_MODULE
32
#define INCLUDE_ALLOW_VMNIXMOD
33
#include "includeCheck.h"
35
#include <linux/autoconf.h>
36
#include "compat_version.h"
39
* We rely on Kernel Module support. Check here.
41
#ifndef CONFIG_MODULES
42
# error "No Module support in this kernel. Please configure with CONFIG_MODULES"
46
* 2.2 kernels still use __SMP__ (derived from CONFIG_SMP
47
* in the main Makefile), so we do it here.
54
#if defined(CONFIG_MODVERSIONS) && defined(KERNEL_2_1)
55
# if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,60)
57
* MODVERSIONS might be already defined when using kernel's Makefiles.
62
# include <linux/modversions.h>
66
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24)
68
* Force the uintptr_t definition to come from linux/types.h instead of vm_basic_types.h.
70
# include <linux/types.h>