Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ne2k/dp8390.c

    ra88a6eac racdb5bac  
    5858#include <errno.h>
    5959#include <stdio.h>
    60 #include <libarch/ddi.h>
     60#include <ddi.h>
    6161#include "dp8390.h"
    6262
     
    201201        /* Check if the DP8390 is really there */
    202202        uint8_t val = pio_read_8(ne2k->port + DP_CR);
    203         if ((val & (CR_STP | CR_DM_ABORT)) != (CR_STP | CR_DM_ABORT))
     203        if ((val & (CR_STP | CR_TXP | CR_DM_ABORT)) != (CR_STP | CR_DM_ABORT))
    204204                return EXDEV;
    205205       
     
    446446                return NULL;
    447447       
    448         bzero(frame->data, length);
     448        memset(frame->data, 0, length);
    449449        uint8_t last = page + length / DP_PAGE;
    450450       
Note: See TracChangeset for help on using the changeset viewer.