f68aacd2792126266ec5848f38168cfc237bae0c
[openafs.git] / src / config / param.ppc_linux22.h
1 #ifndef AFS_PARAM_H
2 #define AFS_PARAM_H
3
4 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
5  * it's a judgment call. If something is obviously ppc specific, use that
6  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
7  * in the sysname is the current version of the client. This takes into
8  * account the perferred OS user space configuration as well as the kernel.
9  */
10
11 #define AFS_LINUX20_ENV        1
12 #define AFS_LINUX22_ENV        1
13 #define AFS_PPC_LINUX20_ENV    1
14 #define AFS_PPC_LINUX22_ENV    1
15 #define AFS_NONFSTRANS 1
16
17 #define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
18 #define AFS_SYSCALL 137
19 #define AFS_64BIT_IOPS_ENV  1
20 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
21
22 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
23 #include <linux/config.h>
24 #ifdef CONFIG_SMP
25 #undef CONFIG_SMP
26 #endif
27 /* Using "AFS_SMP" to map to however many #define's are required to get
28  * MP to compile for Linux
29  */
30 #ifdef AFS_SMP
31 #define CONFIG_SMP 1
32 #ifndef __SMP__
33 #define __SMP__
34 #endif
35 #define AFS_GLOBAL_SUNLOCK
36 #endif
37
38 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
39 #define MODVERSIONS
40 #include <linux/modversions.h>
41 #endif
42
43 #endif /* __KERNEL__  && !DUMP_KERNEL*/
44
45 #include <afs/afs_sysnames.h>
46
47 #define AFS_USERSPACE_IP_ADDR 1
48 #define RXK_LISTENER_ENV 1
49 #define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
50
51
52 /* Machine / Operating system information */
53 #define SYS_NAME       "ppc_linux22"
54 #define SYS_NAME_ID    SYS_NAME_ID_ppc_linux22
55 #define AFSBIG_ENDIAN    1
56 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
57 #define AFS_HAVE_STATVFS    0  /* System doesn't support statvfs */
58 #define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
59
60 #ifdef KERNEL
61 #ifndef MIN
62 #define MIN(A,B) ((A) < (B) ? (A) : (B))
63 #endif
64 #ifndef MAX
65 #define MAX(A,B) ((A) > (B) ? (A) : (B))
66 #endif
67 #endif /* KERNEL */
68
69 #endif /* AFS_PARAM_H */