76a4939609b8984d41d674efa6e9974e3ceedce5
[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 _PARAM_I386_LINUX22_H_
11 #define _PARAM_I386_LINUX22_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_ENV
29 #define AFS_64BIT_IOPS_ENV  1
30 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
31 #include <afs/afs_sysnames.h>
32
33 #define AFS_USERSPACE_IP_ADDR 1
34 #define RXK_LISTENER_ENV 1
35 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
36
37
38 /* Machine / Operating system information */
39 #define SYS_NAME        "i386_linux22"
40 #define SYS_NAME_ID     SYS_NAME_ID_i386_linux22
41 #define AFSLITTLE_ENDIAN    1
42 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
43 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
44 #define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
45
46 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
47 #include <linux/config.h>
48 #ifdef CONFIG_SMP
49 #undef CONFIG_SMP
50 #endif
51 /* Using "AFS_SMP" to map to however many #define's are required to get
52  * MP to compile for Linux
53  */
54 #ifdef AFS_SMP
55 #define CONFIG_SMP
56 #ifndef CONFIG_X86_LOCAL_APIC
57 #define CONFIG_X86_LOCAL_APIC
58 #endif
59 #define __SMP__
60 #define AFS_GLOBAL_SUNLOCK
61 #endif
62
63 #endif /* __KERNEL__  && !DUMP_KERNEL*/
64
65 #ifdef KERNEL
66 #ifndef MIN
67 #define MIN(A,B) ((A) < (B) ? (A) : (B))
68 #endif
69 #ifndef MAX
70 #define MAX(A,B) ((A) > (B) ? (A) : (B))
71 #endif
72 #endif /* KERNEL */
73
74 #endif /* _PARAM_I386_LINUX20_H_ */