Changeset 582a0b8 in mainline for uspace/drv/nic/rtl8139


Ignore:
Timestamp:
2017-05-08T19:20:39Z (9 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.
Location:
uspace/drv/nic/rtl8139
Files:
3 edited

Legend:

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

    r73db198 r582a0b8  
    3030#include <errno.h>
    3131#include <align.h>
     32#include <thread.h>
    3233#include <byteorder.h>
    3334#include <libarch/barrier.h>
     
    471472        memory_barrier();
    472473        while(pio_read_8(io_base + CR) & CR_RST) {
    473                 usleep(1);
     474                thread_usleep(1);
    474475                read_barrier();
    475476        }
  • uspace/drv/nic/rtl8139/general.c

    r73db198 r582a0b8  
    3535
    3636#include <mem.h>
    37 #include <unistd.h>
    3837#include <errno.h>
    3938#include <stdint.h>
  • uspace/drv/nic/rtl8139/general.h

    r73db198 r582a0b8  
    3535#define RTL8139_GENERAL_H_
    3636
    37 #include <unistd.h>
     37#include <stddef.h>
     38#include <time.h>
    3839
    3940/** Number of microseconds in second */
Note: See TracChangeset for help on using the changeset viewer.