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