Changeset aa1e202 in mainline
- Timestamp:
- 2011-01-06T19:59:43Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e0854e3
- Parents:
- 39d70ec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/dp8390/dp8390.c
r39d70ec raa1e202 76 76 { 77 77 if (dep->de_mode == DEM_DISABLED) 78 / / might call do_probe()78 /* FIXME: Perhaps call do_probe()? */ 79 79 return EXDEV; 80 80 … … 402 402 } 403 403 404 if (isr & ISR_PRX) { 405 /* Only call dp_recv if there is a read request */ 406 // if (dep->de_flags) & DEF_READING) 407 dp_recv(nil_phone, device_id, dep); 408 } 404 if (isr & ISR_PRX) 405 dp_recv(nil_phone, device_id, dep); 409 406 410 407 if (isr & ISR_RXE) … … 417 414 } 418 415 419 if (isr & ISR_OVW) {416 if (isr & ISR_OVW) 420 417 dep->de_stat.ets_OVW++; 421 /* if (dep->de_flags & DEF_READING) {422 printf("dp_check_ints: strange: overwrite warning and pending read request\n");423 dp_recv(dep);424 }425 */ }426 418 427 419 if (isr & ISR_RDC) { … … 441 433 } 442 434 443 // if ((dep->de_flags & (DEF_READING | DEF_STOPPED)) == (DEF_READING | DEF_STOPPED))444 435 if ((dep->de_flags & DEF_STOPPED) == DEF_STOPPED) { 445 436 /* … … 456 447 { 457 448 dp_rcvhdr_t header; 458 //unsigned pageno, curr, next;459 449 int pageno, curr, next; 460 450 size_t length; … … 543 533 packet_t *packet; 544 534 545 // if (!(dep->de_flags & DEF_READING))546 // return EINVAL;547 548 535 packet = netif_packet_get_1(length); 549 536 if (!packet) … … 566 553 567 554 dep->de_flags |= DEF_PACK_RECV; 568 // dep->de_flags &= ~DEF_READING;569 555 570 556 nil_received_msg(nil_phone, device_id, packet, SERVICE_NONE); … … 678 664 static void conf_hw(dpeth_t *dep) 679 665 { 680 // int ifnr;681 // dp_conf_t *dcp;682 683 // dep->de_mode= DEM_DISABLED; /* Superfluous */684 // ifnr= dep-de_table;685 686 // dcp= &dp_conf[ifnr];687 // update_conf(dep, dcp);688 // if (dep->de_mode != DEM_ENABLED)689 // return;690 691 666 if (!ne_probe(dep)) { 692 667 printf("%s: No ethernet card found at %#lx\n",
Note:
See TracChangeset
for help on using the changeset viewer.