annotate packages/services/gfx/mw/current/src/rtems/net_cfg.h @ 2830:3caad2060bd3

Strip erroneous CR chars from text files in the eCos repository. [ Bugzilla 1000694]
author jld
date Wed, 25 Feb 2009 12:50:14 +0000
parents e0c0827131d1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
1 /***************************************************************************
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
2 *
2830
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
3 * $Header: /usr/cvs/microwin/src/rtems/net_cfg.h,v 1.1.1.1 2001/06/21 06:32:42 greg Exp $
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
4 *
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
5 * MODULE DESCRIPTION: This module specializes the RTEMS Network configuration
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
6 * for the omniORB examples. It could be used as a starting
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
7 * point of an application using omniORB and RTEMS.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
8 *
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
9 * This file was based on "networkconfig.h" that comes with the netdemos
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
10 * examples that ships with the RTEMS distribution.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
11 *
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
12 * NOTE: This file must be modified to match your environment.
2830
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
13 *
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
14 * by: Rosimildo da Silva:
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
15 * rdasilva@connecttel.com
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
16 * http://www.connecttel.com
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
17 *
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
18 * MODIFICATION/HISTORY:
2830
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
19 *
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
20 * $Log: net_cfg.h,v $
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
21 * Revision 1.1.1.1 2001/06/21 06:32:42 greg
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
22 * Microwindows pre8 with patches
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
23 *
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
24 * Revision 1.1.1.1 2001/06/05 03:44:03 root
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
25 * First import of 5/5/2001 Microwindows to CVS
2830
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
26 *
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
27 ****************************************************************************/
2830
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
28 #ifdef __cplusplus
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
29 extern "C" {
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
30 #endif
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
31
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
32 /*
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
33 #define RTEMS_USE_BOOTP
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
34 */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
35
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
36 #include <stdio.h>
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
37 #include <rtems/rtems_bsdnet.h>
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
38
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
39 /*
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
40 * Define RTEMS_SET_ETHERNET_ADDRESS if you want to specify the
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
41 * Ethernet address here. If RTEMS_SET_ETHERNET_ADDRESS is not
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
42 * defined the driver will choose an address.
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
43 */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
44 #define RTEMS_SET_ETHERNET_ADDRESS
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
45 #if (defined (RTEMS_SET_ETHERNET_ADDRESS))
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
46 static char ethernet_address[6] = { 0x20, 0x00, 0x27, 0xAF, 0x03, 0x51 };
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
47 #endif
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
48
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
49 #undef RTEMS_BSP_NETWORK_DRIVER_NAME
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
50 #define RTEMS_BSP_NETWORK_DRIVER_NAME "ep0"
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
51
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
52 extern int rtems_3c509_driver_attach( struct rtems_bsdnet_ifconfig *config );
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
53 #undef RTEMS_BSP_NETWORK_DRIVER_ATTACH
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
54 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_3c509_driver_attach
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
55
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
56 /*
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
57 * Default network interface
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
58 */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
59 static struct rtems_bsdnet_ifconfig netdriver_config =
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
60 {
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
61 RTEMS_BSP_NETWORK_DRIVER_NAME, /* name */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
62 RTEMS_BSP_NETWORK_DRIVER_ATTACH, /* attach function */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
63
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
64 NULL, /* link to next interface */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
65
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
66 #if (defined (RTEMS_USE_BOOTP))
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
67 NULL, /* BOOTP supplies IP address */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
68 NULL, /* BOOTP supplies IP net mask */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
69 #else
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
70 "192.168.0.11", /* IP address */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
71 "255.255.255.0", /* IP net mask */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
72 #endif /* !RTEMS_USE_BOOTP */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
73
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
74 #if (defined (RTEMS_SET_ETHERNET_ADDRESS))
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
75 ethernet_address, /* Ethernet hardware address */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
76 #else
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
77 NULL, /* Driver supplies hardware address */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
78 #endif
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
79 0 /* Use default driver parameters */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
80 };
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
81
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
82 /*
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
83 * Network configuration
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
84 */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
85 struct rtems_bsdnet_config rtems_bsdnet_config = {
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
86 &netdriver_config,
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
87
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
88 #if (defined (RTEMS_USE_BOOTP))
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
89 rtems_bsdnet_do_bootp,
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
90 #else
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
91 NULL,
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
92 #endif
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
93
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
94 0, /* Default network task priority */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
95 0, /* Default mbuf capacity */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
96 0, /* Default mbuf cluster capacity */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
97
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
98 #if (!defined (RTEMS_USE_BOOTP))
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
99 "lucila", /* Host name */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
100 "rps.com", /* Domain name */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
101 "192.168.0.1", /* Gateway */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
102 "192.168.0.1", /* Log host */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
103 {"192.168.0.1" }, /* Name server(s) */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
104 #endif /* !RTEMS_USE_BOOTP */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
105
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
106 };
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
107
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
108 /*
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
109 * For TFTP test application
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
110 */
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
111 #if (!defined (RTEMS_USE_BOOTP))
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
112 #define RTEMS_TFTP_TEST_HOST_NAME "192.168.0.2"
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
113 #define RTEMS_TFTP_TEST_FILE_NAME "root/boot.bt"
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
114 #endif
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
115
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
116
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
117 #ifdef __cplusplus
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
118 }
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
119 #endif
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
120
3caad2060bd3 Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 208
diff changeset
121 /* end of include file */