3a910def2015757612fbe41401b6798655551503
[openafs.git] / src / rx / rx_kcommon.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /*
11  * rx_kcommon.h - Common kernel RX header for all system types.
12  */
13
14 #ifdef UKERNEL
15 #include <UKERNEL/rx_kcommon.h>
16 #else
17
18 #ifndef _RX_KCOMMON_H_
19 #define _RX_KCOMMON_H_
20
21 #ifdef AFS_LINUX22_ENV
22 #define _LINUX_CODA_FS_I 1
23 #define _CODA_HEADER_ 1
24 struct coda_inode_info {
25 };
26 #endif
27 #ifdef AFS_DARWIN_ENV
28 #ifndef _MACH_ETAP_H_
29 #define _MACH_ETAP_H_
30 typedef unsigned short etap_event_t;
31 #endif
32 #endif
33
34
35 #include "h/types.h"
36 #include "h/param.h"
37 #ifndef AFS_LINUX22_ENV
38 #include "h/systm.h"
39 #endif
40 #include "h/time.h"
41 #ifdef AFS_SUN56_ENV
42 #include "h/vfs.h"              /* stops SUN56 socketvar.h warnings */
43 #include "h/stropts.h"          /* stops SUN56 socketvar.h warnings */
44 #include "h/stream.h"           /* stops SUN56 socketvar.h errors */
45 #include "h/disp.h"
46 #endif
47 #include "h/socket.h"
48 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV)
49 #include "h/socketvar.h"
50 #if !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV)
51 #include "h/domain.h"
52 #if !defined(AFS_HPUX110_ENV)
53 #include "h/dir.h"
54 #endif
55 #include "h/buf.h"
56 #if !defined(AFS_HPUX110_ENV)
57 #include "h/mbuf.h"
58 #endif
59 #else /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
60 #if defined(AFS_FBSD_ENV)
61 #include "h/dirent.h"
62 #include "h/socket.h"
63 #include "h/domain.h"
64 #if defined(AFS_FBSD50_ENV)
65 #include "h/bio.h"
66 #endif
67 #include "h/buf.h"
68 #include "h/mbuf.h"
69 #endif /* AFS_FBSD_ENV */
70 #endif /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
71 #endif /* !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV) */
72 #ifdef AFS_SGI62_ENV
73 #include "h/hashing.h"
74 #endif
75 #ifdef AFS_FBSD_ENV
76 #include "h/sysctl.h"
77 #endif
78 #ifdef AFS_OBSD_ENV
79 #include "h/socket.h"
80 #include "h/domain.h"
81 #include "h/buf.h"
82 #include "net/if.h"
83 #include "h/signalvar.h"
84 #endif /* AFS_OBSD_ENV */
85 #include "netinet/in.h"
86 #ifdef AFS_LINUX22_ENV
87 #include "linux/route.h"
88 #else
89 #include "net/route.h"
90 #endif
91 #include "netinet/in_systm.h"
92 #include "netinet/ip.h"
93 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV) && !defined(AFS_OBSD_ENV)
94 #include "netinet/in_pcb.h"
95 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
96 #ifndef AFS_LINUX22_ENV
97 #if !defined(AFS_DARWIN60_ENV)
98 #include "netinet/ip_var.h"
99 #endif
100 #include "netinet/ip_icmp.h"
101 #endif /* AFS_LINUX22_ENV */
102 #include "netinet/udp.h"
103 #if !defined(AFS_SGI62_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV)
104 #include "netinet/udp_var.h"
105 #endif
106 #if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV))
107 #include "h/user.h"
108 #endif
109 #ifdef AFS_LINUX22_ENV
110 #include "h/sched.h"
111 #include "h/netdevice.h"
112 #include "linux/if.h"
113 #else
114 #if !defined(AFS_OBSD_ENV)
115 #include "h/proc.h"
116 #include "h/file.h"
117 #endif
118 #include "net/if.h"
119 #endif
120 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV)
121 #include "netinet/in_var.h"
122 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
123 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_DUX40_ENV)
124 #include "rpc/types.h"
125 #endif
126 #include "afs/afs_osi.h"
127 #include "rx_kmutex.h"
128 #include "afs/lock.h"
129 #include "rx/xdr.h"
130 #include "rx/rx.h"
131 #include "rx/rx_globals.h"
132 #include "afs/longc_procs.h"
133 #include "afs/afs_stats.h"
134 #include "h/errno.h"
135 #ifdef KERNEL
136 #include "afs/sysincludes.h"
137 #include "afsincludes.h"
138 #endif
139 #if defined(AFS_OBSD_ENV)
140 #include "afs/sysincludes.h"
141 #include "netinet/in_pcb.h"
142 #endif
143
144 #define        MAXRXPORTS  20
145 typedef unsigned short rxk_ports_t[MAXRXPORTS];
146 typedef char *rxk_portRocks_t[MAXRXPORTS];
147 extern rxk_ports_t rxk_ports;
148 extern rxk_portRocks_t rxk_portRocks;
149
150 #if defined(AFS_XBSD_ENV)
151 extern struct domain inetdomain;
152 #endif /* AFS_XBSD_ENV */
153
154 #endif /* _RX_KCOMMON_H_ */
155
156 #endif