Changeset f300523 in mainline for uspace/drv/nic/rtl8169/driver.c
- Timestamp:
- 2017-11-29T18:43:10Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 39026d7c
- Parents:
- 48b77ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/rtl8169/driver.c
r48b77ed rf300523 28 28 29 29 #include <assert.h> 30 #include <async.h> 30 31 #include <errno.h> 31 32 #include <align.h> … … 34 35 35 36 #include <as.h> 36 #include <thread.h>37 37 #include <ddf/log.h> 38 38 #include <ddf/interrupt.h> … … 763 763 memory_barrier(); 764 764 while (pio_read_8(rtl8169->regs + CR) & CR_RST) { 765 thread_usleep(1);765 async_usleep(1); 766 766 read_barrier(); 767 767 } … … 1176 1176 do { 1177 1177 phyar = pio_read_32(rtl8169->regs + PHYAR); 1178 thread_usleep(20);1178 async_usleep(20); 1179 1179 } while ((phyar & PHYAR_RW_WRITE) == 0); 1180 1180 … … 1194 1194 do { 1195 1195 phyar = pio_read_32(rtl8169->regs + PHYAR); 1196 thread_usleep(20);1196 async_usleep(20); 1197 1197 } while ((phyar & PHYAR_RW_WRITE) != 0); 1198 1198 1199 thread_usleep(20);1199 async_usleep(20); 1200 1200 } 1201 1201
Note:
See TracChangeset
for help on using the changeset viewer.