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