1 /***************************************************************************
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.
9 * This file was based on "networkconfig.h" that comes with the netdemos
10 * examples that ships with the RTEMS distribution.
12 * NOTE: This file must be modified to match your environment.
14 * by: Rosimildo da Silva:
15 * rdasilva@connecttel.com
16 * http://www.connecttel.com
18 * MODIFICATION/HISTORY:
21 * Revision 1.1.9.1 2009-06-15 14:12:31 lothar
22 * unified MX27, MX25, MX37 trees
24 * Revision 1.1.1.1 2001/06/21 06:32:42 greg
25 * Microwindows pre8 with patches
27 * Revision 1.1.1.1 2001/06/05 03:44:03 root
28 * First import of 5/5/2001 Microwindows to CVS
30 ****************************************************************************/
36 #define RTEMS_USE_BOOTP
40 #include <rtems/rtems_bsdnet.h>
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.
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 };
52 #undef RTEMS_BSP_NETWORK_DRIVER_NAME
53 #define RTEMS_BSP_NETWORK_DRIVER_NAME "ep0"
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
60 * Default network interface
62 static struct rtems_bsdnet_ifconfig netdriver_config =
64 RTEMS_BSP_NETWORK_DRIVER_NAME, /* name */
65 RTEMS_BSP_NETWORK_DRIVER_ATTACH, /* attach function */
67 NULL, /* link to next interface */
69 #if (defined (RTEMS_USE_BOOTP))
70 NULL, /* BOOTP supplies IP address */
71 NULL, /* BOOTP supplies IP net mask */
73 "192.168.0.11", /* IP address */
74 "255.255.255.0", /* IP net mask */
75 #endif /* !RTEMS_USE_BOOTP */
77 #if (defined (RTEMS_SET_ETHERNET_ADDRESS))
78 ethernet_address, /* Ethernet hardware address */
80 NULL, /* Driver supplies hardware address */
82 0 /* Use default driver parameters */
86 * Network configuration
88 struct rtems_bsdnet_config rtems_bsdnet_config = {
91 #if (defined (RTEMS_USE_BOOTP))
92 rtems_bsdnet_do_bootp,
97 0, /* Default network task priority */
98 0, /* Default mbuf capacity */
99 0, /* Default mbuf cluster capacity */
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 */
112 * For TFTP test application
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"
124 /* end of include file */