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

Subversion Repositories or1k

[/] [or1k/] [tags/] [MW_0_8_9PRE7/] [mw/] [src/] [rtems/] [net_cfg.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 673 markom
/***************************************************************************
2
 *
3
 * $Header: /home/marcus/revision_ctrl_test/oc_cvs/cvs/or1k/mw/src/rtems/net_cfg.h,v 1.1.1.1 2002-02-15 09:17:40 markom Exp $
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: not supported by cvs2svn $
21
 * Revision 1.1.1.1  2001/06/21 06:32:42  greg
22
 * Microwindows pre8 with patches
23
 *
24
 * Revision 1.1.1.1  2001/06/05 03:44:03  root
25
 * First import of 5/5/2001 Microwindows to CVS
26
 *
27
 ****************************************************************************/
28
#ifdef __cplusplus
29
extern "C" {
30
#endif
31
 
32
/*
33
#define RTEMS_USE_BOOTP
34
*/
35
 
36
#include <stdio.h>
37
#include <rtems/rtems_bsdnet.h>
38
 
39
/*
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.
43
 */
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 };
47
#endif
48
 
49
#undef  RTEMS_BSP_NETWORK_DRIVER_NAME
50
#define RTEMS_BSP_NETWORK_DRIVER_NAME  "ep0"
51
 
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
55
 
56
/*
57
 * Default network interface
58
 */
59
static struct rtems_bsdnet_ifconfig netdriver_config =
60
{
61
   RTEMS_BSP_NETWORK_DRIVER_NAME,      /* name */
62
        RTEMS_BSP_NETWORK_DRIVER_ATTACH,    /* attach function */
63
 
64
        NULL,                           /* link to next interface */
65
 
66
#if (defined (RTEMS_USE_BOOTP))
67
        NULL,                           /* BOOTP supplies IP address */
68
        NULL,                           /* BOOTP supplies IP net mask */
69
#else
70
        "192.168.0.11",         /* IP address */
71
        "255.255.255.0",                /* IP net mask */
72
#endif /* !RTEMS_USE_BOOTP */
73
 
74
#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
75
        ethernet_address,               /* Ethernet hardware address */
76
#else
77
        NULL,           /* Driver supplies hardware address */
78
#endif
79
 
80
};
81
 
82
/*
83
 * Network configuration
84
 */
85
struct rtems_bsdnet_config rtems_bsdnet_config = {
86
        &netdriver_config,
87
 
88
#if (defined (RTEMS_USE_BOOTP))
89
        rtems_bsdnet_do_bootp,
90
#else
91
        NULL,
92
#endif
93
 
94
        0,                       /* Default network task priority */
95
        0,                       /* Default mbuf capacity */
96
        0,                       /* Default mbuf cluster capacity */
97
 
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 */
105
 
106
};
107
 
108
/*
109
 * For TFTP test application
110
 */
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"
114
#endif
115
 
116
 
117
#ifdef __cplusplus
118
}
119
#endif
120
 
121
/* end of include file */

powered by: WebSVN 2.1.0

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