linux-ppc64-fixes-20040202
[openafs.git] / src / config / param.ppc64_linux24.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_PPC64_LINUX20_ENV  1
16 #define AFS_PPC64_LINUX22_ENV  1
17 #define AFS_PPC64_LINUX24_ENV  1
18 #define AFS_LINUX_64BIT_KERNEL 1
19 #define AFS_NONFSTRANS 1
20
21 #define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
22 #define AFS_SYSCALL 137
23 #define AFS_64BIT_IOPS_ENV  1
24 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
25
26 #define AFS_64BIT_ENV          1     /* Defines afs_int32 as int, not long. */
27
28 #define AFS_64BITPOINTER_ENV   1     /* pointers are 64 bits. */
29
30 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
31 #include <linux/threads.h>
32
33 #include <linux/config.h>
34 #ifdef CONFIG_SMP
35 #undef CONFIG_SMP
36 #endif
37 /* Using "AFS_SMP" to map to however many #define's are required to get
38  * MP to compile for Linux
39  */
40 #ifdef AFS_SMP
41 #define CONFIG_SMP 1
42 #ifndef __SMP__
43 #define __SMP__
44 #endif
45 #define AFS_GLOBAL_SUNLOCK
46 #endif
47
48 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
49 #define MODVERSIONS
50 #include <linux/modversions.h>
51 #endif
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       2 /* Set to Userdisabled, allow sysctl to override */
60
61 /* Machine / Operating system information */
62 #define SYS_NAME       "ppc64_linux24"
63 #define SYS_NAME_ID    SYS_NAME_ID_ppc64_linux24
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
69 #ifdef KERNEL
70 #ifndef MIN
71 #define MIN(A,B) ((A) < (B) ? (A) : (B))
72 #endif
73 #ifndef MAX
74 #define MAX(A,B) ((A) > (B) ? (A) : (B))
75 #endif
76 #endif /* KERNEL */
77
78 #endif /* _PARAM_PPC64_LINUX20_H_ */
79
80 #else /* !defined(UKERNEL) */
81
82 /* This section for user space compiles only */
83
84 /* 
85  * Copyright 2000, International Business Machines Corporation and others.
86  * All Rights Reserved.
87  * 
88  * This software has been released under the terms of the IBM Public
89  * License.  For details, see the LICENSE file in the top-level source
90  * directory or online at http://www.openafs.org/dl/license10.html
91  */
92
93
94 #ifndef AFS_PARAM_H
95 #define AFS_PARAM_H
96
97 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
98  * it's a judgment call. If something is obviously ppc64 specific, use that
99  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
100  * in the sysname is the current version of the client. This takes into
101  * account the perferred OS user space configuration as well as the kernel.
102  */
103
104 #define UKERNEL                        1       /* user space kernel */
105 #define AFS_ENV                        1
106 #define AFS_USR_LINUX20_ENV    1
107 #define AFS_USR_LINUX22_ENV    1
108 #define AFS_USR_LINUX24_ENV    1
109 #define AFS_NONFSTRANS 1
110
111 #define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
112 #define AFS_SYSCALL 137
113 #define AFS_64BIT_IOPS_ENV  1
114 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
115 #include <afs/afs_sysnames.h>
116
117 #define AFS_USERSPACE_IP_ADDR 1
118 #define RXK_LISTENER_ENV 1
119 #define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
120
121
122 /* Machine / Operating system information */
123 #define SYS_NAME       "ppc64_linux24"
124 #define SYS_NAME_ID    SYS_NAME_ID_ppc64_linux24
125 #define AFSBIG_ENDIAN    1
126 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
127 #define AFS_HAVE_STATVFS    0  /* System doesn't support statvfs */
128 #define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
129
130 #define        afsio_iov       uio_iov
131 #define        afsio_iovcnt    uio_iovcnt
132 #define        afsio_offset    uio_offset
133 #define        afsio_seg       uio_segflg
134 #define        afsio_fmode     uio_fmode
135 #define        afsio_resid     uio_resid
136 #define        AFS_UIOSYS      1
137 #define        AFS_UIOUSER     UIO_USERSPACE
138 #define        AFS_CLBYTES     MCLBYTES
139 #define        AFS_MINCHANGE   2
140 #define        VATTR_NULL      usr_vattr_null
141
142 #define AFS_DIRENT
143 #ifndef CMSERVERPREF
144 #define CMSERVERPREF
145 #endif
146
147 #endif /* AFS_PARAM_H */
148
149 #endif /* !defined(UKERNEL) */