3ba85d18dee9b977aff5b334d91212bddaa7fabc
[openafs.git] / src / config / param.alpha_linux_26.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 #ifndef AFS_PARAM_H
5 #define AFS_PARAM_H
6
7 /* Linux 2.2.16 kernel on Alpha with glibc 2.2 */
8
9 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
10  * it's a judgment call. If something is obviously sparc64 specific, use that
11  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
12  * in the sysname is the current version of the client. This takes into
13  * account the perferred OS user space configuration as well as the kernel.
14  */
15
16 #define AFS_LINUX20_ENV        1
17 #define AFS_LINUX22_ENV        1
18 #define AFS_LINUX24_ENV     1
19 #define AFS_LINUX26_ENV     1
20 #define AFS_ALPHA_LINUX20_ENV  1
21 #define AFS_ALPHA_LINUX22_ENV  1
22 #define AFS_ALPHA_LINUX24_ENV  1
23 #define AFS_ALPHA_LINUX26_ENV  1
24 #define __alpha        1
25 #define AFS_LINUX_64BIT_KERNEL 1
26
27 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
28 #define AFS_SYSCALL 338
29 #define AFS_64BIT_IOPS_ENV  1
30 #define AFS_NAMEI_ENV     1     /* User space interface to file system */
31
32 #define AFS_64BIT_ENV          1
33 #define AFS_64BIT_CLIENT       1
34 #define AFS_64BITPOINTER_ENV   1       /* pointers are 64 bits */
35
36
37 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
38 #include <linux/threads.h>
39
40 #include <linux/config.h>
41 #ifdef CONFIG_SMP
42 #ifndef AFS_SMP
43 #define AFS_SMP 1
44 #endif
45 #endif
46 /* Using "AFS_SMP" to map to however many #define's are required to get
47  * MP to compile for Linux
48  */
49 #ifdef AFS_SMP
50 #ifndef CONFIG_SMP
51 #define CONFIG_SMP 1
52 #endif
53 #ifndef __SMP__
54 #define __SMP__
55 #endif
56 #endif
57 #define AFS_GLOBAL_SUNLOCK
58 #endif /* __KERNEL__  && !DUMP_KERNEL */
59
60 #include <afs/afs_sysnames.h>
61 #define AFS_USERSPACE_IP_ADDR 1
62 #define RXK_LISTENER_ENV 1
63 #define AFS_GCPAGS       1
64
65 #define AFSLITTLE_ENDIAN    1
66 #define AFS_HAVE_FFS        1   /* Use system's ffs. */
67 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
68 #define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
69 #define AFS_USE_GETTIMEOFDAY       1    /* use gettimeofday to implement rx clock */
70
71 #ifdef KERNEL
72 #ifndef MIN
73 #define MIN(A,B) ((A) < (B) ? (A) : (B))
74 #endif
75 #ifndef MAX
76 #define MAX(A,B) ((A) > (B) ? (A) : (B))
77 #endif
78 #endif /* KERNEL */
79
80 /* Machine / Operating system information */
81 #define SYS_NAME       "alpha_linux_26"
82 #define SYS_NAME_ID    SYS_NAME_ID_alpha_linux_26
83
84
85 #endif /* AFS_PARAM_H */
86                                      
87 #else /* !defined(UKERNEL) */
88
89 #ifndef AFS_PARAM_H
90 #define AFS_PARAM_H
91
92
93 #define UKERNEL                        1        /* user space kernel */
94 #define AFS_ENV                        1
95 #define AFS_USR_LINUX20_ENV    1
96 #define AFS_USR_LINUX22_ENV    1
97 #define AFS_USR_LINUX24_ENV    1
98 #define AFS_USR_LINUX26_ENV    1
99 #define AFS_NONFSTRANS 1
100
101 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
102 #define AFS_SYSCALL 338
103 #define AFS_64BIT_IOPS_ENV  1
104 #define AFS_NAMEI_ENV     1     /* User space interface to file system */
105 #include <afs/afs_sysnames.h>
106
107 #define AFS_USERSPACE_IP_ADDR 1
108 #define RXK_LISTENER_ENV 1
109 #define AFS_GCPAGS             0        /* if nonzero, garbage collect PAGs */
110
111
112 /* Machine / Operating system information */
113 #define SYS_NAME       "alpha_linux_26"
114 #define SYS_NAME_ID    SYS_NAME_ID_alpha_linux_26
115 #define AFSLITTLE_ENDIAN    1
116 #define AFS_HAVE_FFS        1   /* Use system's ffs. */
117 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
118 #define AFS_VM_RDWR_ENV            1    /* read/write implemented via VM */
119
120 #define        afsio_iov       uio_iov
121 #define        afsio_iovcnt    uio_iovcnt
122 #define        afsio_offset    uio_offset
123 #define        afsio_seg       uio_segflg
124 #define        afsio_fmode     uio_fmode
125 #define        afsio_resid     uio_resid
126 #define        AFS_UIOSYS      1
127 #define        AFS_UIOUSER     UIO_USERSPACE
128 #define        AFS_CLBYTES     MCLBYTES
129 #define        AFS_MINCHANGE   2
130 #define        VATTR_NULL      usr_vattr_null
131
132 #define AFS_DIRENT
133 #ifndef CMSERVERPREF
134 #define CMSERVERPREF
135 #endif
136
137 #endif /* AFS_PARAM_H */
138
139 #endif /* !defined(UKERNEL) */