~n-muench/ubuntu/quantal/open-vm-tools/open-vm-tools.may2.sid-sync

« back to all changes in this revision

Viewing changes to modules/linux/pvscsi/driver-config.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-30 09:48:43 UTC
  • mfrom: (1.1.5 upstream) (2.4.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090530094843-gdpza57r5iqsf124
Tags: 2009.05.22-167859-1
MergingĀ upstreamĀ versionĀ 2009.05.22-167859.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*********************************************************
2
 
 * Copyright (C) 1998 VMware, Inc. All rights reserved.
3
 
 *
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.
7
 
 *
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
11
 
 * for more details.
12
 
 *
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
16
 
 *
17
 
 *********************************************************/
18
 
 
19
 
/*
20
 
 * Sets the proper defines from the Linux header files
21
 
 *
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
24
 
 */
25
 
 
26
 
#ifndef __VMX_CONFIG_H__
27
 
#define __VMX_CONFIG_H__
28
 
 
29
 
#define INCLUDE_ALLOW_VMCORE
30
 
#define INCLUDE_ALLOW_VMMON
31
 
#define INCLUDE_ALLOW_MODULE
32
 
#define INCLUDE_ALLOW_VMNIXMOD
33
 
#include "includeCheck.h"
34
 
 
35
 
#include <linux/autoconf.h>
36
 
#include "compat_version.h"
37
 
 
38
 
/*
39
 
 * We rely on Kernel Module support.  Check here.
40
 
 */
41
 
#ifndef CONFIG_MODULES
42
 
#   error "No Module support in this kernel.  Please configure with CONFIG_MODULES"
43
 
#endif
44
 
 
45
 
/*
46
 
 * 2.2 kernels still use __SMP__ (derived from CONFIG_SMP
47
 
 * in the main Makefile), so we do it here.
48
 
 */
49
 
 
50
 
#ifdef CONFIG_SMP
51
 
#   define __SMP__ 1
52
 
#endif
53
 
 
54
 
#if defined(CONFIG_MODVERSIONS) && defined(KERNEL_2_1)
55
 
#   if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,60)
56
 
/*
57
 
 * MODVERSIONS might be already defined when using kernel's Makefiles.
58
 
 */
59
 
#      ifndef MODVERSIONS
60
 
#         define MODVERSIONS
61
 
#      endif
62
 
#      include <linux/modversions.h>
63
 
#   endif
64
 
#endif
65
 
 
66
 
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24)
67
 
/*
68
 
 * Force the uintptr_t definition to come from linux/types.h instead of vm_basic_types.h.
69
 
 */
70
 
#   include <linux/types.h>
71
 
#   define _STDINT_H 1
72
 
#endif
73
 
 
74
 
#ifndef __KERNEL__
75
 
#   define __KERNEL__
76
 
#endif
77
 
 
78
 
#endif