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