37static u8 *aligned_mem = 0;
38static u8 *aligned_base = 0;
44 aligned_base = (
u8 *)(((
u32)heapspace + 4095) & ~4095);
45 aligned_mem = aligned_base;
48 u32 addr = (
u32)aligned_mem;
56 if (((addr +
size - 1) & ~(crossing - 1)) != (addr & ~(crossing - 1)))
57 addr = (addr +
size - 1) & ~(crossing - 1);
59 aligned_mem = (
void *)(addr +
size);
62 memset((
void *)addr, 0,
size);
92 memdcbf((
void *)(buf|0x80000000), len);
97 memdcbf((
void *)(buf|0x80000000), len);
102 memdcbf((
void *)(buf|0x80000000), len);
void memdcbf(void *addr, int len)
void memdcbst(void *addr, int len)
unsigned int __mf_uintptr_t __attribute__((__mode__(__pointer__)))
dma_addr_t ehci_dma_map_bidir(void *buf, size_t len)
dma_addr_t ehci_dma_map_to(void *buf, size_t len)
void ehci_dma_unmap_bidir(dma_addr_t buf, size_t len)
void * USB_Alloc(int size)
dma_addr_t ehci_dma_map_from(void *buf, size_t len)
void * ehci_maligned(int size, int alignement, int crossing)
void ehci_msleep(int time)
void ehci_usleep(int time)
void ehci_dma_unmap_from(dma_addr_t buf, size_t len)
dma_addr_t ehci_virt_to_dma(void *a)
void ehci_dma_unmap_to(dma_addr_t buf, size_t len)
uint8_t u8
8bit unsigned integer
uint32_t u32
32bit unsigned integer