DP8390 network interface implementation. More...
#include <assert.h>#include <async.h>#include <ddi.h>#include <errno.h>#include <malloc.h>#include <ipc/ipc.h>#include <ipc/services.h>#include "../../err.h"#include "../../messages.h"#include "../../modules.h"#include "../../structures/packet/packet_client.h"#include "../../structures/measured_strings.h"#include "../../include/device.h"#include "../../include/nil_interface.h"#include "../netif.h"#include "../netif_module.h"#include "dp8390.h"#include "dp8390_drv.h"#include "dp8390_port.h"
Defines | |
| #define | NAME "dp8390 network interface" |
| DP8390 module name. | |
| #define | IRQ_GET_DEVICE(call) (device_id_t) IPC_GET_METHOD(*call) |
| Returns the device from the interrupt call. | |
| #define | IPC_GET_ISR(call) (int) IPC_GET_ARG2(*call) |
| Returns the interrupt status register from the interrupt call. | |
Functions | |
| void | module_print_name (void) |
| Prints the module name. | |
| void | irq_handler (ipc_callid_t iid, ipc_call_t *call) |
| Handles the interrupt messages. | |
| int | change_state (device_ref device, device_state_t state) |
| Changes the network interface state. | |
| int | netif_specific_message (ipc_callid_t callid, ipc_call_t *call, ipc_call_t *answer, int *answer_count) |
| Processes the netif driver specific message. | |
| int | netif_get_device_stats (device_id_t device_id, device_stats_ref stats) |
| Returns the device usage statistics. | |
| int | netif_get_addr_message (device_id_t device_id, measured_string_ref address) |
| Returns the device local hardware address. | |
| int | netif_probe_message (device_id_t device_id, int irq, uintptr_t io) |
| Probes the existence of the device. | |
| int | netif_send_message (device_id_t device_id, packet_t packet, services_t sender) |
| Sends the packet queue. | |
| int | netif_start_message (device_ref device) |
| Starts the device. | |
| int | netif_stop_message (device_ref device) |
| Stops the device. | |
| int | netif_initialize (void) |
| Initializes the specific module. | |
Variables | |
| static irq_cmd_t | dp8390_cmds [] |
| DP8390 kernel interrupt command sequence. | |
| static irq_code_t | dp8390_code |
| DP8390 kernel interrupt code. | |
| netif_globals_t | netif_globals |
| Network interface module global data. | |
DP8390 network interface implementation.
1.6.1