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