LibXenon
Bare-metal Xbox 360 homebrew library
|
Go to the source code of this file.
Data Structures | |
struct | _usbctrlrequest |
struct | _usbendpointdesc |
struct | _usbinterfacedesc |
struct | _usbconfdesc |
struct | _usbdevdesc |
Typedefs | |
typedef struct _usbctrlrequest | usbctrlrequest |
typedef struct _usbendpointdesc | usb_endpointdesc |
typedef struct _usbinterfacedesc | usb_interfacedesc |
typedef struct _usbconfdesc | usb_configurationdesc |
typedef struct _usbdevdesc | usb_devdesc |
Functions | |
s32 | USB_OpenDevice (const char *device, u16 vid, u16 pid, struct ehci_device **fd) |
s32 | USB_CloseDevice (struct ehci_device **fd) |
s32 | USB_GetDescriptors (struct ehci_hcd *ehci, struct ehci_device *fd, usb_devdesc *udd) |
void | USB_FreeDescriptors (usb_devdesc *udd) |
s32 | USB_GetDeviceDescription (struct ehci_device *fd, usb_devdesc *devdesc) |
void | USB_SuspendDevice (struct ehci_device *fd) |
void | USB_ResumeDevice (struct ehci_device *fd) |
s32 | USB_ReadIntrMsg (struct ehci_device *fd, u8 bEndpoint, u16 wLength, void *rpData) |
s32 | USB_ReadBlkMsg (struct ehci_device *fd, u8 bEndpoint, u16 wLength, void *rpData) |
s32 | USB_ReadCtrlMsg (struct ehci_device *fd, u8 bmRequestType, u8 bmRequest, u16 wValue, u16 wIndex, u16 wLength, void *rpData) |
s32 | USB_WriteIntrMsg (struct ehci_device *fd, u8 bEndpoint, u16 wLength, void *rpData) |
s32 | USB_WriteBlkMsg (struct ehci_hcd *ehci, struct ehci_device *fd, u8 bEndpoint, u16 wLength, void *rpData) |
s32 | USB_WriteCtrlMsg (struct ehci_hcd *ehci, struct ehci_device *fd, u8 bmRequestType, u8 bmRequest, u16 wValue, u16 wIndex, u16 wLength, void *rpData) |
s32 | USB_GetConfiguration (struct ehci_hcd *ehci, struct ehci_device *fd, u8 *configuration) |
s32 | USB_SetConfiguration (struct ehci_hcd *ehci, struct ehci_device *fd, u8 configuration) |
s32 | USB_SetAlternativeInterface (struct ehci_hcd *ehci, struct ehci_device *fd, u8 interface, u8 alternateSetting) |
s32 | USB_ClearHalt (struct ehci_hcd *ehci, struct ehci_device *fd, u8 endpointAddress) |
s32 | USB_GetDeviceList (const char *devpath, void *descr_buffer, u8 num_descr, u8 b0, u8 *cnt_descr) |
void * | USB_Alloc (int size) |
void | USB_Free (void *ptr) |
#define ATTRIBUTE_PACKED __attribute__((packed)) |
typedef struct _usbconfdesc usb_configurationdesc |
typedef struct _usbdevdesc usb_devdesc |
typedef struct _usbendpointdesc usb_endpointdesc |
typedef struct _usbinterfacedesc usb_interfacedesc |
typedef struct _usbctrlrequest usbctrlrequest |
s32 USB_ClearHalt | ( | struct ehci_hcd * | ehci, |
struct ehci_device * | fd, | ||
u8 | endpointAddress | ||
) |
s32 USB_CloseDevice | ( | struct ehci_device ** | fd | ) |
void USB_FreeDescriptors | ( | usb_devdesc * | udd | ) |
s32 USB_GetConfiguration | ( | struct ehci_hcd * | ehci, |
struct ehci_device * | fd, | ||
u8 * | configuration | ||
) |
s32 USB_GetDescriptors | ( | struct ehci_hcd * | ehci, |
struct ehci_device * | fd, | ||
usb_devdesc * | udd | ||
) |
s32 USB_GetDeviceDescription | ( | struct ehci_device * | fd, |
usb_devdesc * | devdesc | ||
) |
s32 USB_GetDeviceList | ( | const char * | devpath, |
void * | descr_buffer, | ||
u8 | num_descr, | ||
u8 | b0, | ||
u8 * | cnt_descr | ||
) |
s32 USB_OpenDevice | ( | const char * | device, |
u16 | vid, | ||
u16 | pid, | ||
struct ehci_device ** | fd | ||
) |
s32 USB_ReadBlkMsg | ( | struct ehci_device * | fd, |
u8 | bEndpoint, | ||
u16 | wLength, | ||
void * | rpData | ||
) |
s32 USB_ReadCtrlMsg | ( | struct ehci_device * | fd, |
u8 | bmRequestType, | ||
u8 | bmRequest, | ||
u16 | wValue, | ||
u16 | wIndex, | ||
u16 | wLength, | ||
void * | rpData | ||
) |
s32 USB_ReadIntrMsg | ( | struct ehci_device * | fd, |
u8 | bEndpoint, | ||
u16 | wLength, | ||
void * | rpData | ||
) |
void USB_ResumeDevice | ( | struct ehci_device * | fd | ) |
s32 USB_SetAlternativeInterface | ( | struct ehci_hcd * | ehci, |
struct ehci_device * | fd, | ||
u8 | interface, | ||
u8 | alternateSetting | ||
) |
s32 USB_SetConfiguration | ( | struct ehci_hcd * | ehci, |
struct ehci_device * | fd, | ||
u8 | configuration | ||
) |
void USB_SuspendDevice | ( | struct ehci_device * | fd | ) |
s32 USB_WriteBlkMsg | ( | struct ehci_hcd * | ehci, |
struct ehci_device * | fd, | ||
u8 | bEndpoint, | ||
u16 | wLength, | ||
void * | rpData | ||
) |
s32 USB_WriteIntrMsg | ( | struct ehci_device * | fd, |
u8 | bEndpoint, | ||
u16 | wLength, | ||
void * | rpData | ||
) |