Ignore:
File:
1 edited

Legend:

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

    rf902d36 rb72efe8  
    5353#include <byteorder.h>
    5454#include <errno.h>
     55#include <stdio.h>
    5556#include <libarch/ddi.h>
    5657#include <net/packet.h>
     
    391392       
    392393        if ((size < ETH_MIN_PACK_SIZE) || (size > ETH_MAX_PACK_SIZE_TAGGED)) {
     394                fibril_mutex_unlock(&ne2k->sq_mutex);
    393395                fprintf(stderr, "%s: Frame dropped (invalid size %zu bytes)\n",
    394396                    NAME, size);
     
    481483}
    482484
    483 static link_t *ne2k_receive(ne2k_t *ne2k)
     485static list_t *ne2k_receive(ne2k_t *ne2k)
    484486{
    485487        /*
     
    488490         * frames from the network, but they will be lost.
    489491         */
    490         link_t *frames = (link_t *) malloc(sizeof(link_t));
     492        list_t *frames = (list_t *) malloc(sizeof(list_t));
    491493        if (frames != NULL)
    492494                list_initialize(frames);
     
    565567}
    566568
    567 link_t *ne2k_interrupt(ne2k_t *ne2k, uint8_t isr, uint8_t tsr)
     569list_t *ne2k_interrupt(ne2k_t *ne2k, uint8_t isr, uint8_t tsr)
    568570{
    569571        /* List of received frames */
    570         link_t *frames = NULL;
     572        list_t *frames = NULL;
    571573       
    572574        if (isr & (ISR_PTX | ISR_TXE)) {
Note: See TracChangeset for help on using the changeset viewer.