1 /***************************************************************************
3 * $Header: /usr/cvs/microwin/src/rtems/net_cfg.h,v 1.1.1.1 2001/06/21 06:32:42 greg Exp $
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.1.1 2001/06/21 06:32:42 greg
22 * Microwindows pre8 with patches
24 * Revision 1.1.1.1 2001/06/05 03:44:03 root
25 * First import of 5/5/2001 Microwindows to CVS
27 ****************************************************************************/
33 #define RTEMS_USE_BOOTP
37 #include <rtems/rtems_bsdnet.h>
40 * Define RTEMS_SET_ETHERNET_ADDRESS if you want to specify the
41 * Ethernet address here. If RTEMS_SET_ETHERNET_ADDRESS is not
42 * defined the driver will choose an address.
44 #define RTEMS_SET_ETHERNET_ADDRESS
45 #if (defined (RTEMS_SET_ETHERNET_ADDRESS))
46 static char ethernet_address[6] = { 0x20, 0x00, 0x27, 0xAF, 0x03, 0x51 };
49 #undef RTEMS_BSP_NETWORK_DRIVER_NAME
50 #define RTEMS_BSP_NETWORK_DRIVER_NAME "ep0"
52 extern int rtems_3c509_driver_attach( struct rtems_bsdnet_ifconfig *config );
53 #undef RTEMS_BSP_NETWORK_DRIVER_ATTACH
54 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_3c509_driver_attach
57 * Default network interface
59 static struct rtems_bsdnet_ifconfig netdriver_config =
61 RTEMS_BSP_NETWORK_DRIVER_NAME, /* name */
62 RTEMS_BSP_NETWORK_DRIVER_ATTACH, /* attach function */
64 NULL, /* link to next interface */
66 #if (defined (RTEMS_USE_BOOTP))
67 NULL, /* BOOTP supplies IP address */
68 NULL, /* BOOTP supplies IP net mask */
70 "192.168.0.11", /* IP address */
71 "255.255.255.0", /* IP net mask */
72 #endif /* !RTEMS_USE_BOOTP */
74 #if (defined (RTEMS_SET_ETHERNET_ADDRESS))
75 ethernet_address, /* Ethernet hardware address */
77 NULL, /* Driver supplies hardware address */
79 0 /* Use default driver parameters */
83 * Network configuration
85 struct rtems_bsdnet_config rtems_bsdnet_config = {
88 #if (defined (RTEMS_USE_BOOTP))
89 rtems_bsdnet_do_bootp,
94 0, /* Default network task priority */
95 0, /* Default mbuf capacity */
96 0, /* Default mbuf cluster capacity */
98 #if (!defined (RTEMS_USE_BOOTP))
99 "lucila", /* Host name */
100 "rps.com", /* Domain name */
101 "192.168.0.1", /* Gateway */
102 "192.168.0.1", /* Log host */
103 {"192.168.0.1" }, /* Name server(s) */
104 #endif /* !RTEMS_USE_BOOTP */
109 * For TFTP test application
111 #if (!defined (RTEMS_USE_BOOTP))
112 #define RTEMS_TFTP_TEST_HOST_NAME "192.168.0.2"
113 #define RTEMS_TFTP_TEST_FILE_NAME "root/boot.bt"
121 /* end of include file */