Changeset 582a0b8 in mainline for uspace/drv/nic/rtl8169/driver.c
- Timestamp:
- 2017-05-08T19:20:39Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d2c8533
- Parents:
- 73db198
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/rtl8169/driver.c
r73db198 r582a0b8 35 35 36 36 #include <as.h> 37 #include <thread.h> 37 38 #include <ddf/log.h> 38 39 #include <ddf/interrupt.h> … … 760 761 memory_barrier(); 761 762 while (pio_read_8(rtl8169->regs + CR) & CR_RST) { 762 usleep(1);763 thread_usleep(1); 763 764 read_barrier(); 764 765 } … … 1174 1175 do { 1175 1176 phyar = pio_read_32(rtl8169->regs + PHYAR); 1176 usleep(20);1177 thread_usleep(20); 1177 1178 } while ((phyar & PHYAR_RW_WRITE) == 0); 1178 1179 … … 1192 1193 do { 1193 1194 phyar = pio_read_32(rtl8169->regs + PHYAR); 1194 usleep(20);1195 thread_usleep(20); 1195 1196 } while ((phyar & PHYAR_RW_WRITE) != 0); 1196 1197 1197 usleep(20);1198 thread_usleep(20); 1198 1199 } 1199 1200
Note:
See TracChangeset
for help on using the changeset viewer.