~ubuntu-branches/ubuntu/warty/openafs/warty

« back to all changes in this revision

Viewing changes to src/config/param.amd64_linux24.h

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-01-10 16:37:33 UTC
  • Revision ID: james.westby@ubuntu.com-20040110163733-jvr0n1uahshlb1uu
Tags: upstream-1.2.11
ImportĀ upstreamĀ versionĀ 1.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 amd64 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_AMD64_LINUX20_ENV   1
 
28
#define AFS_AMD64_LINUX22_ENV   1
 
29
#define AFS_AMD64_LINUX24_ENV   1
 
30
#define AFS_LINUX_64BIT_KERNEL 1
 
31
#define AFS_NONFSTRANS 1
 
32
 
 
33
#define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
 
34
#define AFS_SYSCALL 183
 
35
#define AFS_64BIT_IOPS_ENV  1
 
36
#define AFS_NAMEI_ENV     1   /* User space interface to file system */
 
37
 
 
38
#define AFS_64BIT_ENV           1     /* Defines afs_int32 as int, not long. */
 
39
 
 
40
#define AFS_64BITPOINTER_ENV    1     /* pointers are 64 bits. */
 
41
 
 
42
#if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
 
43
#include <linux/threads.h>
 
44
 
 
45
#include <linux/config.h>
 
46
#ifdef CONFIG_SMP
 
47
#undef CONFIG_SMP
 
48
#endif
 
49
/* Using "AFS_SMP" to map to however many #define's are required to get
 
50
 * MP to compile for Linux
 
51
 */
 
52
#ifdef AFS_SMP
 
53
#define CONFIG_SMP 1
 
54
#ifndef __SMP__
 
55
#define __SMP__
 
56
#endif
 
57
#define AFS_GLOBAL_SUNLOCK
 
58
#endif
 
59
 
 
60
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
 
61
#define MODVERSIONS
 
62
#include <linux/modversions.h>
 
63
#endif
 
64
 
 
65
#endif /* __KERNEL__  && !DUMP_KERNEL*/
 
66
 
 
67
#include <afs/afs_sysnames.h>
 
68
 
 
69
#define AFS_USERSPACE_IP_ADDR 1
 
70
#define RXK_LISTENER_ENV 1
 
71
#define AFS_GCPAGS       2 /* Set to Userdisabled, allow sysctl to override */
 
72
 
 
73
/* Machine / Operating system information */
 
74
#define SYS_NAME        "amd64_linux24"
 
75
#define SYS_NAME_ID     SYS_NAME_ID_amd64_linux24
 
76
#define AFSLITTLE_ENDIAN    1
 
77
#define AFS_HAVE_FFS        1       /* Use system's ffs. */
 
78
#define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
 
79
#define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
 
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
#define USE_UCONTEXT            /* should be in afsconfig.h */
 
91
 
 
92
#endif /* _PARAM_AMD64_LINUX20_H_ */
 
93
 
 
94
#else /* !defined(UKERNEL) */
 
95
 
 
96
/* This section for user space compiles only */
 
97
 
 
98
/* 
 
99
 * Copyright 2000, International Business Machines Corporation and others.
 
100
 * All Rights Reserved.
 
101
 * 
 
102
 * This software has been released under the terms of the IBM Public
 
103
 * License.  For details, see the LICENSE file in the top-level source
 
104
 * directory or online at http://www.openafs.org/dl/license10.html
 
105
 */
 
106
 
 
107
 
 
108
#ifndef AFS_PARAM_H
 
109
#define AFS_PARAM_H
 
110
 
 
111
/* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
 
112
 * it's a judgment call. If something is obviously amd64 specific, use that
 
113
 * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
 
114
 * in the sysname is the current version of the client. This takes into
 
115
 * account the perferred OS user space configuration as well as the kernel.
 
116
 */
 
117
 
 
118
#define UKERNEL                 1       /* user space kernel */
 
119
#define AFS_ENV                 1
 
120
#define AFS_USR_LINUX20_ENV     1
 
121
#define AFS_USR_LINUX22_ENV     1
 
122
#define AFS_USR_LINUX24_ENV     1
 
123
#define AFS_NONFSTRANS 1
 
124
 
 
125
#define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
 
126
#define AFS_SYSCALL 183
 
127
#define AFS_64BIT_IOPS_ENV  1
 
128
#define AFS_NAMEI_ENV     1   /* User space interface to file system */
 
129
#include <afs/afs_sysnames.h>
 
130
 
 
131
#define AFS_USERSPACE_IP_ADDR 1
 
132
#define RXK_LISTENER_ENV 1
 
133
#define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
 
134
 
 
135
 
 
136
/* Machine / Operating system information */
 
137
#define SYS_NAME        "amd64_linux24"
 
138
#define SYS_NAME_ID     SYS_NAME_ID_amd64_linux24
 
139
#define AFSLITTLE_ENDIAN    1
 
140
#define AFS_HAVE_FFS        1       /* Use system's ffs. */
 
141
#define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
 
142
#define AFS_VM_RDWR_ENV     1   /* read/write implemented via VM */
 
143
 
 
144
#define afsio_iov       uio_iov
 
145
#define afsio_iovcnt    uio_iovcnt
 
146
#define afsio_offset    uio_offset
 
147
#define afsio_seg       uio_segflg
 
148
#define afsio_fmode     uio_fmode
 
149
#define afsio_resid     uio_resid
 
150
#define AFS_UIOSYS      1
 
151
#define AFS_UIOUSER     UIO_USERSPACE
 
152
#define AFS_CLBYTES     MCLBYTES
 
153
#define AFS_MINCHANGE   2
 
154
#define VATTR_NULL      usr_vattr_null
 
155
 
 
156
#define AFS_DIRENT
 
157
#ifndef CMSERVERPREF
 
158
#define CMSERVERPREF
 
159
#endif
 
160
 
 
161
#define USE_UCONTEXT            /* should be in afsconfig.h */
 
162
 
 
163
#endif /* AFS_PARAM_H */
 
164
 
 
165
#endif /* !defined(UKERNEL) */