Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/utils/malloc32.h

    r76fbd9a rfaba839  
    3636
    3737#include <assert.h>
     38#include <unistd.h>
    3839#include <errno.h>
    3940#include <malloc.h>
     
    6263        return result;
    6364}
    64 
     65/*----------------------------------------------------------------------------*/
    6566/** DMA malloc simulator
    6667 *
     
    8485        return memalign(alignment, size);
    8586}
    86 
     87/*----------------------------------------------------------------------------*/
    8788/** DMA malloc simulator
    8889 *
     
    9192static inline void free32(void *addr)
    9293        { free(addr); }
    93 
     94/*----------------------------------------------------------------------------*/
    9495/** Create 4KB page mapping
    9596 *
     
    9899static inline void * get_page(void)
    99100{
    100         void *address = as_area_create((void *) -1, UHCI_REQUIRED_PAGE_SIZE,
     101        void *address = as_area_create(AS_AREA_ANY, UHCI_REQUIRED_PAGE_SIZE,
    101102            AS_AREA_READ | AS_AREA_WRITE);
    102         if (address == (void *) -1)
     103        if (address == AS_MAP_FAILED)
    103104                return NULL;
    104105       
    105106        return address;
    106107}
    107 
     108/*----------------------------------------------------------------------------*/
    108109static inline void return_page(void *page)
    109110{
Note: See TracChangeset for help on using the changeset viewer.