openbsd-20030514
[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_DARWIN_ENV
22 #ifndef _MACH_ETAP_H_
23 #define _MACH_ETAP_H_
24 typedef unsigned short                  etap_event_t;
25 #endif
26 #endif  
27 #include "h/types.h"
28 #include "h/param.h"
29 #ifndef AFS_LINUX22_ENV
30 #include "h/systm.h"
31 #endif
32 #include "h/time.h"
33 #ifdef AFS_SUN56_ENV
34 #include "h/vfs.h"              /* stops SUN56 socketvar.h warnings */
35 #include "h/stropts.h"  /* stops SUN56 socketvar.h warnings */
36 #include "h/stream.h"   /* stops SUN56 socketvar.h errors */
37 #include "h/disp.h"
38 #endif
39 #include "h/socket.h"
40 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV)
41 #include "h/socketvar.h"
42 #if !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV)
43 #include "h/domain.h"
44 #if !defined(AFS_HPUX110_ENV)
45 #include "h/dir.h"
46 #endif
47 #include "h/buf.h"
48 #if !defined(AFS_HPUX110_ENV)
49 #include "h/mbuf.h"
50 #endif
51 #else /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
52 #if defined(AFS_FBSD_ENV)
53 #include "h/dirent.h"
54 #include "h/socket.h"
55 #include "h/domain.h"
56 #if defined(AFS_FBSD50_ENV)
57 #include "h/bio.h"
58 #endif
59 #include "h/buf.h"
60 #include "h/mbuf.h"
61 #endif /* AFS_FBSD_ENV */
62 #endif /* !defined(AFS_SUN5_ENV) && !defined(AFS_XBSD_ENV) */
63 #endif /* !defined(AFS_LINUX22_ENV) && !defined(AFS_OBSD_ENV) */
64 #ifdef AFS_SGI62_ENV
65 #include "h/hashing.h"
66 #endif
67 #ifdef AFS_FBSD_ENV
68 #include "h/sysctl.h"
69 #endif
70 #ifdef AFS_OBSD_ENV
71 #include "h/socket.h"
72 #include "h/domain.h"
73 #include "h/buf.h"
74 #include "net/if.h"
75 #include "h/signalvar.h"
76 #endif /* AFS_OBSD_ENV */
77 #include "netinet/in.h"
78 #include "net/route.h"
79 #include "netinet/in_systm.h"
80 #include "netinet/ip.h"
81 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV) && !defined(AFS_OBSD_ENV)
82 #include "netinet/in_pcb.h"
83 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
84 #ifndef AFS_LINUX22_ENV
85 #if !defined(AFS_DARWIN60_ENV)
86 #include "netinet/ip_var.h"
87 #endif
88 #include "netinet/ip_icmp.h"
89 #endif /* AFS_LINUX22_ENV */
90 #include "netinet/udp.h"
91 #if !defined(AFS_SGI62_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV)
92 #include "netinet/udp_var.h"
93 #endif
94 #if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV))
95 #include "h/user.h"
96 #endif
97 #ifdef AFS_LINUX22_ENV
98 #define _LINUX_CODA_FS_I
99 struct coda_inode_info {};
100 #include "h/sched.h"
101 #include "h/netdevice.h"
102 #else
103 #if !defined(AFS_OBSD_ENV)
104 #include "h/proc.h"
105 #include "h/file.h"
106 #endif
107 #endif
108 #include "net/if.h"
109 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV)
110 #include "netinet/in_var.h"
111 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
112 #if !defined(AFS_LINUX22_ENV) && !defined(AFS_DUX40_ENV) 
113 #include "rpc/types.h"
114 #endif
115 #include "afs/afs_osi.h"
116 #include "rx_kmutex.h"
117 #include "afs/lock.h"
118 #include "rx/xdr.h"
119 #include "rx/rx.h"
120 #include "rx/rx_globals.h"
121 #include "afs/longc_procs.h"
122 #include "afs/afs_stats.h"
123 #include "h/errno.h"
124 #if 0/*def KERNEL*/
125 #include "afs/sysincludes.h"
126 #include "afsincludes.h"
127 #endif
128 #if defined(AFS_OBSD_ENV)
129 #include "afs/sysincludes.h"
130 #include "netinet/in_pcb.h"
131 #endif
132
133 #define        MAXRXPORTS  20
134 typedef unsigned short rxk_ports_t[MAXRXPORTS];
135 typedef char *rxk_portRocks_t[MAXRXPORTS];
136 extern rxk_ports_t rxk_ports;
137 extern rxk_portRocks_t rxk_portRocks;
138
139 #if defined(AFS_XBSD_ENV)
140 extern struct domain inetdomain;
141 #endif /* AFS_XBSD_ENV */
142
143 #endif /* _RX_KCOMMON_H_ */
144
145 #endif