Changes in uspace/srv/hw/netif/ne2000/dp8390.c [b72efe8:f902d36] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/ne2000/dp8390.c
rb72efe8 rf902d36 53 53 #include <byteorder.h> 54 54 #include <errno.h> 55 #include <stdio.h>56 55 #include <libarch/ddi.h> 57 56 #include <net/packet.h> … … 392 391 393 392 if ((size < ETH_MIN_PACK_SIZE) || (size > ETH_MAX_PACK_SIZE_TAGGED)) { 394 fibril_mutex_unlock(&ne2k->sq_mutex);395 393 fprintf(stderr, "%s: Frame dropped (invalid size %zu bytes)\n", 396 394 NAME, size); … … 483 481 } 484 482 485 static li st_t *ne2k_receive(ne2k_t *ne2k)483 static link_t *ne2k_receive(ne2k_t *ne2k) 486 484 { 487 485 /* … … 490 488 * frames from the network, but they will be lost. 491 489 */ 492 li st_t *frames = (list_t *) malloc(sizeof(list_t));490 link_t *frames = (link_t *) malloc(sizeof(link_t)); 493 491 if (frames != NULL) 494 492 list_initialize(frames); … … 567 565 } 568 566 569 li st_t *ne2k_interrupt(ne2k_t *ne2k, uint8_t isr, uint8_t tsr)567 link_t *ne2k_interrupt(ne2k_t *ne2k, uint8_t isr, uint8_t tsr) 570 568 { 571 569 /* List of received frames */ 572 li st_t *frames = NULL;570 link_t *frames = NULL; 573 571 574 572 if (isr & (ISR_PTX | ISR_TXE)) {
Note:
See TracChangeset
for help on using the changeset viewer.