Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
c2ebeb12
Commit
c2ebeb12
authored
9 years ago
by
Oleg Hahm
Browse files
Options
Downloads
Patches
Plain Diff
gnrc: removed deprecated and unused header
parent
49a7368c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/include/net/gnrc/netdev_eth.h
+0
-82
0 additions, 82 deletions
sys/include/net/gnrc/netdev_eth.h
with
0 additions
and
82 deletions
sys/include/net/gnrc/netdev_eth.h
deleted
100644 → 0
+
0
−
82
View file @
49a7368c
/*
* Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
* Kaspar Schleiser <kaspar@schleiser.de>
* Ell-i open source co-operative
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for
* more details.
*/
/**
* @defgroup net_gnrc_netdev_eth dev_eth as netdev device.
* @ingroup net_gnrc_netdev
*
* @brief Allows for usage of @p dev_eth as ethernet netdev devices.
*
* @{
*
* @file
* @brief Definitions for @ref gnrc_netdev_eth
*
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
* @author Kaspar Schleiser <kaspar@schleiser.de>
*/
#ifndef GNRC_NETDEV_ETH_H_
#define GNRC_NETDEV_ETH_H_
#include
<inttypes.h>
#include
"kernel_types.h"
#include
"net/gnrc/netdev.h"
#include
"net/ethernet/hdr.h"
#include
"net/dev_eth.h"
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* @brief Definition of the netdev_eth device
* @extends gnrc_netdev_t
* @internal
*/
typedef
struct
{
gnrc_netdev_driver_t
*
driver
;
/**< pointer to the devices interface */
gnrc_netdev_event_cb_t
event_cb
;
/**< netdev event callback */
kernel_pid_t
mac_pid
;
/**< the driver's thread's PID */
dev_eth_t
*
ethdev
;
/**< ptr to low-level device handle */
}
gnrc_netdev_eth_t
;
/**
* @brief Reference to the netdev_eth driver interface
*/
extern
const
gnrc_netdev_driver_t
gnrc_netdev_eth_driver
;
/**
* @brief Reference to the netdev_eth device
*/
extern
gnrc_netdev_eth_t
gnrc_netdev_eth
;
/* XXX: this is only here since I do not know how to get the device in the
* interrupt handler */
/**
* @brief Initialize a given netdev_eth device
*
* @param[out] netdev netdev_eth device to initialize
* @param[in] ethdev handle dev_eth interface to be used
*
* Will initialize ethdev.
*
* @return 0 on success
* @return -ENODEV on invalid device descriptor
*/
int
gnrc_netdev_eth_init
(
gnrc_netdev_eth_t
*
netdev
,
dev_eth_t
*
ethdev
);
#ifdef __cplusplus
}
#endif
/** @} */
#endif
/* GNRC_NETDEV_ETH_H_ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment