Skip to content
Snippets Groups Projects
Commit fc8c3cea authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #3592 from authmillenon/native/api/mv-dev-eth-tap

native: rename ng_nativenet to dev_eth_tap
parents f68ff2ae f0cb1429
Branches
No related tags found
No related merge requests found
ifneq (,$(filter ng_netif_default,$(USEMODULE))) ifneq (,$(filter ng_netif_default,$(USEMODULE)))
USEMODULE += ng_nativenet USEMODULE += dev_eth_tap
USEMODULE += ng_netdev_eth USEMODULE += ng_netdev_eth
USEMODULE += ng_nomac USEMODULE += ng_nomac
endif endif
...@@ -2,8 +2,8 @@ MODULE = cpu ...@@ -2,8 +2,8 @@ MODULE = cpu
DIRS += periph DIRS += periph
ifneq (,$(filter ng_nativenet,$(USEMODULE))) ifneq (,$(filter dev_eth_tap,$(USEMODULE)))
DIRS += ng_net DIRS += dev_eth_tap
endif endif
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base
......
MODULE = ng_nativenet MODULE = dev_eth_tap
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base
......
...@@ -7,13 +7,14 @@ ...@@ -7,13 +7,14 @@
*/ */
/** /**
* @defgroup net_dev_eth_impl Low-level Ethernet driver implementations * @defgroup dev_eth_tap Ethernet driver for TAP interfaces
* @ingroup net_dev_eth_ll * @ingroup native_cpu
* @brief Low-level ethernet driver for native tap interfaces * @brief Low-level ethernet driver for native tap interfaces
* @{ * @{
* *
* @file * @file
* @brief Definitions for low-level ethernet driver for native tap interfaces * @brief Definitions for @ref net_dev_eth driver for host system's
* TAP interfaces
* *
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
*/ */
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
#include "cpu.h" #include "cpu.h"
#include "cpu_conf.h" #include "cpu_conf.h"
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
#include "dev_eth_tap.h" #include "dev_eth_tap.h"
extern dev_eth_tap_t dev_eth_tap; extern dev_eth_tap_t dev_eth_tap;
#endif #endif
...@@ -75,7 +75,7 @@ int reboot_arch(int mode) ...@@ -75,7 +75,7 @@ int reboot_arch(int mode)
/* TODO: close stdio fds */ /* TODO: close stdio fds */
#endif #endif
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
dev_eth_tap_cleanup(&dev_eth_tap); dev_eth_tap_cleanup(&dev_eth_tap);
#endif #endif
......
...@@ -46,7 +46,7 @@ unsigned _native_rng_seed = 0; ...@@ -46,7 +46,7 @@ unsigned _native_rng_seed = 0;
int _native_rng_mode = 0; int _native_rng_mode = 0;
const char *_native_unix_socket_path = NULL; const char *_native_unix_socket_path = NULL;
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
#include "dev_eth_tap.h" #include "dev_eth_tap.h"
extern dev_eth_tap_t dev_eth_tap; extern dev_eth_tap_t dev_eth_tap;
#endif #endif
...@@ -196,7 +196,7 @@ void usage_exit(void) ...@@ -196,7 +196,7 @@ void usage_exit(void)
{ {
real_printf("usage: %s", _progname); real_printf("usage: %s", _progname);
#if defined(MODULE_NG_NATIVENET) #if defined(MODULE_DEV_ETH_TAP)
real_printf(" <tap interface>"); real_printf(" <tap interface>");
#endif #endif
...@@ -256,7 +256,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv) ...@@ -256,7 +256,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv)
int replay = 0; int replay = 0;
#endif #endif
#if defined(MODULE_NG_NATIVENET) #if defined(MODULE_DEV_ETH_TAP)
if ( if (
(argc < 2) (argc < 2)
|| ( || (
...@@ -367,7 +367,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv) ...@@ -367,7 +367,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv)
native_cpu_init(); native_cpu_init();
native_interrupt_init(); native_interrupt_init();
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
dev_eth_tap_setup(&dev_eth_tap, argv[1]); dev_eth_tap_setup(&dev_eth_tap, argv[1]);
#endif #endif
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "net/dev_eth.h" #include "net/dev_eth.h"
#include "dev_eth_autoinit.h" #include "dev_eth_autoinit.h"
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
#include "dev_eth_tap.h" #include "dev_eth_tap.h"
#endif #endif
...@@ -19,7 +19,7 @@ encx24j600_t dev_eth_encx24j600; ...@@ -19,7 +19,7 @@ encx24j600_t dev_eth_encx24j600;
#endif #endif
dev_eth_t * const dev_eth_devices[] = { dev_eth_t * const dev_eth_devices[] = {
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
[DEV_ETH_TAP] = (dev_eth_t*)&dev_eth_tap, [DEV_ETH_TAP] = (dev_eth_t*)&dev_eth_tap,
#endif #endif
#ifdef MODULE_ENCX24J600 #ifdef MODULE_ENCX24J600
......
...@@ -29,7 +29,7 @@ extern "C" { ...@@ -29,7 +29,7 @@ extern "C" {
* @brief enum for available ethernet devices * @brief enum for available ethernet devices
*/ */
enum { enum {
#ifdef MODULE_NG_NATIVENET #ifdef MODULE_DEV_ETH_TAP
DEV_ETH_TAP, DEV_ETH_TAP,
#endif #endif
#ifdef MODULE_ENCX24J600 #ifdef MODULE_ENCX24J600
......
...@@ -8,11 +8,9 @@ ...@@ -8,11 +8,9 @@
*/ */
/** /**
* @defgroup net_dev_eth_ll Low-Level Driver Inteface * @defgroup net_dev_eth Low-Level Driver Interface
* @ingroup net_ethernet * @ingroup net_ethernet
* @file
* @brief Low-level ethernet driver interface * @brief Low-level ethernet driver interface
* @{
* *
* This interface is supposed to be a low-level interface for ethernet drivers. * This interface is supposed to be a low-level interface for ethernet drivers.
* In order to be universally usable, it leaves out many implementation details * In order to be universally usable, it leaves out many implementation details
...@@ -44,6 +42,8 @@ ...@@ -44,6 +42,8 @@
* *
* Check out the dev_eth test application as example. * Check out the dev_eth test application as example.
* *
* @{
*
* @file * @file
* @brief Definitions low-level ethernet driver interface * @brief Definitions low-level ethernet driver interface
* *
......
...@@ -5,7 +5,7 @@ BOARD_WHITELIST = native ...@@ -5,7 +5,7 @@ BOARD_WHITELIST = native
FEATURES_REQUIRED += ethernet FEATURES_REQUIRED += ethernet
ifneq (,$(filter native,$(BOARD))) ifneq (,$(filter native,$(BOARD)))
USEMODULE += ng_nativenet USEMODULE += dev_eth_tap
endif endif
USEMODULE += dev_eth_autoinit USEMODULE += dev_eth_autoinit
......
...@@ -3,7 +3,7 @@ include ../Makefile.tests_common ...@@ -3,7 +3,7 @@ include ../Makefile.tests_common
BOARD_WHITELIST := native BOARD_WHITELIST := native
USEMODULE += ng_nativenet USEMODULE += dev_eth_tap
USEMODULE += ng_netbase USEMODULE += ng_netbase
USEMODULE += ng_nomac USEMODULE += ng_nomac
USEMODULE += ng_pktdump USEMODULE += ng_pktdump
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment