summaryrefslogtreecommitdiffstats
path: root/bsps/arm
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-07 06:19:02 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-10 10:38:44 +0200
commitcb682532cf9927619a3c8d168253187140835cc6 (patch)
treeefb8abc9206b17b12fd97a8bb7a02b53c00fe452 /bsps/arm
parentnetwork: Remove man page installation (diff)
downloadrtems-cb682532cf9927619a3c8d168253187140835cc6.tar.bz2
network: Use kernel/user space header files
Add and use <machine/rtems-bsd-kernel-space.h> and <machine/rtems-bsd-user-space.h> similar to the libbsd to avoid command line defines and defines scattered throught the code base. Simplify cpukit/libnetworking/Makefile.am. Update #3375.
Diffstat (limited to 'bsps/arm')
-rw-r--r--bsps/arm/atsam/net/if_atsam.c3
-rw-r--r--bsps/arm/csb336/net/lan91c11x.c2
-rw-r--r--bsps/arm/csb336/net/network.c2
-rw-r--r--bsps/arm/csb337/net/network.c2
-rw-r--r--bsps/arm/edb7312/net/network.c2
-rw-r--r--bsps/arm/gumstix/net/rtl8019.c2
-rw-r--r--bsps/arm/rtl22xx/net/network.c2
-rw-r--r--bsps/arm/shared/net/lpc-ethernet.c2
8 files changed, 8 insertions, 9 deletions
diff --git a/bsps/arm/atsam/net/if_atsam.c b/bsps/arm/atsam/net/if_atsam.c
index 7e7e0e6faf..75b1f952b6 100644
--- a/bsps/arm/atsam/net/if_atsam.c
+++ b/bsps/arm/atsam/net/if_atsam.c
@@ -33,8 +33,7 @@
#include <libchip/include/gmacd.h>
#include <libchip/include/pio.h>
-#define __INSIDE_RTEMS_BSD_TCPIP_STACK__ 1
-#define __BSD_VISIBLE 1
+#include <machine/rtems-bsd-kernel-space.h>
#include <bsp.h>
#include <bsp/irq.h>
diff --git a/bsps/arm/csb336/net/lan91c11x.c b/bsps/arm/csb336/net/lan91c11x.c
index 37594776d1..e1c4fcc7ce 100644
--- a/bsps/arm/csb336/net/lan91c11x.c
+++ b/bsps/arm/csb336/net/lan91c11x.c
@@ -17,7 +17,7 @@
* http://www.rtems.org/license/LICENSE.
*/
-#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
+#include <machine/rtems-bsd-kernel-space.h>
#include <rtems.h>
#include "lan91c11x.h"
diff --git a/bsps/arm/csb336/net/network.c b/bsps/arm/csb336/net/network.c
index be3d3f7b3d..ddc671a4cd 100644
--- a/bsps/arm/csb336/net/network.c
+++ b/bsps/arm/csb336/net/network.c
@@ -9,7 +9,7 @@
* http://www.rtems.org/license/LICENSE.
*/
-#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
+#include <machine/rtems-bsd-kernel-space.h>
#include <rtems.h>
#include <rtems/rtems_bsdnet.h>
diff --git a/bsps/arm/csb337/net/network.c b/bsps/arm/csb337/net/network.c
index af7150122d..b795cf4bce 100644
--- a/bsps/arm/csb337/net/network.c
+++ b/bsps/arm/csb337/net/network.c
@@ -10,7 +10,7 @@
* MicroMonitor 1.17.
*/
-#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
+#include <machine/rtems-bsd-kernel-space.h>
#include <rtems.h>
#include <rtems/rtems_bsdnet.h>
diff --git a/bsps/arm/edb7312/net/network.c b/bsps/arm/edb7312/net/network.c
index 480808aeaa..9a832293f9 100644
--- a/bsps/arm/edb7312/net/network.c
+++ b/bsps/arm/edb7312/net/network.c
@@ -1,4 +1,4 @@
-#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
+#include <machine/rtems-bsd-kernel-space.h>
#include <rtems.h>
#include <sys/param.h>
diff --git a/bsps/arm/gumstix/net/rtl8019.c b/bsps/arm/gumstix/net/rtl8019.c
index 995835c689..a9edd71be1 100644
--- a/bsps/arm/gumstix/net/rtl8019.c
+++ b/bsps/arm/gumstix/net/rtl8019.c
@@ -8,7 +8,7 @@
* http://www.rtems.org/license/LICENSE.
*/
-#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
+#include <machine/rtems-bsd-kernel-space.h>
#include <bsp.h>
#include <bsp/irq.h>
diff --git a/bsps/arm/rtl22xx/net/network.c b/bsps/arm/rtl22xx/net/network.c
index b269a6ddfc..5581b8fab5 100644
--- a/bsps/arm/rtl22xx/net/network.c
+++ b/bsps/arm/rtl22xx/net/network.c
@@ -1,6 +1,6 @@
/*Note: this file is copy from 7312 BSP, and untested yet*/
-#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
+#include <machine/rtems-bsd-kernel-space.h>
#include <rtems.h>
#include <sys/param.h>
diff --git a/bsps/arm/shared/net/lpc-ethernet.c b/bsps/arm/shared/net/lpc-ethernet.c
index fb8f014963..ccfe1696eb 100644
--- a/bsps/arm/shared/net/lpc-ethernet.c
+++ b/bsps/arm/shared/net/lpc-ethernet.c
@@ -20,7 +20,7 @@
* http://www.rtems.org/license/LICENSE.
*/
-#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
+#include <machine/rtems-bsd-kernel-space.h>
#include <errno.h>
#include <inttypes.h>