LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
Functions
usb_os.c File Reference
#include <stdlib.h>
#include <string.h>
#include <time/time.h>
#include <ppc/cache.h>
#include "ehci_types.h"
#include "ehci.h"
#include "usb.h"
Include dependency graph for usb_os.c:

Go to the source code of this file.

Functions

void * ehci_maligned (int size, int alignement, int crossing)
 
dma_addr_t ehci_virt_to_dma (void *a)
 
dma_addr_t ehci_dma_map_to (void *buf, size_t len)
 
dma_addr_t ehci_dma_map_from (void *buf, size_t len)
 
dma_addr_t ehci_dma_map_bidir (void *buf, size_t len)
 
void ehci_dma_unmap_to (dma_addr_t buf, size_t len)
 
void ehci_dma_unmap_from (dma_addr_t buf, size_t len)
 
void ehci_dma_unmap_bidir (dma_addr_t buf, size_t len)
 
void ehci_usleep (int time)
 
void ehci_msleep (int time)
 
void * USB_Alloc (int size)
 
void USB_Free (void *ptr)
 

Function Documentation

◆ ehci_dma_map_bidir()

dma_addr_t ehci_dma_map_bidir ( void *  buf,
size_t  len 
)

Definition at line 84 of file usb_os.c.

◆ ehci_dma_map_from()

dma_addr_t ehci_dma_map_from ( void *  buf,
size_t  len 
)

Definition at line 78 of file usb_os.c.

◆ ehci_dma_map_to()

dma_addr_t ehci_dma_map_to ( void *  buf,
size_t  len 
)

Definition at line 72 of file usb_os.c.

◆ ehci_dma_unmap_bidir()

void ehci_dma_unmap_bidir ( dma_addr_t  buf,
size_t  len 
)

Definition at line 100 of file usb_os.c.

◆ ehci_dma_unmap_from()

void ehci_dma_unmap_from ( dma_addr_t  buf,
size_t  len 
)

Definition at line 95 of file usb_os.c.

◆ ehci_dma_unmap_to()

void ehci_dma_unmap_to ( dma_addr_t  buf,
size_t  len 
)

Definition at line 90 of file usb_os.c.

◆ ehci_maligned()

void * ehci_maligned ( int  size,
int  alignement,
int  crossing 
)

Definition at line 41 of file usb_os.c.

◆ ehci_msleep()

void ehci_msleep ( int  time)

Definition at line 110 of file usb_os.c.

◆ ehci_usleep()

void ehci_usleep ( int  time)

Definition at line 105 of file usb_os.c.

◆ ehci_virt_to_dma()

dma_addr_t ehci_virt_to_dma ( void *  a)

Definition at line 67 of file usb_os.c.

◆ USB_Alloc()

void * USB_Alloc ( int  size)

Definition at line 116 of file usb_os.c.

◆ USB_Free()

void USB_Free ( void *  ptr)

Definition at line 121 of file usb_os.c.