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.
This commit is contained in:
Sebastian Huber
2018-09-07 06:19:02 +02:00
parent 43fb904e47
commit cb682532cf
178 changed files with 483 additions and 221 deletions

View File

@@ -37,7 +37,7 @@ static inline void the_real_free(void *p)
return free(p);
}
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#include <rtems/rtems_bsdnet.h>
#include <rtems/rtems_bsdnet_internal.h>
#ifdef __i386__

View File

@@ -54,8 +54,7 @@
*
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__ 1
#define __BSD_VISIBLE 1
#include <machine/rtems-bsd-kernel-space.h>
#include <rtems.h>
#include <rtems/error.h>

View File

@@ -18,7 +18,7 @@
| of the network interface driver |
\*===============================================================*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#include <rtems.h>
#include <rtems/rtems_bsdnet.h>

View File

@@ -12,7 +12,7 @@
*
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#include <bsp.h>
#include <stdio.h>

View File

@@ -26,8 +26,7 @@
#if defined(RTEMS_NETWORKING) && defined(MPC55XX_HAS_SIU)
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__ 1
#define __BSD_VISIBLE 1
#include <machine/rtems-bsd-kernel-space.h>
#include <errno.h>
#include <assert.h>

View File

@@ -47,14 +47,13 @@
* @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#include <rtems/rtems_bsdnet.h>
#include <sys/param.h>
/*#include <sys/systm.h>
#include <sys/kernel.h> */
#define KERNEL
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/protosw.h>

View File

@@ -24,7 +24,7 @@
* eric@skatter.usask.ca
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#include <bsp.h>
#include <bsp/irq.h>

View File

@@ -44,7 +44,7 @@
* ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#include <rtems.h>
#include <rtems/error.h>
@@ -56,13 +56,6 @@
#include <assert.h>
#include <bsp.h>
#ifndef KERNEL
#define KERNEL
#endif
#ifndef _KERNEL
#define _KERNEL
#endif
#include <rtems/rtems_bsdnet.h>
#include <sys/param.h>
#include <sys/mbuf.h>

View File

@@ -19,7 +19,7 @@
*
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#define BYTE_ORDER BIG_ENDIAN

View File

@@ -30,7 +30,7 @@
*
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#define BYTE_ORDER BIG_ENDIAN

View File

@@ -12,8 +12,7 @@
* http://www.rtems.org/license/LICENSE.
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__ 1
#define __BSD_VISIBLE 1
#include <machine/rtems-bsd-kernel-space.h>
#include <assert.h>
#include <errno.h>

View File

@@ -20,8 +20,7 @@
* http://www.rtems.org/license/LICENSE.
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__ 1
#define __BSD_VISIBLE 1
#include <machine/rtems-bsd-kernel-space.h>
#include <assert.h>
#include <string.h>

View File

@@ -17,7 +17,7 @@
| this file contains the MPC83xx TSEC networking driver |
\*===============================================================*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#include <stdlib.h>
#include <bsp.h>

View File

@@ -48,7 +48,7 @@
* Copyright (c) 1999, National Research Council of Canada
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#include <bsp.h>
#include <stdio.h>

View File

@@ -45,7 +45,7 @@
* Copyright (c) 1999, National Research Council of Canada
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#include <bsp.h>
#include <stdio.h>

View File

@@ -10,7 +10,7 @@
*
*/
#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <machine/rtems-bsd-kernel-space.h>
#define PPC_HAS_CLASSIC_EXCEPTIONS FALSE
#include <bsp.h>