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