Changeset 582a0b8 in mainline for uspace/drv/nic/rtl8169/driver.c


Ignore:
Timestamp:
2017-05-08T19:20:39Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d2c8533
Parents:
73db198
Message:

Remove unistd.h

  • Rename usleep() and sleep() to thread_usleep() and thread_sleep() and move to thread.[hc].
  • Include stddef.h in order to provide NULL.
  • Move getpagesize() to libposix.
  • Sync uspace/dist/src/c/demos with originals.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/rtl8169/driver.c

    r73db198 r582a0b8  
    3535
    3636#include <as.h>
     37#include <thread.h>
    3738#include <ddf/log.h>
    3839#include <ddf/interrupt.h>
     
    760761        memory_barrier();
    761762        while (pio_read_8(rtl8169->regs + CR) & CR_RST) {
    762                 usleep(1);
     763                thread_usleep(1);
    763764                read_barrier();
    764765        }
     
    11741175        do {
    11751176                phyar = pio_read_32(rtl8169->regs + PHYAR);
    1176                 usleep(20);
     1177                thread_usleep(20);
    11771178        } while ((phyar & PHYAR_RW_WRITE) == 0);
    11781179
     
    11921193        do {
    11931194                phyar = pio_read_32(rtl8169->regs + PHYAR);
    1194                 usleep(20);
     1195                thread_usleep(20);
    11951196        } while ((phyar & PHYAR_RW_WRITE) != 0);
    11961197
    1197         usleep(20);
     1198        thread_usleep(20);
    11981199}
    11991200
Note: See TracChangeset for help on using the changeset viewer.