Changeset de0e6b3 in mainline for uspace/drv/uhci/utils/malloc32.h
- Timestamp:
- 2011-01-28T12:43:07Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d93ff502
- Parents:
- 45c4f5a
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/utils/malloc32.h
r45c4f5a rde0e6b3 35 35 #define DRV_UHCI_TRANSLATOR_H 36 36 37 #include < malloc.h>37 #include <usb/usbmem.h> 38 38 39 static inline void * addr_to_phys( void *addr)40 { return addr; }39 static inline void * addr_to_phys(void *addr) 40 { return mman_getPA(addr); } 41 41 42 static inline void * addr_to_virt( void *addr ) 43 { return addr; } 42 static inline void * malloc32(size_t size) 43 /* TODO: tis is ugly */ 44 { return mman_malloc(size, 128, 0xffffffff); } 44 45 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 ); } 46 static inline void free32(void * addr) 47 { mman_free(addr); } 50 48 51 49 #endif
Note:
See TracChangeset
for help on using the changeset viewer.