Changeset 5f97ef44 in mainline for uspace/drv/nic
- Timestamp:
- 2018-07-13T14:10:15Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e3787a0
- Parents:
- 9912f49
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:08:57)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:10:15)
- Location:
- uspace/drv/nic
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/ar9271.c
r9912f49 r5f97ef44 829 829 830 830 /* Wait until firmware is ready - wait for 1 second to be sure. */ 831 async_sleep(1);831 fibril_sleep(1); 832 832 833 833 return rc; -
uspace/drv/nic/e1k/e1k.c
r9912f49 r5f97ef44 372 372 fibril_mutex_unlock(&e1000->ctrl_lock); 373 373 374 async_usleep(10);374 fibril_usleep(10); 375 375 376 376 fibril_mutex_lock(&e1000->ctrl_lock); … … 1726 1726 1727 1727 /* Wait for the reset */ 1728 async_usleep(20);1728 fibril_usleep(20); 1729 1729 1730 1730 /* check if RST_BIT cleared */ … … 1814 1814 * transfers to descriptors. 1815 1815 */ 1816 async_usleep(100);1816 fibril_usleep(100); 1817 1817 1818 1818 return EOK; … … 2240 2240 uint32_t eerd = E1000_REG_READ(e1000, E1000_EERD); 2241 2241 while ((eerd & e1000->info.eerd_done) == 0) { 2242 async_usleep(1);2242 fibril_usleep(1); 2243 2243 eerd = E1000_REG_READ(e1000, E1000_EERD); 2244 2244 } -
uspace/drv/nic/ne2k/dp8390.c
r9912f49 r5f97ef44 172 172 /* Reset the ethernet card */ 173 173 uint8_t val = pio_read_8(ne2k->port + NE2K_RESET); 174 async_usleep(2000);174 fibril_usleep(2000); 175 175 pio_write_8(ne2k->port + NE2K_RESET, val); 176 async_usleep(2000);176 fibril_usleep(2000); 177 177 178 178 /* Reset the DP8390 */ -
uspace/drv/nic/rtl8139/driver.c
r9912f49 r5f97ef44 440 440 memory_barrier(); 441 441 while (pio_read_8(io_base + CR) & CR_RST) { 442 async_usleep(1);442 fibril_usleep(1); 443 443 read_barrier(); 444 444 } -
uspace/drv/nic/rtl8169/driver.c
r9912f49 r5f97ef44 767 767 memory_barrier(); 768 768 while (pio_read_8(rtl8169->regs + CR) & CR_RST) { 769 async_usleep(1);769 fibril_usleep(1); 770 770 read_barrier(); 771 771 } … … 1180 1180 do { 1181 1181 phyar = pio_read_32(rtl8169->regs + PHYAR); 1182 async_usleep(20);1182 fibril_usleep(20); 1183 1183 } while ((phyar & PHYAR_RW_WRITE) == 0); 1184 1184 … … 1198 1198 do { 1199 1199 phyar = pio_read_32(rtl8169->regs + PHYAR); 1200 async_usleep(20);1200 fibril_usleep(20); 1201 1201 } while ((phyar & PHYAR_RW_WRITE) != 0); 1202 1202 1203 async_usleep(20);1203 fibril_usleep(20); 1204 1204 } 1205 1205
Note:
See TracChangeset
for help on using the changeset viewer.