OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [net/] [protocols.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 *      Protocol initializer table. Here separately for convenience
3
 *
4
 */
5
 
6
 
7
#include <linux/config.h>
8
#include <linux/types.h>
9
#include <linux/kernel.h>
10
#include <linux/net.h>
11
#include <linux/fs.h>
12
 
13
#define CONFIG_UNIX             /* always present...    */
14
 
15
#ifdef  CONFIG_UNIX
16
#include <net/af_unix.h>
17
#endif
18
#ifdef  CONFIG_INET
19
#include <linux/inet.h>
20
#endif
21
#if defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE)
22
#include <net/ipxcall.h>
23
#include <net/p8022call.h>
24
#include <net/p8022trcall.h>
25
#endif
26
#ifdef CONFIG_AX25
27
#include <net/ax25call.h>
28
#ifdef CONFIG_NETROM
29
#include <net/nrcall.h>
30
#endif
31
#ifdef CONFIG_ROSE
32
#include <net/rosecall.h>
33
#endif
34
#endif
35
#if defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE)
36
#if ! ( defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE) )
37
#include <net/p8022call.h>
38
#include <net/p8022trcall.h>
39
#endif
40
#include <net/atalkcall.h>
41
#endif
42
#include <net/psnapcall.h>
43
#ifdef CONFIG_TR
44
#include <linux/netdevice.h>
45
#include <linux/trdevice.h>
46
extern void rif_init(struct net_proto *);
47
#endif
48
/*
49
 *      Protocol Table
50
 */
51
 
52
struct net_proto protocols[] = {
53
#ifdef  CONFIG_UNIX
54
  { "UNIX",     unix_proto_init },                      /* Unix domain socket family    */
55
#endif
56
#if defined(CONFIG_IPX)   || defined(CONFIG_IPX_MODULE) || \
57
    defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE)
58
  { "802.2",    p8022_proto_init },                     /* 802.2 demultiplexor          */
59
  { "802.2TR",  p8022tr_proto_init },                   /* 802.2 demultiplexor          */
60
  { "SNAP",     snap_proto_init },                      /* SNAP demultiplexor           */
61
#endif
62
#ifdef CONFIG_TR
63
  { "RIF",      rif_init },                             /* RIF for Token ring           */
64
#endif  
65
#ifdef CONFIG_AX25  
66
  { "AX.25",    ax25_proto_init },                      /* Amateur Radio AX.25 */
67
#ifdef CONFIG_NETROM
68
  { "NET/ROM",  nr_proto_init },                        /* Amateur Radio NET/ROM */
69
#endif
70
#ifdef CONFIG_ROSE
71
  { "Rose",     rose_proto_init },                      /* Amateur Radio X.25 PLP */
72
#endif
73
#endif  
74
#ifdef  CONFIG_INET
75
  { "INET",     inet_proto_init },                      /* TCP/IP                       */
76
#endif
77
#ifdef  CONFIG_IPX
78
  { "IPX",      ipx_proto_init },                       /* IPX                          */
79
#endif
80
#ifdef CONFIG_ATALK
81
  { "DDP",      atalk_proto_init },                     /* Netatalk Appletalk driver    */
82
#endif
83
  { NULL,       NULL            }                       /* End marker                   */
84
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.