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