reindent-20030715
[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_IOPS_ENV  1
34 #define AFS_NAMEI_ENV     1     /* User space interface to file system */
35
36 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
37 #include <linux/threads.h>
38
39 #include <linux/config.h>
40 #ifdef CONFIG_SMP
41 #undef CONFIG_SMP
42 #endif
43 /* Using "AFS_SMP" to map to however many #define's are required to get
44  * MP to compile for Linux
45  */
46 #ifdef AFS_SMP
47 #define CONFIG_SMP 1
48 #ifndef __SMP__
49 #define __SMP__
50 #endif
51 #define AFS_GLOBAL_SUNLOCK
52 #endif
53
54 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
55 #define MODVERSIONS
56 #include <linux/modversions.h>
57 #endif
58 #endif /* __KERNEL__  && !DUMP_KERNEL */
59
60 #include <afs/afs_sysnames.h>
61
62 #define AFS_USERSPACE_IP_ADDR 1
63 #define RXK_LISTENER_ENV 1
64 #define AFS_GCPAGS       2      /* Set to Userdisabled, allow sysctl to override */
65
66 /* Machine / Operating system information */
67 #define SYS_NAME        "sparc_linux24"
68 #define SYS_NAME_ID     SYS_NAME_ID_sparc_linux24
69 #define AFSBIG_ENDIAN    1
70 #define AFS_HAVE_FFS        1   /* Use system's ffs. */
71 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
72 #define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
73
74 #ifdef KERNEL
75 #ifndef MIN
76 #define MIN(A,B) ((A) < (B) ? (A) : (B))
77 #endif
78 #ifndef MAX
79 #define MAX(A,B) ((A) > (B) ? (A) : (B))
80 #endif
81 #endif /* KERNEL */
82
83 #if defined(AFS_SMP) && defined(CONFIG_MODVERSIONS)
84 /* hack, I don't know what else with theese symbols */
85 #define _do_spin_lock _do_spin_lock_R__ver__do_spin_lock
86 #define _do_spin_unlock _do_spin_unlock_R__ver__do_spin_unlock
87 #define kernel_flag kernel_flag_R__ver_kernel_flag
88 #endif
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 /* AFS_PARAM_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 AFS_PARAM_H
116 #define AFS_PARAM_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 sparc 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_NONFSTRANS 1
131
132 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
133 #define AFS_SYSCALL 227
134 #define AFS_64BIT_IOPS_ENV  1
135 #define AFS_NAMEI_ENV     1     /* User space interface to file system */
136 #include <afs/afs_sysnames.h>
137
138 #define AFS_USERSPACE_IP_ADDR 1
139 #define RXK_LISTENER_ENV 1
140 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
141
142
143 /* Machine / Operating system information */
144 #define SYS_NAME        "sparc_linux24"
145 #define SYS_NAME_ID     SYS_NAME_ID_sparc_linux24
146 #define AFSBIG_ENDIAN    1
147 #define AFS_HAVE_FFS        1   /* Use system's ffs. */
148 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
149 #define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
150
151 #define afsio_iov       uio_iov
152 #define afsio_iovcnt    uio_iovcnt
153 #define afsio_offset    uio_offset
154 #define afsio_seg       uio_segflg
155 #define afsio_fmode     uio_fmode
156 #define afsio_resid     uio_resid
157 #define AFS_UIOSYS      1
158 #define AFS_UIOUSER     UIO_USERSPACE
159 #define AFS_CLBYTES     MCLBYTES
160 #define AFS_MINCHANGE   2
161 #define VATTR_NULL      usr_vattr_null
162
163 #define AFS_DIRENT
164 #ifndef CMSERVERPREF
165 #define CMSERVERPREF
166 #endif
167
168 #endif /* AFS_PARAM_H */
169
170 #endif /* !defined(UKERNEL) */