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