#include <async.h>
#include <fibril_synch.h>
#include <ipc/services.h>
#include <adt/measured_strings.h>
#include <net/device.h>
#include <net/packet.h>
Go to the source code of this file.
Data Structures | |
struct | netif_device_t |
Network interface device specific data. More... | |
struct | netif_globals_t |
Network interface module skeleton global data. More... | |
Functions | |
DEVICE_MAP_DECLARE (netif_device_map, netif_device_t) | |
Device map. | |
int | find_device (device_id_t device_id, netif_device_t **device) |
Find the device specific data. | |
int | netif_get_addr_message (device_id_t device_id, measured_string_t *address) |
Return the device local hardware address. | |
int | netif_get_device_stats (device_id_t device_id, device_stats_t *stats) |
Return the device usage statistics. | |
int | netif_initialize (void) |
Initialize the specific module. | |
int | netif_module_start (void) |
Start the network interface module. | |
packet_t * | netif_packet_get_1 (size_t content) |
Allocate new packet to handle the given content size. | |
void | netif_pq_release (packet_id_t packet_id) |
Release the given packet. | |
int | netif_probe_message (device_id_t device_id, int irq, void *io) |
Probe the existence of the device. | |
int | netif_send_message (device_id_t device_id, packet_t *packet, services_t sender) |
Send the packet queue. | |
int | netif_specific_message (ipc_callid_t callid, ipc_call_t *call, ipc_call_t *answer, size_t *count) |
Process the netif driver specific message. | |
int | netif_start_message (netif_device_t *device) |
Start the device. | |
int | netif_stop_message (netif_device_t *device) |
Stop the device. | |
void | null_device_stats (device_stats_t *stats) |
Clear the usage statistics. | |
Variables | |
netif_globals_t | netif_globals |
Network interface global data. |
The skeleton has to be part of each network interface module.
Definition in file netif_skel.h.