b88c0c01ea31cfe074589aba68024fb3d9eaca9f
[openafs.git] / src / config / param.ppc_linux24.h
1 #ifndef _PARAM_PPC_LINUX24_H_
2 #define _PARAM_PPC_LINUX24_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_LINUX24_ENV        1
14 #define AFS_PPC_LINUX20_ENV    1
15 #define AFS_PPC_LINUX22_ENV    1
16 #define AFS_PPC_LINUX24_ENV    1
17 #define AFS_NONFSTRANS 1
18
19 #define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
20 #define AFS_SYSCALL 137
21 #define AFS_64BIT_IOPS_ENV  1
22 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
23 #include <afs/afs_sysnames.h>
24
25 #define AFS_USERSPACE_IP_ADDR 1
26 #define RXK_LISTENER_ENV 1
27 #define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
28
29
30 /* Machine / Operating system information */
31 #define SYS_NAME       "ppc_linux24"
32 #define SYS_NAME_ID    SYS_NAME_ID_ppc_linux24
33 #define AFSBIG_ENDIAN    1
34 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
35 #define AFS_HAVE_STATVFS    0  /* System doesn't support statvfs */
36 #define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
37
38 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
39 #include <linux/config.h>
40 #ifdef CONFIG_SMP
41 #undef CONFIG_SMP
42 #endif
43 /* Using "AFS_SMP" to map to however many #define's are required to get
44  * MP to compile for Linux
45  */
46 #ifdef AFS_SMP
47 #define CONFIG_SMP
48 #define __SMP__
49 #define AFS_GLOBAL_SUNLOCK
50 #endif
51
52 #endif /* __KERNEL__  && !DUMP_KERNEL*/
53
54 #ifdef KERNEL
55 #ifndef MIN
56 #define MIN(A,B) ((A) < (B) ? (A) : (B))
57 #endif
58 #ifndef MAX
59 #define MAX(A,B) ((A) > (B) ? (A) : (B))
60 #endif
61 #endif /* KERNEL */
62
63 #endif /* _PARAM_PPC_LINUX24_H_ */