Rev 4723 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4723 | Rev 4756 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | /** @addtogroup dp8390 |
29 | /** @addtogroup dp8390 |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | 32 | ||
33 | /** @file |
33 | /** @file |
34 | * \todo |
34 | * DP8390 network interface driver interface. |
35 | */ |
35 | */ |
36 | 36 | ||
37 | #ifndef __NET_NETIF_DP8390_DRIVER_H__ |
37 | #ifndef __NET_NETIF_DP8390_DRIVER_H__ |
38 | #define __NET_NETIF_DP8390_DRIVER_H__ |
38 | #define __NET_NETIF_DP8390_DRIVER_H__ |
39 | 39 | ||
40 | #include "dp8390.h" |
40 | #include "dp8390.h" |
41 | 41 | ||
- | 42 | /** Initializes and/or starts the network interface. |
|
- | 43 | * @param[in,out] dep The network interface structure. |
|
- | 44 | * @param[in] mode The state mode. |
|
- | 45 | * @returns EOK on success. |
|
- | 46 | * @returns EXDEV if the network interface is disabled. |
|
- | 47 | */ |
|
42 | _PROTOTYPE( int do_init, (dpeth_t *dep, int mode) ); |
48 | int do_init(dpeth_t *dep, int mode); |
- | 49 | ||
- | 50 | /** Stops the network interface. |
|
- | 51 | * @param[in,out] dep The network interface structure. |
|
- | 52 | */ |
|
43 | _PROTOTYPE( void do_stop, (dpeth_t *dep) ); |
53 | void do_stop(dpeth_t *dep); |
- | 54 | ||
- | 55 | /** Processes the interrupt. |
|
- | 56 | * @param[in,out] dep The network interface structure. |
|
- | 57 | * @param[in] isr The interrupt status register. |
|
- | 58 | */ |
|
44 | _PROTOTYPE( void dp_check_ints, (dpeth_t *dep, int isr) ); |
59 | void dp_check_ints(dpeth_t *dep, int isr); |
- | 60 | ||
- | 61 | /** Probes and initializes the network interface. |
|
- | 62 | * @param[in,out] dep The network interface structure. |
|
- | 63 | * @returns EOK on success. |
|
- | 64 | * @returns EXDEV if the network interface was not recognized. |
|
- | 65 | */ |
|
45 | int do_probe( dpeth_t * dep ); |
66 | int do_probe( dpeth_t * dep ); |
- | 67 | ||
- | 68 | /** Sends a packet. |
|
- | 69 | * @param[in,out] dep The network interface structure. |
|
- | 70 | * @param[in] packet The packet t be sent. |
|
- | 71 | * @param[in] from_int The value indicating whether the sending is initialized from the interrupt handler. |
|
- | 72 | * @returns |
|
- | 73 | */ |
|
46 | int do_pwrite( dpeth_t * dep, packet_t packet, int from_int ); |
74 | int do_pwrite( dpeth_t * dep, packet_t packet, int from_int ); |
- | 75 | ||
- | 76 | /** Prints out network interface information. |
|
- | 77 | * @param[in] dep The network interface structure. |
|
- | 78 | */ |
|
47 | void dp8390_dump( dpeth_t * dep ); |
79 | void dp8390_dump( dpeth_t * dep ); |
48 | 80 | ||
49 | #endif |
81 | #endif |
50 | 82 | ||
51 | /** @} |
83 | /** @} |