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