tbutc-make-tsm-a-configure-option-20011009
[openafs.git] / src / config / param.i386_linux22.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef AFS_PARAM_H
11 #define AFS_PARAM_H
12
13 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
14  * it's a judgment call. If something is obviously i386 specific, use that
15  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
16  * in the sysname is the current version of the client. This takes into
17  * account the perferred OS user space configuration as well as the kernel.
18  */
19
20 #define AFS_LINUX20_ENV 1
21 #define AFS_LINUX22_ENV 1
22 #define AFS_I386_LINUX20_ENV    1
23 #define AFS_I386_LINUX22_ENV    1
24 #define AFS_NONFSTRANS 1
25
26 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
27 #define AFS_SYSCALL 137
28 #define AFS_64BIT_IOPS_ENV  1
29 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
30
31 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
32 #include <linux/config.h>
33 #ifdef CONFIG_SMP
34 #undef CONFIG_SMP
35 #endif
36 /* Using "AFS_SMP" to map to however many #define's are required to get
37  * MP to compile for Linux
38  */
39 #ifdef AFS_SMP
40 #define CONFIG_SMP
41 #ifndef CONFIG_X86_LOCAL_APIC
42 #define CONFIG_X86_LOCAL_APIC
43 #endif
44 #ifndef __SMP__
45 #define __SMP__
46 #endif
47 #define AFS_GLOBAL_SUNLOCK
48 #endif
49
50 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
51 #define MODVERSIONS
52 #include <linux/modversions.h>
53 #endif
54
55 #endif /* __KERNEL__  && !DUMP_KERNEL*/
56
57 #include <afs/afs_sysnames.h>
58
59 #define AFS_USERSPACE_IP_ADDR 1
60 #define RXK_LISTENER_ENV 1
61 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
62
63 /* Machine / Operating system information */
64 #define SYS_NAME        "i386_linux22"
65 #define SYS_NAME_ID     SYS_NAME_ID_i386_linux22
66 #define AFSLITTLE_ENDIAN    1
67 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
68 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
69 #define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
70
71 #ifdef KERNEL
72 #ifndef MIN
73 #define MIN(A,B) ((A) < (B) ? (A) : (B))
74 #endif
75 #ifndef MAX
76 #define MAX(A,B) ((A) > (B) ? (A) : (B))
77 #endif
78 #endif /* KERNEL */
79
80 #endif /* AFS_PARAM_H */