]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/services/gfx/mw/v2_0/src/rtems/net_cfg.h
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / services / gfx / mw / v2_0 / src / rtems / net_cfg.h
1 /***************************************************************************
2  *
3  * $Header$
4  *
5  * MODULE DESCRIPTION: This module specializes the RTEMS Network configuration 
6  *                     for the omniORB examples. It could be used as a starting
7  *                     point of an application using omniORB and RTEMS.
8  *
9  * This file was based on "networkconfig.h" that comes with the netdemos
10  * examples that ships with the RTEMS distribution.
11  *
12  * NOTE: This file must be modified to match your environment.
13  *
14  * by: Rosimildo da Silva:
15  *     rdasilva@connecttel.com
16  *     http://www.connecttel.com
17  *
18  * MODIFICATION/HISTORY:
19  *
20  * $Log$
21  * Revision 1.1.9.1  2009-06-15 14:12:31  lothar
22  * unified MX27, MX25, MX37 trees
23  *
24  * Revision 1.1.1.1  2001/06/21 06:32:42  greg
25  * Microwindows pre8 with patches
26  *
27  * Revision 1.1.1.1  2001/06/05 03:44:03  root
28  * First import of 5/5/2001 Microwindows to CVS
29  *
30  ****************************************************************************/
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 /*
36 #define RTEMS_USE_BOOTP
37 */
38
39 #include <stdio.h>
40 #include <rtems/rtems_bsdnet.h>
41
42 /*
43  * Define RTEMS_SET_ETHERNET_ADDRESS if you want to specify the
44  * Ethernet address here.  If RTEMS_SET_ETHERNET_ADDRESS is not
45  * defined the driver will choose an address.
46  */
47 #define RTEMS_SET_ETHERNET_ADDRESS
48 #if (defined (RTEMS_SET_ETHERNET_ADDRESS))
49 static char ethernet_address[6] = { 0x20, 0x00, 0x27, 0xAF, 0x03, 0x51 };
50 #endif
51
52 #undef  RTEMS_BSP_NETWORK_DRIVER_NAME
53 #define RTEMS_BSP_NETWORK_DRIVER_NAME  "ep0"
54
55 extern int rtems_3c509_driver_attach( struct rtems_bsdnet_ifconfig *config );
56 #undef  RTEMS_BSP_NETWORK_DRIVER_ATTACH
57 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_3c509_driver_attach
58
59 /*
60  * Default network interface
61  */
62 static struct rtems_bsdnet_ifconfig netdriver_config = 
63 {
64    RTEMS_BSP_NETWORK_DRIVER_NAME,      /* name */
65         RTEMS_BSP_NETWORK_DRIVER_ATTACH,    /* attach function */
66
67         NULL,                           /* link to next interface */
68
69 #if (defined (RTEMS_USE_BOOTP))
70         NULL,                           /* BOOTP supplies IP address */
71         NULL,                           /* BOOTP supplies IP net mask */
72 #else
73         "192.168.0.11",         /* IP address */
74         "255.255.255.0",                /* IP net mask */
75 #endif /* !RTEMS_USE_BOOTP */
76
77 #if (defined (RTEMS_SET_ETHERNET_ADDRESS))
78         ethernet_address,               /* Ethernet hardware address */
79 #else
80         NULL,           /* Driver supplies hardware address */
81 #endif
82         0                               /* Use default driver parameters */
83 };
84
85 /*
86  * Network configuration
87  */
88 struct rtems_bsdnet_config rtems_bsdnet_config = {
89         &netdriver_config,
90
91 #if (defined (RTEMS_USE_BOOTP))
92         rtems_bsdnet_do_bootp,
93 #else
94         NULL,
95 #endif
96
97         0,                      /* Default network task priority */
98         0,                      /* Default mbuf capacity */
99         0,                      /* Default mbuf cluster capacity */
100
101 #if (!defined (RTEMS_USE_BOOTP))
102         "lucila",                       /* Host name */
103         "rps.com",                      /* Domain name */
104         "192.168.0.1",  /* Gateway */
105         "192.168.0.1",  /* Log host */
106         {"192.168.0.1" },       /* Name server(s) */
107 #endif /* !RTEMS_USE_BOOTP */
108
109 };
110
111 /*
112  * For TFTP test application
113  */
114 #if (!defined (RTEMS_USE_BOOTP))
115 #define RTEMS_TFTP_TEST_HOST_NAME "192.168.0.2"
116 #define RTEMS_TFTP_TEST_FILE_NAME "root/boot.bt"
117 #endif
118
119
120 #ifdef __cplusplus
121 }
122 #endif
123  
124 /* end of include file */