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