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 | * Default network interface |
---|
21 | */ |
---|
22 | static struct rtems_bsdnet_ifconfig netdriver_config = { |
---|
23 | RTEMS_BSP_NETWORK_DRIVER_NAME, /* name */ |
---|
24 | RTEMS_BSP_NETWORK_DRIVER_ATTACH, /* attach function */ |
---|
25 | |
---|
26 | NULL, /* link to next interface */ |
---|
27 | |
---|
28 | #if (defined (RTEMS_USE_BOOTP)) |
---|
29 | NULL, /* BOOTP supplies IP address */ |
---|
30 | NULL, /* BOOTP supplies IP net mask */ |
---|
31 | #else |
---|
32 | "128.233.14.91", /* IP address */ |
---|
33 | "255.255.255.0", /* IP net mask */ |
---|
34 | #endif /* !RTEMS_USE_BOOTP */ |
---|
35 | |
---|
36 | NULL, /* Driver supplies hardware address */ |
---|
37 | 0 /* Use default driver parameters */ |
---|
38 | }; |
---|
39 | |
---|
40 | /* |
---|
41 | * Network configuration |
---|
42 | */ |
---|
43 | struct rtems_bsdnet_config rtems_bsdnet_config = { |
---|
44 | &netdriver_config, |
---|
45 | |
---|
46 | #if (defined (RTEMS_USE_BOOTP)) |
---|
47 | rtems_bsdnet_do_bootp, |
---|
48 | #else |
---|
49 | NULL, |
---|
50 | #endif |
---|
51 | |
---|
52 | 0, /* Default network task priority */ |
---|
53 | 0, /* Default mbuf capacity */ |
---|
54 | 0, /* Default mbuf cluster capacity */ |
---|
55 | |
---|
56 | #if (!defined (RTEMS_USE_BOOTP)) |
---|
57 | "rgamon", /* Host name */ |
---|
58 | "usask.ca", /* Domain name */ |
---|
59 | "128.233.14.100", /* Gateway */ |
---|
60 | "128.233.14.1", /* Log host */ |
---|
61 | {"128.233.14.1" }, /* Name server(s) */ |
---|
62 | #endif /* !RTEMS_USE_BOOTP */ |
---|
63 | |
---|
64 | }; |
---|
65 | |
---|
66 | /* |
---|
67 | * For TFTP test application |
---|
68 | */ |
---|
69 | #if (!defined (RTEMS_USE_BOOTP)) |
---|
70 | #define RTEMS_TFTP_TEST_HOST_NAME "128.233.14.1" |
---|
71 | #define RTEMS_TFTP_TEST_FILE_NAME "bootfiles/m68360/RGAmonitor" |
---|
72 | #endif |
---|
73 | |
---|
74 | #endif /* _RTEMS_NETWORKCONFIG_H_ */ |
---|