0cb6c2a50fbfbe73519325715763adbaa2de11de
[openafs.git] / src / config / param.sparc_linux24.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 /* 
5  * Copyright 2000, International Business Machines Corporation and others.
6  * All Rights Reserved.
7  * 
8  * This software has been released under the terms of the IBM Public
9  * License.  For details, see the LICENSE file in the top-level source
10  * directory or online at http://www.openafs.org/dl/license10.html
11  */
12
13 #ifndef AFS_PARAM_H
14 #define AFS_PARAM_H
15
16 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
17  * it's a judgment call. If something is obviously sparc specific, use that
18  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
19  * in the sysname is the current version of the client. This takes into
20  * account the perferred OS user space configuration as well as the kernel.
21  */
22
23 #define AFS_LINUX20_ENV 1
24 #define AFS_LINUX22_ENV 1
25 #define AFS_LINUX24_ENV 1
26 #define AFS_SPARC_LINUX20_ENV   1
27 #define AFS_SPARC_LINUX22_ENV   1
28 #define AFS_SPARC_LINUX24_ENV   1
29 #define AFS_NONFSTRANS 1
30
31 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
32 #define AFS_SYSCALL 227
33 #define AFS_64BIT_ENV   1
34 #define AFS_64BIT_CLIENT        1
35 #define AFS_64BIT_IOPS_ENV  1
36 #define AFS_NAMEI_ENV     1     /* User space interface to file system */
37 #define AFS_MAXVCOUNT_ENV       1
38
39 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
40
41 #ifdef CONFIG_SMP
42 #undef CONFIG_SMP
43 #endif
44 /* Using "AFS_SMP" to map to however many #define's are required to get
45  * MP to compile for Linux
46  */
47 #ifdef AFS_SMP
48 #define CONFIG_SMP 1
49 #ifndef __SMP__
50 #define __SMP__
51 #endif
52 #endif
53 #define AFS_GLOBAL_SUNLOCK
54
55 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
56 #define MODVERSIONS
57 #include <linux/modversions.h>
58 #endif
59 #endif /* __KERNEL__  && !DUMP_KERNEL */
60
61 #include <afs/afs_sysnames.h>
62
63 #define AFS_USERSPACE_IP_ADDR 1
64 #define RXK_LISTENER_ENV 1
65 #define AFS_GCPAGS       1
66
67 /* Machine / Operating system information */
68 #define SYS_NAME        "sparc_linux24"
69 #define SYS_NAME_ID     SYS_NAME_ID_sparc_linux24
70 #define AFSBIG_ENDIAN    1
71 #define AFS_HAVE_FFS        1   /* Use system's ffs. */
72 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
73 #define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
74 #define AFS_USE_GETTIMEOFDAY       1    /* use gettimeofday to implement rx clock */
75
76 #ifdef KERNEL
77 #ifndef MIN
78 #define MIN(A,B) ((A) < (B) ? (A) : (B))
79 #endif
80 #ifndef MAX
81 #define MAX(A,B) ((A) > (B) ? (A) : (B))
82 #endif
83 #endif /* KERNEL */
84
85 #if defined(AFS_SMP) && defined(CONFIG_MODVERSIONS)
86 /* hack, I don't know what else with theese symbols */
87 #define _do_spin_lock _do_spin_lock_R__ver__do_spin_lock
88 #define _do_spin_unlock _do_spin_unlock_R__ver__do_spin_unlock
89 #define kernel_flag kernel_flag_R__ver_kernel_flag
90 #endif
91
92 /* on sparclinux is O_LARGEFILE defined but there is not off64_t,
93    so small hack to get usd_file.c work */
94 #ifndef KERNEL
95 #define __USE_FILE_OFFSET64 1
96 #define __USE_LARGEFILE64 1
97 #if !defined off64_t
98 #define off64_t __off64_t
99 #endif
100 #endif
101
102 /* Don't define USE_UCONTEXT on this platform.  It requires getcontext and
103    setcontext from glibc, which aren't implemented for 32-bit SPARC. */
104
105 #endif /* AFS_PARAM_H */
106
107 #else /* !defined(UKERNEL) */
108
109 /* This section for user space compiles only */
110
111 /* 
112  * Copyright 2000, International Business Machines Corporation and others.
113  * All Rights Reserved.
114  * 
115  * This software has been released under the terms of the IBM Public
116  * License.  For details, see the LICENSE file in the top-level source
117  * directory or online at http://www.openafs.org/dl/license10.html
118  */
119
120 #ifndef AFS_PARAM_H
121 #define AFS_PARAM_H
122
123 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
124  * it's a judgment call. If something is obviously sparc specific, use that
125  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
126  * in the sysname is the current version of the client. This takes into
127  * account the perferred OS user space configuration as well as the kernel.
128  */
129
130 #define UKERNEL                 1       /* user space kernel */
131 #define AFS_ENV                 1
132 #define AFS_USR_LINUX20_ENV     1
133 #define AFS_USR_LINUX22_ENV     1
134 #define AFS_USR_LINUX24_ENV     1
135 #define AFS_NONFSTRANS 1
136
137 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
138 #define AFS_SYSCALL 227
139 #define AFS_64BIT_IOPS_ENV  1
140 #define AFS_NAMEI_ENV     1     /* User space interface to file system */
141 #include <afs/afs_sysnames.h>
142
143 #define AFS_USERSPACE_IP_ADDR 1
144 #define RXK_LISTENER_ENV 1
145 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
146
147
148 /* Machine / Operating system information */
149 #define SYS_NAME        "sparc_linux24"
150 #define SYS_NAME_ID     SYS_NAME_ID_sparc_linux24
151 #define AFSBIG_ENDIAN    1
152 #define AFS_HAVE_FFS        1   /* Use system's ffs. */
153 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
154 #define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
155 #define AFS_USE_GETTIMEOFDAY       1    /* use gettimeofday to implement rx clock */
156
157 #define afsio_iov       uio_iov
158 #define afsio_iovcnt    uio_iovcnt
159 #define afsio_offset    uio_offset
160 #define afsio_seg       uio_segflg
161 #define afsio_fmode     uio_fmode
162 #define afsio_resid     uio_resid
163 #define AFS_UIOSYS      1
164 #define AFS_UIOUSER     UIO_USERSPACE
165 #define AFS_CLBYTES     MCLBYTES
166 #define AFS_MINCHANGE   2
167 #define VATTR_NULL      usr_vattr_null
168
169 #define AFS_DIRENT
170 #ifndef CMSERVERPREF
171 #define CMSERVERPREF
172 #endif
173
174 #endif /* AFS_PARAM_H */
175
176 #endif /* !defined(UKERNEL) */