31,7 → 31,7 |
*/ |
|
/** @file |
* \todo |
* DP8390 network interface driver interface. |
*/ |
|
#ifndef __NET_NETIF_DP8390_DRIVER_H__ |
39,11 → 39,43 |
|
#include "dp8390.h" |
|
_PROTOTYPE( int do_init, (dpeth_t *dep, int mode) ); |
_PROTOTYPE( void do_stop, (dpeth_t *dep) ); |
_PROTOTYPE( void dp_check_ints, (dpeth_t *dep, int isr) ); |
/** Initializes and/or starts the network interface. |
* @param[in,out] dep The network interface structure. |
* @param[in] mode The state mode. |
* @returns EOK on success. |
* @returns EXDEV if the network interface is disabled. |
*/ |
int do_init(dpeth_t *dep, int mode); |
|
/** Stops the network interface. |
* @param[in,out] dep The network interface structure. |
*/ |
void do_stop(dpeth_t *dep); |
|
/** Processes the interrupt. |
* @param[in,out] dep The network interface structure. |
* @param[in] isr The interrupt status register. |
*/ |
void dp_check_ints(dpeth_t *dep, int isr); |
|
/** Probes and initializes the network interface. |
* @param[in,out] dep The network interface structure. |
* @returns EOK on success. |
* @returns EXDEV if the network interface was not recognized. |
*/ |
int do_probe( dpeth_t * dep ); |
|
/** Sends a packet. |
* @param[in,out] dep The network interface structure. |
* @param[in] packet The packet t be sent. |
* @param[in] from_int The value indicating whether the sending is initialized from the interrupt handler. |
* @returns |
*/ |
int do_pwrite( dpeth_t * dep, packet_t packet, int from_int ); |
|
/** Prints out network interface information. |
* @param[in] dep The network interface structure. |
*/ |
void dp8390_dump( dpeth_t * dep ); |
|
#endif |