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