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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i386/] [ts_386ex/] [tools/] [network_ada/] [networkconfig.h] - Blame information for rev 30

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
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: networkconfig.h,v 1.2 2001-09-27 11:59:51 chris Exp $
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
 
25
/*#define RTEMS_SET_ETHERNET_ADDRESS*/
26
 
27
#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
28
static char ethernet_address[6] = { 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX };
29
#endif
30
 
31
/*
32
 * Default network interface
33
 */
34
static struct rtems_bsdnet_ifconfig netdriver_config = {
35
        RTEMS_BSP_NETWORK_DRIVER_NAME,          /* name */
36
        RTEMS_BSP_NETWORK_DRIVER_ATTACH,        /* attach function */
37
 
38
        NULL,                           /* link to next interface */
39
 
40
#if (defined (RTEMS_USE_BOOTP))
41
        NULL,                           /* BOOTP supplies IP address */
42
        NULL,                           /* BOOTP supplies IP net mask */
43
#else
44
        "127.37.12.19",                 /* IP address of device */
45
        "255.255.255.0",                /* IP net mask */
46
#endif /* !RTEMS_USE_BOOTP */
47
 
48
#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
49
        ethernet_address,               /* Ethernet hardware address */
50
#else
51
        NULL,                           /* Driver supplies hardware address */
52
#endif
53
        0,                               /* TRUE == Ignore broadcast packets */
54
 
55
        0,                               /* Default MTU */
56
        0,                               /* Default rbufs */
57
        0,                               /* Default xbufs */
58
 
59
        0x300,                          /* I/O port on ethernet card */
60
        5,                              /* IRQ */
61
        0x0000                          /* Shared memory start */
62
 
63
};
64
 
65
/*
66
 * Network configuration
67
 */
68
struct rtems_bsdnet_config rtems_bsdnet_config = {
69
        &netdriver_config,
70
 
71
#if (defined (RTEMS_USE_BOOTP))
72
        rtems_bsdnet_do_bootp,
73
#else
74
        NULL,
75
#endif
76
 
77
        0,                       /* Default network task priority */
78
        0,                       /* Default mbuf capacity */
79
        0,                       /* Default mbuf cluster capacity */
80
 
81
#if defined (RTEMS_USE_BOOTP)
82
        NULL,
83
        NULL,
84
        NULL,
85
        NULL,
86
        {NULL,NULL,NULL},
87
#else
88
        "rtems0",               /* Host name */
89
        "ece.ubc.ca",           /* Domain name */
90
        "127.37.12.254",        /* Gateway: */
91
        "127.37.12.19",         /* Log host: */
92
        {"127.37.15.9"},        /* Name server(s) */
93
#endif /* RTEMS_USE_BOOTP */
94
};
95
 
96
/*
97
 * For TFTP test application
98
 */
99
#if (!defined (RTEMS_USE_BOOTP))
100
#define RTEMS_TFTP_TEST_HOST_NAME "127.37.12.19"
101
#define RTEMS_TFTP_TEST_FILE_NAME "bootfiles/xxx"
102
#endif
103
 
104
#endif /* _RTEMS_NETWORKCONFIG_H_ */

powered by: WebSVN 2.1.0

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