DEVEL15-unix-mkvers-xml-20090526
[openafs.git] / src / config / param.ppc64_linux26.h
1 #ifndef UKERNEL
2 #ifndef AFS_PARAM_H
3 #define AFS_PARAM_H
4
5 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
6  * it's a judgment call. If something is obviously ppc64 specific, use that
7  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
8  * in the sysname is the current version of the client. This takes into
9  * account the perferred OS user space configuration as well as the kernel.
10  */
11
12 #define AFS_LINUX20_ENV        1
13 #define AFS_LINUX22_ENV        1
14 #define AFS_LINUX24_ENV        1
15 #define AFS_LINUX26_ENV        1
16 #define AFS_PPC64_LINUX20_ENV  1
17 #define AFS_PPC64_LINUX22_ENV  1
18 #define AFS_PPC64_LINUX24_ENV  1
19 #define AFS_PPC64_LINUX26_ENV        1
20 #define AFS_LINUX_64BIT_KERNEL 1
21
22 #define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
23 #define AFS_SYSCALL 137
24 #define AFS_64BIT_IOPS_ENV  1
25 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
26
27 #define AFS_64BIT_ENV          1     /* Defines afs_int32 as int, not long. */
28 #define AFS_64BIT_CLIENT        1
29
30 #define AFS_64BITPOINTER_ENV   1     /* pointers are 64 bits. */
31 #define AFS_MAXVCOUNT_ENV       1
32
33 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
34
35 #ifdef CONFIG_SMP
36 #ifndef AFS_SMP
37 #define AFS_SMP 1
38 #endif
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 #ifndef CONFIG_SMP
45 #define CONFIG_SMP 1
46 #endif
47 #ifndef __SMP__
48 #define __SMP__
49 #endif
50 #endif
51 #define AFS_GLOBAL_SUNLOCK
52
53 #endif /* __KERNEL__  && !DUMP_KERNEL*/
54
55 #include <afs/afs_sysnames.h>
56
57 #define AFS_USERSPACE_IP_ADDR 1
58 #define RXK_LISTENER_ENV 1
59 #define AFS_GCPAGS       1
60
61 /* Machine / Operating system information */
62 #define SYS_NAME       "ppc64_linux26"
63 #define SYS_NAME_ID    SYS_NAME_ID_ppc64_linux26
64 #define AFSBIG_ENDIAN    0
65 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
66 #define AFS_HAVE_STATVFS    0  /* System doesn't support statvfs */
67 #define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
68 #define AFS_USE_GETTIMEOFDAY       1    /* use gettimeofday to implement rx clock */
69
70 #ifdef KERNEL
71 #ifndef MIN
72 #define MIN(A,B) ((A) < (B) ? (A) : (B))
73 #endif
74 #ifndef MAX
75 #define MAX(A,B) ((A) > (B) ? (A) : (B))
76 #endif
77 #endif /* KERNEL */
78
79 #ifdef __GLIBC__
80 #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
81 #define USE_UCONTEXT
82 #endif
83 #endif
84
85 #endif /* _PARAM_PPC64_LINUX20_H_ */
86
87 #else /* !defined(UKERNEL) */
88
89 /* This section for user space compiles only */
90
91 /* 
92  * Copyright 2000, International Business Machines Corporation and others.
93  * All Rights Reserved.
94  * 
95  * This software has been released under the terms of the IBM Public
96  * License.  For details, see the LICENSE file in the top-level source
97  * directory or online at http://www.openafs.org/dl/license10.html
98  */
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 ppc64 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_USR_LINUX24_ENV    1
116 #define AFS_USR_LINUX26_ENV    1
117 #define AFS_NONFSTRANS 1
118
119 #define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
120 #define AFS_SYSCALL 137
121 #define AFS_64BIT_IOPS_ENV  1
122 #define AFS_64BIT_ENV           1       /* Defines afs_int32 as int, not long. */
123 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
124 #include <afs/afs_sysnames.h>
125
126 #define AFS_USERSPACE_IP_ADDR 1
127 #define RXK_LISTENER_ENV 1
128 #define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
129
130
131 /* Machine / Operating system information */
132 #define SYS_NAME       "ppc64_linux26"
133 #define SYS_NAME_ID    SYS_NAME_ID_ppc64_linux26
134 #define AFSBIG_ENDIAN    1
135 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
136 #define AFS_HAVE_STATVFS    0  /* System doesn't support statvfs */
137 #define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
138
139 #define        afsio_iov       uio_iov
140 #define        afsio_iovcnt    uio_iovcnt
141 #define        afsio_offset    uio_offset
142 #define        afsio_seg       uio_segflg
143 #define        afsio_fmode     uio_fmode
144 #define        afsio_resid     uio_resid
145 #define        AFS_UIOSYS      1
146 #define        AFS_UIOUSER     UIO_USERSPACE
147 #define        AFS_CLBYTES     MCLBYTES
148 #define        AFS_MINCHANGE   2
149 #define        VATTR_NULL      usr_vattr_null
150
151 #define AFS_DIRENT
152 #ifndef CMSERVERPREF
153 #define CMSERVERPREF
154 #endif
155
156 #endif /* AFS_PARAM_H */
157
158 #endif /* !defined(UKERNEL) */