Changeset a35b458 in mainline for uspace/drv/nic/rtl8169/driver.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/rtl8169/driver.c
r3061bc1 ra35b458 352 352 ddf_msg(LVL_DEBUG, "The device is initialized"); 353 353 return ret; 354 354 355 355 failed: 356 356 ddf_msg(LVL_ERROR, "The device initialization failed"); … … 460 460 goto err_fun_bind; 461 461 } 462 462 463 463 ddf_msg(LVL_NOTE, "The %s device has been successfully initialized.", 464 464 ddf_dev_get_name(dev)); … … 512 512 if (rtl8169->pci_vid == PCI_VID_REALTEK) 513 513 str_cpy(info->vendor_name, NIC_VENDOR_MAX_LENGTH, "Realtek"); 514 514 515 515 if (rtl8169->pci_vid == PCI_VID_DLINK) 516 516 str_cpy(info->vendor_name, NIC_VENDOR_MAX_LENGTH, "D-Link"); 517 517 518 518 if (rtl8169->pci_pid == 0x8168) 519 519 str_cpy(info->model_name, NIC_MODEL_MAX_LENGTH, "RTL8168"); 520 520 521 521 if (rtl8169->pci_pid == 0x8169) 522 522 str_cpy(info->model_name, NIC_MODEL_MAX_LENGTH, "RTL8169"); … … 577 577 bmcr = rtl8169_mii_read(rtl8169, MII_BMCR); 578 578 bmcr &= ~(BMCR_DUPLEX | BMCR_SPD_100 | BMCR_SPD_1000); 579 579 580 580 /* Disable autonegotiation */ 581 581 bmcr &= ~BMCR_AN_ENABLE; … … 918 918 { 919 919 rtl8169_t *rtl8169 = nic_get_specific(nic_data); 920 920 921 921 /* Configure Receive Control Register */ 922 922 uint32_t rcr = pio_read_32(rtl8169->regs + RCR); … … 961 961 write_barrier(); 962 962 ddf_msg(LVL_DEBUG, "TX status for descr %d: 0x%08x", tail, descr->control); 963 963 964 964 tail = (tail + 1) % TX_BUFFERS_COUNT; 965 965 sent++; … … 1005 1005 if (descr->control & CONTROL_FS) 1006 1006 fsidx = tail; 1007 1007 1008 1008 if (descr->control & CONTROL_LS) { 1009 1009 ddf_msg(LVL_DEBUG, "received message at slot %d, control 0x%08x", tail, descr->control);
Note:
See TracChangeset
for help on using the changeset viewer.