windows-updates-20021104
[openafs.git] / src / config / param.i386_linux22.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 /*
5  * Copyright 2000, International Business Machines Corporation and others.
6  * All Rights Reserved.
7  * 
8  * This software has been released under the terms of the IBM Public
9  * License.  For details, see the LICENSE file in the top-level source
10  * directory or online at http://www.openafs.org/dl/license10.html
11  */
12
13 #ifndef AFS_PARAM_H
14 #define AFS_PARAM_H
15
16 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
17  * it's a judgment call. If something is obviously i386 specific, use that
18  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
19  * in the sysname is the current version of the client. This takes into
20  * account the perferred OS user space configuration as well as the kernel.
21  */
22
23 #define AFS_LINUX20_ENV 1
24 #define AFS_LINUX22_ENV 1
25 #define AFS_I386_LINUX20_ENV    1
26 #define AFS_I386_LINUX22_ENV    1
27 #define AFS_NONFSTRANS 1
28
29 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
30 #define AFS_SYSCALL 137
31 #define AFS_64BIT_IOPS_ENV  1
32 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
33
34 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
35 #include <linux/config.h>
36 #ifdef CONFIG_SMP
37 #undef CONFIG_SMP
38 #endif
39 /* Using "AFS_SMP" to map to however many #define's are required to get
40  * MP to compile for Linux
41  */
42 #ifdef AFS_SMP
43 #define CONFIG_SMP 1
44 #ifndef CONFIG_X86_LOCAL_APIC
45 #define CONFIG_X86_LOCAL_APIC 1
46 #endif
47 #ifndef __SMP__
48 #define __SMP__
49 #endif
50 #define AFS_GLOBAL_SUNLOCK
51 #endif
52
53 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
54 #define MODVERSIONS
55 #include <linux/modversions.h>
56 #endif
57
58 #endif /* __KERNEL__  && !DUMP_KERNEL*/
59
60 #include <afs/afs_sysnames.h>
61
62 #define AFS_USERSPACE_IP_ADDR 1
63 #define RXK_LISTENER_ENV 1
64 #define AFS_GCPAGS       2 /* Set to Userdisabled, allow sysctl to override */
65
66
67 /* Machine / Operating system information */
68 #define SYS_NAME        "i386_linux22"
69 #define SYS_NAME_ID     SYS_NAME_ID_i386_linux22
70 #define AFSLITTLE_ENDIAN    1
71 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
72 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
73 #define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
74
75 #ifdef KERNEL
76 #ifndef MIN
77 #define MIN(A,B) ((A) < (B) ? (A) : (B))
78 #endif
79 #ifndef MAX
80 #define MAX(A,B) ((A) > (B) ? (A) : (B))
81 #endif
82 #endif /* KERNEL */
83
84 #endif /* AFS_PARAM_H */
85
86 #else /* !defined(UKERNEL) */
87
88 /* This section for user space compiles only */
89
90 /*
91  * Copyright 2000, International Business Machines Corporation and others.
92  * All Rights Reserved.
93  * 
94  * This software has been released under the terms of the IBM Public
95  * License.  For details, see the LICENSE file in the top-level source
96  * directory or online at http://www.openafs.org/dl/license10.html
97  */
98
99 #ifndef AFS_PARAM_H
100 #define AFS_PARAM_H
101
102 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
103  * it's a judgment call. If something is obviously i386 specific, use that
104  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
105  * in the sysname is the current version of the client. This takes into
106  * account the perferred OS user space configuration as well as the kernel.
107  */
108
109 #define UKERNEL                 1       /* user space kernel */
110 #define AFS_ENV                 1
111 #define AFS_USR_LINUX20_ENV     1
112 #define AFS_USR_LINUX22_ENV     1
113 #define AFS_NONFSTRANS 1
114
115 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
116 #define AFS_SYSCALL 137
117 #define AFS_64BIT_IOPS_ENV  1
118 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
119 #include <afs/afs_sysnames.h>
120
121 #define AFS_USERSPACE_IP_ADDR 1
122 #define RXK_LISTENER_ENV 1
123 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
124
125
126 /* Machine / Operating system information */
127 #define SYS_NAME        "i386_linux22"
128 #define SYS_NAME_ID     SYS_NAME_ID_i386_linux22
129 #define AFSLITTLE_ENDIAN    1
130 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
131 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
132 #define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
133
134 #define afsio_iov       uio_iov
135 #define afsio_iovcnt    uio_iovcnt
136 #define afsio_offset    uio_offset
137 #define afsio_seg       uio_segflg
138 #define afsio_fmode     uio_fmode
139 #define afsio_resid     uio_resid
140 #define AFS_UIOSYS      1
141 #define AFS_UIOUSER     UIO_USERSPACE
142 #define AFS_CLBYTES     MCLBYTES
143 #define AFS_MINCHANGE   2
144 #define VATTR_NULL      usr_vattr_null
145
146 #define AFS_DIRENT
147 #ifndef CMSERVERPREF
148 #define CMSERVERPREF
149 #endif
150
151 #endif /* AFS_PARAM_H */
152
153 #endif /* !defined(UKERNEL) */