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