source: network-demos/networkconfig.h @ 2a95617

4.11netdemos-4-5-branchnetwork-demos-4-10-branchnetwork-demos-4-6-branchnetwork-demos-4-7-branchnetwork-demos-4-8-branchnetwork-demos-4-9-branchrtems-4-5-branch
Last change on this file since 2a95617 was f84493d, checked in by Joel Sherrill <joel.sherrill@…>, on 10/13/98 at 13:55:51

Changed to clarify how to set the network address.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/*
2 * Network configuration
3 *
4 ************************************************************
5 * EDIT THIS FILE TO REFLECT YOUR NETWORK CONFIGURATION     *
6 * BEFORE RUNNING ANY RTEMS PROGRAMS WHICH USE THE NETWORK! *
7 ************************************************************
8 *
9 *  $Id$
10 */
11
12#ifndef _RTEMS_NETWORKCONFIG_H_
13#define _RTEMS_NETWORKCONFIG_H_
14
15#define RTEMS_USE_BOOTP
16
17#include <bsp.h>
18
19/*
20 * Define RTEMS_SET_ETHERNET_ADDRESS if you want to specify the
21 * Ethernet address here.  If RTEMS_SET_ETHERNET_ADDRESS is not
22 * defined the driver will choose an address.
23 */
24/* #define RTEMS_SET_ETHERNET_ADDRESS */
25#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
26static char ethernet_address[6] = { 0x08, 0x00, 0x3e, 0x12, 0x28, 0xb1 };
27#endif
28
29/*
30 * Default network interface
31 */
32static struct rtems_bsdnet_ifconfig netdriver_config = {
33        RTEMS_BSP_NETWORK_DRIVER_NAME,          /* name */
34        RTEMS_BSP_NETWORK_DRIVER_ATTACH,        /* attach function */
35
36        NULL,                           /* link to next interface */
37
38#if (defined (RTEMS_USE_BOOTP))
39        NULL,                           /* BOOTP supplies IP address */
40        NULL,                           /* BOOTP supplies IP net mask */
41#else
42        "128.233.14.91",                /* IP address */
43        "255.255.255.0",                /* IP net mask */
44#endif /* !RTEMS_USE_BOOTP */
45
46#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
47        ethernet_address,               /* Ethernet hardware address */
48#else
49        NULL,                           /* Driver supplies hardware address */
50#endif
51        0                               /* Use default driver parameters */
52};
53
54/*
55 * Network configuration
56 */
57struct rtems_bsdnet_config rtems_bsdnet_config = {
58        &netdriver_config,
59
60#if (defined (RTEMS_USE_BOOTP))
61        rtems_bsdnet_do_bootp,
62#else
63        NULL,
64#endif
65
66        0,                      /* Default network task priority */
67        0,                      /* Default mbuf capacity */
68        0,                      /* Default mbuf cluster capacity */
69
70#if (!defined (RTEMS_USE_BOOTP))
71        "rgamon",               /* Host name */
72        "usask.ca",             /* Domain name */
73        "128.233.14.100",       /* Gateway */
74        "128.233.14.1",         /* Log host */
75        {"128.233.14.1" },      /* Name server(s) */
76#endif /* !RTEMS_USE_BOOTP */
77
78};
79
80/*
81 * For TFTP test application
82 */
83#if (!defined (RTEMS_USE_BOOTP))
84#define RTEMS_TFTP_TEST_HOST_NAME "128.233.14.1"
85#define RTEMS_TFTP_TEST_FILE_NAME "bootfiles/m68360/RGAmonitor"
86#endif
87
88#endif /* _RTEMS_NETWORKCONFIG_H_ */
Note: See TracBrowser for help on using the repository browser.