Changeset de0e6b3 in mainline for uspace/drv/uhci/utils/malloc32.h


Ignore:
Timestamp:
2011-01-28T12:43:07Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d93ff502
Parents:
45c4f5a
Message:

Used usbmem allocator

File:
1 moved

Legend:

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

    r45c4f5a rde0e6b3  
    3535#define DRV_UHCI_TRANSLATOR_H
    3636
    37 #include <malloc.h>
     37#include <usb/usbmem.h>
    3838
    39 static inline void * addr_to_phys( void *addr )
    40         { return addr; }
     39static inline void * addr_to_phys(void *addr)
     40        { return mman_getPA(addr); }
    4141
    42 static inline void * addr_to_virt( void *addr )
    43         { return addr; }
     42static inline void * malloc32(size_t size)
     43/* TODO: tis is ugly */
     44        { return mman_malloc(size, 128, 0xffffffff); }
    4445
    45 static inline void * trans_malloc( size_t size )
    46         { return malloc( size ); }
    47 
    48 static inline void trans_free( void * addr )
    49         { free( addr ); }
     46static inline void free32(void * addr)
     47        { mman_free(addr); }
    5048
    5149#endif
Note: See TracChangeset for help on using the changeset viewer.