Standardize License information
[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 #include "../h/types.h"
18 #include "../h/param.h"
19 #ifndef AFS_LINUX22_ENV
20 #include "../h/systm.h"
21 #endif
22 #include "../h/time.h"
23 #ifdef AFS_SUN56_ENV
24 #include "../h/vfs.h"           /* stops SUN56 socketvar.h warnings */
25 #include "../h/stropts.h"       /* stops SUN56 socketvar.h warnings */
26 #include "../h/stream.h"        /* stops SUN56 socketvar.h errors */
27 #endif
28 #include "../h/socket.h"
29 #ifndef AFS_LINUX22_ENV
30 #include "../h/socketvar.h"
31 #include "../h/protosw.h"
32 #ifndef AFS_SUN5_ENV
33 #include "../h/domain.h"
34 #include "../h/dir.h"
35 #include "../h/buf.h"
36 #include "../h/mbuf.h"
37 #endif
38 #endif /* AFS_LINUX22_ENV */
39 #ifdef AFS_SGI62_ENV
40 #include "../h/hashing.h"
41 #endif
42 #include "../netinet/in.h"
43 #include "../net/route.h"
44 #include "../netinet/in_systm.h"
45 #include "../netinet/ip.h"
46 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV)
47 #include "../netinet/in_pcb.h"
48 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
49 #ifndef AFS_LINUX22_ENV
50 #include "../netinet/ip_var.h"
51 #include "../netinet/ip_icmp.h"
52 #endif /* AFS_LINUX22_ENV */
53 #include "../netinet/udp.h"
54 #if !defined(AFS_SGI62_ENV) && !defined(AFS_LINUX22_ENV)
55 #include "../netinet/udp_var.h"
56 #endif
57 #if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV))
58 #include "../h/user.h"
59 #endif
60 #ifdef AFS_LINUX22_ENV
61 #define _LINUX_CODA_FS_I
62 struct coda_inode_info {};
63 #include "../h/sched.h"
64 #include "../h/netdevice.h"
65 #else
66 #include "../h/proc.h"
67 #include "../h/file.h"
68 #endif
69 #include "../net/if.h"
70 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV)
71 #include "../netinet/in_var.h"
72 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */
73 #ifndef AFS_LINUX22_ENV
74 #include "../rpc/types.h"
75 #endif
76 #include "../afs/afs_osi.h"
77 #include "../rx/rx_kmutex.h"
78 #include "../afs/lock.h"
79 #ifndef AFS_LINUX22_ENV
80 #include "../rpc/xdr.h"
81 #endif
82 #include "../rx/rx.h"
83 #include "../rx/rx_globals.h"
84 #include "../afs/longc_procs.h"
85 #include "../afs/afs_stats.h"
86 #include "../h/errno.h"
87
88 extern afs_int32 afs_termState;
89 extern int (*rxk_GetPacketProc)(); /* set to packet allocation procedure */
90 extern int (*rxk_PacketArrivalProc)();
91
92 #define MAXRXPORTS  20
93 typedef unsigned short rxk_ports_t[MAXRXPORTS];
94 typedef char *rxk_portRocks_t[MAXRXPORTS];
95 extern rxk_ports_t rxk_ports;
96 extern rxk_portRocks_t rxk_portRocks;
97
98 extern struct osi_socket *rxk_NewSocket(short aport);
99 extern struct ifnet *rxi_FindIfnet();
100
101 extern int rxk_initDone;
102
103 #endif /* _RX_KCOMMON_H_ */