2 /* This section for kernel libafs compiles only */
5 * Copyright 2000, International Business Machines Corporation and others.
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
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.
24 #define AFS_LINUX20_ENV 1
25 #define AFS_LINUX22_ENV 1
26 #define AFS_LINUX24_ENV 1
27 #define AFS_S390_LINUX20_ENV 1
28 #define AFS_S390_LINUX22_ENV 1
29 #define AFS_S390_LINUX24_ENV 1
30 #define AFS_NONFSTRANS 1
32 #define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
33 #define AFS_SYSCALL 137
34 #define AFS_64BIT_ENV 1
35 #define AFS_64BIT_CLIENT 1
36 #define AFS_64BIT_IOPS_ENV 1
37 #define AFS_NAMEI_ENV 1 /* User space interface to file system */
39 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
40 #include <linux/threads.h>
42 #include <linux/config.h>
46 /* Using "AFS_SMP" to map to however many #define's are required to get
47 * MP to compile for Linux
51 #ifndef CONFIG_S390_LOCAL_APIC
52 #define CONFIG_S390_LOCAL_APIC 1
58 #define AFS_GLOBAL_SUNLOCK
59 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
61 #include <linux/modversions.h>
63 #endif /* __KERNEL__ && !DUMP_KERNEL */
65 #include <afs/afs_sysnames.h>
67 #define AFS_USERSPACE_IP_ADDR 1
68 #define RXK_LISTENER_ENV 1
69 #define AFS_GCPAGS 2 /* Set to Userdisabled, allow sysctl to override */
71 /* Machine / Operating system information */
72 #define SYS_NAME "s390_linux24"
73 #define SYS_NAME_ID SYS_NAME_ID_s390_linux24
74 #define AFSBIG_ENDIAN 1
75 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
76 #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */
77 #define AFS_VM_RDWR_ENV 1 /* read/write implemented via VM */
78 #define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */
82 #define MIN(A,B) ((A) < (B) ? (A) : (B))
85 #define MAX(A,B) ((A) > (B) ? (A) : (B))
89 #endif /* AFS_PARAM_H */
91 #else /* !defined(UKERNEL) */
93 /* This section for user space compiles only */
96 * Copyright 2000, International Business Machines Corporation and others.
97 * All Rights Reserved.
99 * This software has been released under the terms of the IBM Public
100 * License. For details, see the LICENSE file in the top-level source
101 * directory or online at http://www.openafs.org/dl/license10.html
107 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
108 * it's a judgment call. If something is obviously s390 specific, use that
109 * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
110 * in the sysname is the current version of the client. This takes into
111 * account the perferred OS user space configuration as well as the kernel.
114 #define UKERNEL 1 /* user space kernel */
116 #define AFS_USR_LINUX20_ENV 1
117 #define AFS_USR_LINUX22_ENV 1
118 #define AFS_USR_LINUX24_ENV 1
119 #define AFS_NONFSTRANS 1
121 #define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
122 #define AFS_SYSCALL 137
123 #define AFS_64BIT_IOPS_ENV 1
124 #define AFS_NAMEI_ENV 1 /* User space interface to file system */
125 #include <afs/afs_sysnames.h>
127 #define AFS_USERSPACE_IP_ADDR 1
128 #define RXK_LISTENER_ENV 1
129 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
132 /* Machine / Operating system information */
133 #define SYS_NAME "s390_linux24"
134 #define SYS_NAME_ID SYS_NAME_ID_s390_linux24
135 #define AFSBIG_ENDIAN 1
136 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
137 #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */
138 #define AFS_VM_RDWR_ENV 1 /* read/write implemented via VM */
140 #define afsio_iov uio_iov
141 #define afsio_iovcnt uio_iovcnt
142 #define afsio_offset uio_offset
143 #define afsio_seg uio_segflg
144 #define afsio_fmode uio_fmode
145 #define afsio_resid uio_resid
147 #define AFS_UIOUSER UIO_USERSPACE
148 #define AFS_CLBYTES MCLBYTES
149 #define AFS_MINCHANGE 2
150 #define VATTR_NULL usr_vattr_null
157 #endif /* AFS_PARAM_H */
159 #endif /* !defined(UKERNEL) */