ne2000.c File Reference

NE2000 network interface implementation. More...

#include <assert.h>
#include <async.h>
#include <ddi.h>
#include <errno.h>
#include <err.h>
#include <malloc.h>
#include <sysinfo.h>
#include <ipc/services.h>
#include <ipc/ns.h>
#include <ipc/irc.h>
#include <net/modules.h>
#include <packet_client.h>
#include <adt/measured_strings.h>
#include <net/device.h>
#include <netif_skel.h>
#include <nil_remote.h>
#include "dp8390.h"

Go to the source code of this file.

Defines

#define IRQ_GET_DEVICE(call)   ((device_id_t) IPC_GET_IMETHOD(call))
 Return the device from the interrupt call.
#define IRQ_GET_ISR(call)   ((int) IPC_GET_ARG2(call))
 Return the ISR from the interrupt call.
#define IRQ_GET_TSR(call)   ((int) IPC_GET_ARG3(call))
 Return the TSR from the interrupt call.

Functions

static void change_state (netif_device_t *device, device_state_t state)
 Change the network interface state.
static void irq_handler (ipc_callid_t iid, ipc_call_t *call)
 Handle the interrupt notification.
int main (int argc, char *argv[])
 Main entry point.
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_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.

Variables

static int irc_phone = -1
static bool irc_service = false
static irq_cmd_t ne2k_cmds []
 NE2000 kernel interrupt command sequence.
static irq_code_t ne2k_code
 NE2000 kernel interrupt code.


Detailed Description

NE2000 network interface implementation.

Definition in file ne2000.c.


Generated on Thu Jun 2 07:45:55 2011 for HelenOS/USB by  doxygen 1.4.7