2 * Copyright 2000, International Business Machines Corporation and others.
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
11 * rx_kcommon.h - Common kernel RX header for all system types.
14 #ifndef _RX_KCOMMON_H_
15 #define _RX_KCOMMON_H_
17 #include "../h/types.h"
18 #include "../h/param.h"
19 #ifndef AFS_LINUX22_ENV
20 #include "../h/systm.h"
22 #include "../h/time.h"
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 */
28 #include "../h/socket.h"
29 #ifndef AFS_LINUX22_ENV
30 #include "../h/socketvar.h"
31 #include "../h/protosw.h"
33 #include "../h/domain.h"
36 #include "../h/mbuf.h"
38 #endif /* AFS_LINUX22_ENV */
40 #include "../h/hashing.h"
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"
57 #if defined(AFS_HPUX102_ENV) || (defined(AFS_SGI62_ENV) && !defined(AFS_SGI64_ENV))
58 #include "../h/user.h"
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"
66 #include "../h/proc.h"
67 #include "../h/file.h"
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"
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"
83 #include "../rx/rx_globals.h"
84 #include "../afs/longc_procs.h"
85 #include "../afs/afs_stats.h"
86 #include "../h/errno.h"
88 extern afs_int32 afs_termState;
89 extern int (*rxk_GetPacketProc)(); /* set to packet allocation procedure */
90 extern int (*rxk_PacketArrivalProc)();
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;
98 extern struct osi_socket *rxk_NewSocket(short aport);
99 extern struct ifnet *rxi_FindIfnet();
101 extern int rxk_initDone;
103 #endif /* _RX_KCOMMON_H_ */