Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/netif/ne2000/dp8390.c

    rb72efe8 rf902d36  
    5353#include <byteorder.h>
    5454#include <errno.h>
    55 #include <stdio.h>
    5655#include <libarch/ddi.h>
    5756#include <net/packet.h>
     
    392391       
    393392        if ((size < ETH_MIN_PACK_SIZE) || (size > ETH_MAX_PACK_SIZE_TAGGED)) {
    394                 fibril_mutex_unlock(&ne2k->sq_mutex);
    395393                fprintf(stderr, "%s: Frame dropped (invalid size %zu bytes)\n",
    396394                    NAME, size);
     
    483481}
    484482
    485 static list_t *ne2k_receive(ne2k_t *ne2k)
     483static link_t *ne2k_receive(ne2k_t *ne2k)
    486484{
    487485        /*
     
    490488         * frames from the network, but they will be lost.
    491489         */
    492         list_t *frames = (list_t *) malloc(sizeof(list_t));
     490        link_t *frames = (link_t *) malloc(sizeof(link_t));
    493491        if (frames != NULL)
    494492                list_initialize(frames);
     
    567565}
    568566
    569 list_t *ne2k_interrupt(ne2k_t *ne2k, uint8_t isr, uint8_t tsr)
     567link_t *ne2k_interrupt(ne2k_t *ne2k, uint8_t isr, uint8_t tsr)
    570568{
    571569        /* List of received frames */
    572         list_t *frames = NULL;
     570        link_t *frames = NULL;
    573571       
    574572        if (isr & (ISR_PTX | ISR_TXE)) {
Note: See TracChangeset for help on using the changeset viewer.