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


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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/e1k/e1k.c

    r73db198 r582a0b8  
    3838#include <adt/list.h>
    3939#include <align.h>
     40#include <thread.h>
    4041#include <byteorder.h>
    4142#include <irc.h>
     
    365366                ctrl &= ~(CTRL_SLU);
    366367                fibril_mutex_unlock(&e1000->ctrl_lock);
    367                 usleep(10);
     368                thread_usleep(10);
    368369                fibril_mutex_lock(&e1000->ctrl_lock);
    369370                ctrl |= CTRL_SLU;
     
    17171718       
    17181719        /* Wait for the reset */
    1719         usleep(20);
     1720        thread_usleep(20);
    17201721       
    17211722        /* check if RST_BIT cleared */
     
    18051806         * transfers to descriptors.
    18061807         */
    1807         usleep(100);
     1808        thread_usleep(100);
    18081809       
    18091810        return EOK;
     
    22232224        uint32_t eerd = E1000_REG_READ(e1000, E1000_EERD);
    22242225        while ((eerd & e1000->info.eerd_done) == 0) {
    2225                 usleep(1);
     2226                thread_usleep(1);
    22262227                eerd = E1000_REG_READ(e1000, E1000_EERD);
    22272228        }
Note: See TracChangeset for help on using the changeset viewer.