]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - rtems/gw/system_opt/networkconfig.h
Changed all (I think) files using CRLF to use LF.
[can-benchmark.git] / rtems / gw / system_opt / networkconfig.h
index a1621147b1f9620ef26ccac372be79d46c1abbb1..abbaef1705f73ddeda171f46e6f90bef09bb503a 100644 (file)
@@ -4,40 +4,40 @@
 #include <rtems/rtems_bsdnet.h>
 #include <bsp.h>
 
-/* This was taken from existing example, driver failed to provide its own, so why not. */\r
-static char ethernet_address[6] = {0x00, 0x04, 0x9F, 0x00, 0x27, 0x50 };\r
-\r
-extern void rtems_bsdnet_loopattach();\r
-\r
-/* config for loopback device */\r
-static struct rtems_bsdnet_ifconfig loopback_config = {\r
-       "lo0",\r
-       rtems_bsdnet_loopattach,\r
-       NULL,\r
-       "127.0.0.1",\r
-       "255.0.0.0"\r
-    /* Rest of the struct is set to 0 (is defaulted) */\r
-};\r
-\r
-/* config for ethernet */\r
-static struct rtems_bsdnet_ifconfig netdriver_config = {\r
-       RTEMS_BSP_NETWORK_DRIVER_NAME,\r
-       RTEMS_BSP_NETWORK_DRIVER_ATTACH,\r
-       &loopback_config, /* link to next interface */\r
-       "192.168.2.3", /* IP address */\r
-       "255.255.255.0", /* IP address net mask */\r
-       ethernet_address /* ethernet hardware address, 0 - supplied by driver according to documentation, but it caused error when tested */\r
-    \r
-       /* rest of the struct is set to 0 (is defaulted) */\r
-};\r
-\r
+/* This was taken from existing example, driver failed to provide its own, so why not. */
+static char ethernet_address[6] = {0x00, 0x04, 0x9F, 0x00, 0x27, 0x50 };
+
+extern void rtems_bsdnet_loopattach();
+
+/* config for loopback device */
+static struct rtems_bsdnet_ifconfig loopback_config = {
+       "lo0",
+       rtems_bsdnet_loopattach,
+       NULL,
+       "127.0.0.1",
+       "255.0.0.0"
+    /* Rest of the struct is set to 0 (is defaulted) */
+};
+
+/* config for ethernet */
+static struct rtems_bsdnet_ifconfig netdriver_config = {
+       RTEMS_BSP_NETWORK_DRIVER_NAME,
+       RTEMS_BSP_NETWORK_DRIVER_ATTACH,
+       &loopback_config, /* link to next interface */
+       "192.168.2.3", /* IP address */
+       "255.255.255.0", /* IP address net mask */
+       ethernet_address /* ethernet hardware address, 0 - supplied by driver according to documentation, but it caused error when tested */
+    
+       /* rest of the struct is set to 0 (is defaulted) */
+};
+
 /* Main config. */
 struct rtems_bsdnet_config rtems_bsdnet_config = {
        &netdriver_config, /* This entry points to the head of the ifconfig chain. */
        NULL, /* rtems_bsdnet_do_bootp if it should use bootp, null otherwise */
-       /* From here on, zero means default value. */\r
+       /* From here on, zero means default value. */
     100, /* network task priority (default 100) */
-       65792, /* mbuf bytecount (default 64kbytes) */\r
+       65792, /* mbuf bytecount (default 64kbytes) */
     /* Using default sizes stops RTEMS from answering to pings. (Probably because it allocates too few buffer for an answer.). */
        263168, //180584, /* mbuf cluster bytecount (default 128kbytes) */
        "midam_deska", /* hostname (default BOOTP) */