no-copy-libafs-builds-20021015
[openafs.git] / src / config / param.sparc_linux22.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 /* Copyright (C) 1998 by Transarc Corporation */
5
6
7 #ifndef AFS_PARAM_H
8 #define AFS_PARAM_H
9
10 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
11  * it's a judgment call. If something is obviously sparc specific, use that
12  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
13  * in the sysname is the current version of the client. This takes into
14  * account the perferred OS user space configuration as well as the kernel.
15  */
16
17 #define AFS_LINUX20_ENV 1
18 #define AFS_LINUX22_ENV 1
19 #define AFS_SPARC_LINUX20_ENV   1
20 #define AFS_SPARC_LINUX22_ENV   1
21 #define AFS_NONFSTRANS 1
22
23 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
24 #define AFS_SYSCALL 227
25 #define AFS_64BIT_IOPS_ENV  1
26 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
27
28 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
29 #include <linux/config.h>
30 #ifdef CONFIG_SMP
31 #undef CONFIG_SMP
32 #endif
33 /* Using "AFS_SMP" to map to however many #define's are required to get
34  * MP to compile for Linux
35  */
36 #ifdef AFS_SMP
37 #define CONFIG_SMP 1
38 #ifndef __SMP__
39 #define __SMP__
40 #endif
41 #define AFS_GLOBAL_SUNLOCK
42 #endif
43
44 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
45 #define MODVERSIONS
46 #include <linux/modversions.h>
47 #endif
48 #endif /* __KERNEL__  && !DUMP_KERNEL*/
49
50 #include <afs/afs_sysnames.h>
51
52 #define AFS_USERSPACE_IP_ADDR 1
53 #define RXK_LISTENER_ENV 1
54 #define AFS_GCPAGS       2 /* Set to Userdisabled, allow sysctl to override */
55
56 /* Machine / Operating system information */
57 #define SYS_NAME        "sparc_linux22"
58 #define SYS_NAME_ID     SYS_NAME_ID_sparc_linux22
59 #define AFSBIG_ENDIAN    1
60 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
61 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
62 #define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
63
64 #ifdef KERNEL
65 #ifndef MIN
66 #define MIN(A,B) ((A) < (B) ? (A) : (B))
67 #endif
68 #ifndef MAX
69 #define MAX(A,B) ((A) > (B) ? (A) : (B))
70 #endif
71 #endif /* KERNEL */
72
73 #if defined(AFS_SMP) && defined(CONFIG_MODVERSIONS)
74 /* hack, I don't know what else with theese symbols */
75 #define _do_spin_lock _do_spin_lock_R__ver__do_spin_lock
76 #define _do_spin_unlock _do_spin_unlock_R__ver__do_spin_unlock
77 #define kernel_flag kernel_flag_R__ver_kernel_flag
78 #endif
79
80 /* on sparclinux is O_LARGEFILE defined but there is not off64_t,
81    so small hack to get usd_file.c work */
82 #ifndef KERNEL
83 #define __USE_FILE_OFFSET64 1
84 #define __USE_LARGEFILE64 1
85 #if !defined off64_t
86 #define off64_t __off64_t
87 #endif
88 #endif
89
90 #endif /* AFS_PARAM_H */
91
92 #else /* !defined(UKERNEL) */
93
94 /* This section for user space compiles only */
95
96 /* Copyright (C) 1998 by Transarc Corporation */
97
98
99 #ifndef AFS_PARAM_H
100 #define AFS_PARAM_H
101
102 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
103  * it's a judgment call. If something is obviously sparc specific, use that
104  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
105  * in the sysname is the current version of the client. This takes into
106  * account the perferred OS user space configuration as well as the kernel.
107  */
108
109 #define UKERNEL                 1       /* user space kernel */
110 #define AFS_ENV                 1
111 #define AFS_USR_LINUX20_ENV     1
112 #define AFS_USR_LINUX22_ENV     1
113 #define AFS_NONFSTRANS 1
114
115 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
116 #define AFS_SYSCALL 227
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        "sparc_linux22"
128 #define SYS_NAME_ID     SYS_NAME_ID_sparc_linux22
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) */