]> rtime.felk.cvut.cz Git - rtems-devel.git/blobdiff - rtems-omk-template/appnet/networkconfig-static.h
Network enabled template application.
[rtems-devel.git] / rtems-omk-template / appnet / networkconfig-static.h
diff --git a/rtems-omk-template/appnet/networkconfig-static.h b/rtems-omk-template/appnet/networkconfig-static.h
new file mode 100644 (file)
index 0000000..20a3b23
--- /dev/null
@@ -0,0 +1,46 @@
+#ifndef __NETWORKCONFIG_H__
+#define __NETWORKCONFIG_H__
+
+#include <rtems/rtems_bsdnet.h>
+#include <bsp.h>
+
+static char ethernet_address[6] = {0x00, 0x04, 0x9F, 0x00, 0x27, 0x50 };
+
+static struct rtems_bsdnet_ifconfig netdriver_config = {
+       .name = RTEMS_BSP_NETWORK_DRIVER_NAME,
+       .attach = RTEMS_BSP_NETWORK_DRIVER_ATTACH,
+       .next = NULL,
+       .ip_address = "192.168.1.35",
+       .ip_netmask = "255.255.255.0",
+       .hardware_address = ethernet_address,
+       .ignore_broadcast = 0,
+       .mtu = 0,
+       .rbuf_count = 0,
+       .xbuf_count = 0,
+       .port = 0,
+       .irno = 0,
+       .bpar = 0,
+       .drv_ctrl = NULL
+};
+
+struct rtems_bsdnet_config rtems_bsdnet_config = {
+       .ifconfig = &netdriver_config,
+       .bootp = NULL,
+       .network_task_priority = 0,             /* 100        */
+       .mbuf_bytecount = 256 * 1024,           /* 64 kbytes  */
+       .mbuf_cluster_bytecount = 256 * 1024,   /* 128 kbytes */
+       .hostname = NULL,
+       .domainname = NULL,
+       .gateway = NULL,
+       .log_host = NULL,
+       .name_server = { "NULL" },
+       .ntp_server = { "NULL" },
+       .sb_efficiency = 0,
+       .udp_tx_buf_size = 0,                   /* UDP TX: 9216 bytes */
+       .udp_rx_buf_size = 0,                   /* UDP RX: 40 * (1024 + sizeof(struct sockaddr_in)) */
+       .tcp_tx_buf_size = 0,                   /* TCP TX: 16 * 1024 bytes */
+       .tcp_rx_buf_size = 0,                   /* TCP TX: 16 * 1024 bytes */
+};
+
+#endif
+