Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4755 → Rev 4756

/branches/network/uspace/srv/net/netif/dp8390/dp8390_module.c
31,7 → 31,7
*/
 
/** @file
* \todo
* DP8390 network interface implementation.
*/
 
#include <assert.h>
60,11 → 60,22
#include "dp8390_drv.h"
#include "dp8390_port.h"
 
/** DP8390 module name.
*/
#define NAME "dp8390 network interface"
 
/** Returns the device from the interrupt call.
* @param[in] call The interrupt call.
*/
#define IRQ_GET_DEVICE( call ) ( device_id_t ) IPC_GET_METHOD( * call )
 
/** Returns the interrupt status register from the interrupt call.
* @param[in] call The interrupt call.
*/
#define IPC_GET_ISR( call ) ( int ) IPC_GET_ARG2( * call )
 
/** DP8390 kernel interrupt command sequence.
*/
static irq_cmd_t dp8390_cmds[] = {
{ .cmd = CMD_PIO_READ_8,
.addr = NULL,
80,16 → 91,34
}
};
 
/** DP8390 kernel interrupt code.
*/
static irq_code_t dp8390_code = {
sizeof( dp8390_cmds ) / sizeof( irq_cmd_t ),
dp8390_cmds
};
 
/** Network interface module global data.
*/
netif_globals_t netif_globals;
 
/** Prints the module name.
* @see NAME
*/
void module_print_name( void );
 
/** Handles the interrupt messages.
* This is the interrupt handler callback function.
* @param[in] iid The interrupt message identifier.
* @param[in] call The interrupt message.
*/
void irq_handler( ipc_callid_t iid, ipc_call_t * call );
 
/** Changes the network interface state.
* @param[in,out] device The network interface.
* @param[in] state The new state.
* @returns The new state.
*/
int change_state( device_ref device, device_state_t state );
 
int netif_specific_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){