Subversion Repositories HelenOS

Rev

Rev 4743 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4743 Rev 4756
Line 19... Line 19...
19
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
19
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
20
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
21
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
 *
22
 *
23
 * Changes:
23
 * Changes:
24
 *  2009 Lukas Mejdrech ported to HelenOS
24
 *  2009 ported to HelenOS, Lukas Mejdrech
25
 */
25
 */
26
 
26
 
27
/** @addtogroup dp8390
27
/** @addtogroup dp8390
28
 *  @{
28
 *  @{
29
 */
29
 */
30
 
30
 
31
/** @file
31
/** @file
32
 *  \todo
32
 *  DP8390 network interface core implementation.
33
 */
33
 */
34
 
34
 
35
#include <assert.h>
35
#include <assert.h>
36
#include <errno.h>
36
#include <errno.h>
37
 
37
 
Line 58... Line 58...
58
 */
58
 */
59
 
59
 
60
#include "local.h"
60
#include "local.h"
61
#include "dp8390.h"
61
#include "dp8390.h"
62
 
62
 
-
 
63
/** Queues the outgoing packet.
-
 
64
 *  @param[in] dep The network interface structure.
-
 
65
 *  @param[in] packet The outgoing packet.
-
 
66
 *  @returns EOK on success.
-
 
67
 *  @returns EINVAL
-
 
68
 */
63
int queue_packet( dpeth_t * dep, packet_t packet );
69
int queue_packet( dpeth_t * dep, packet_t packet );
-
 
70
 
-
 
71
/** Reads a memory block byte by byte.
-
 
72
 *  @param[in] port The source address.
-
 
73
 *  @param[out] buf The destination buffer.
-
 
74
 *  @param[in] size The memory block size in bytes.
-
 
75
 */
64
static void outsb( port_t port, void * buf, size_t size );
76
static void outsb( port_t port, void * buf, size_t size );
-
 
77
 
-
 
78
/** Reads a memory block word by word.
-
 
79
 *  @param[in] port The source address.
-
 
80
 *  @param[out] buf The destination buffer.
-
 
81
 *  @param[in] size The memory block size in bytes.
-
 
82
 */
65
static void outsw( port_t port, void * buf, size_t size );
83
static void outsw( port_t port, void * buf, size_t size );
66
 
84
 
67
//static u16_t eth_ign_proto;
85
//static u16_t eth_ign_proto;
68
//static char *progname;
86
//static char *progname;
69
 
87