45#define USB_DESCRIPTOR_DEVICE 0x01
46#define USB_DESCRIPTOR_CONFIGURATION 0x02
47#define USB_DESCRIPTOR_STRING 0x03
48#define USB_DESCRIPTOR_INTERFACE 0x04
49#define USB_DESCRIPTOR_ENDPOINT 0x05
51#define USB_DESCRIPTOR_DEVICE_QUALIFIER 0x06
52#define USB_DESCRIPTOR_OTHER_SPEED 0x07
53#define USB_DESCRIPTOR_INTERFACE_POWER 0x08
54#define USB_DESCRIPTOR_OTG 0x09
125#define SCE_USBD_DEVICE_SPEED_LS (0)
126#define SCE_USBD_DEVICE_SPEED_FS (1)
127#define SCE_USBD_DEVICE_SPEED_HS (2)
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
SceSize size
struct size(variable size)
Definition debug.h:0
unsigned int SceSize
Definition types.h:56
uint32_t SceUInt
Definition types.h:48
int SceUID
UIDs are used to describe many different kernel objects.
Definition types.h:90
unsigned int unk1
Definition usbd.h:36
unsigned int unk2
Definition usbd.h:290
uint32_t unk0
Definition usbd.h:202
uint32_t unk1
Definition usbd.h:203
int sceUsbdInit(SceUID *uid)
Init usb subsystem.
int sceUsbdIsochTransferData(SceUID uid, SceUID pipe_id, SceUsbdIsochTransfer *transfer)
Transfer data to/from endpoint isochronously.
int sceUsbdGetDescriptor(SceUID uid, SceUID device_id, unsigned char *descriptor, SceSize size)
Get usb device descriptors (all)
int sceUsbdGetIsochTransferStatus(SceUID transfer_id, SceUsbdIsochTransferStatus *status)
Get isochronous transfer status.
unsigned int unk6
Definition usbd.h:295
uintptr_t * unk2
Definition usbd.h:204
unsigned int unk3
Definition usbd.h:38
uint32_t device
Definition usbd.h:362
SceUID sceUsbdOpenDefaultPipe(SceUID uid, SceUID device_id)
Open endpoint communication pipe for default config endpoint.
uint32_t driver_id
Definition usbd.h:360
int sceUsbdEnd(SceUID uid)
Stop usb subsystem.
unsigned int unk3
Definition usbd.h:291
unsigned int unk5
Definition usbd.h:40
unsigned int unk7
Definition usbd.h:296
SceUID sceUsbdOpenPipe(SceUID uid, SceUsbdDevicePipe *pipe)
Open endpoint communication pipe.
unsigned int pipe
Definition usbd.h:26
unsigned int unk9
Definition usbd.h:299
int sceUsbdAttachCompositeLdd(SceUID uid, SceUsbdAttachCompositeParam *param)
Attach composite driver to device.
SceUID sceUsbdRegisterLdd(SceUID uid, char *name)
Register logical device driver.
unsigned int timeout
Definition usbd.h:30
int sceUsbdGetDeviceAddress(SceUID uid, SceUID device_id, SceUsbdDeviceAddress *addr)
Get device address.
uint32_t unk0
Definition usbd.h:194
uint32_t unk3
Definition usbd.h:197
int sceUsbdUnregisterLdd(SceUID uid, char *name)
De-register logical device driver.
unsigned int unk0
Definition usbd.h:35
unsigned int port
Definition usbd.h:19
unsigned int unk3
Definition usbd.h:237
int sceUsbdUnregisterCallback(SceUID cbid)
Remove callback to usb event.
uint32_t unk4
Definition usbd.h:364
int sceUsbdGetDescriptorSize(SceUID uid, unsigned int device_id)
Get usb device descriptors data size.
void * transferred
Definition usbd.h:29
uint32_t bus
Definition usbd.h:361
int sceUsbdGetDeviceSpeed(SceUID uid, SceUID device_id, unsigned int *speed)
Get usb device speed.
unsigned int unk5
Definition usbd.h:294
unsigned int unk4
Definition usbd.h:293
int sceUsbdResetDevice(SceUID uid, SceUID device_id)
Reset usb device.
unsigned int unk4
Definition usbd.h:238
unsigned int data_size
Definition usbd.h:28
unsigned int unk3
Definition usbd.h:21
int sceUsbdReceiveEvent(SceUID uid, SceUsbdReceiveEvent *event)
Receive usb event.
int sceUsbdRegisterCallback(SceUID cbid, int flag)
Register callback to usb event.
int sceUsbdGetTransferStatus(SceUID transfer_id, SceUsbdTransferStatus *status)
Get transfer status.
unsigned int unk5
Definition usbd.h:239
unsigned int transfer_id
Definition usbd.h:41
unsigned int unk0
Definition usbd.h:288
unsigned int device_id
Definition usbd.h:234
int sceUsbdAttach(SceUID uid, SceUID driver_id, SceUInt bus, SceUInt device)
Attach specified driver to device.
int sceUsbdClosePipe(SceUID uid, SceUID pipe_id)
Close endpoint communication pipe.
uint32_t unk3
Definition usbd.h:363
unsigned int unk4
Definition usbd.h:39
SceUID sceUsbdRegisterCompositeLdd(SceUID uid, char *name)
Register logical device driver for composite devices.
unsigned int unk2
Definition usbd.h:37
uint32_t unk3
Definition usbd.h:205
unsigned int unk8
Definition usbd.h:298
uint32_t unk1
Definition usbd.h:195
int sceUsbdGetDeviceList(SceUID uid, SceSize num, SceUsbdDeviceInfo *info)
Get usb devices list.
unsigned int unk2
Definition usbd.h:236
const void * data
Definition usbd.h:27
unsigned int device_num
Definition usbd.h:20
SceUID sceUsbdTransferData(SceUID uid, SceUsbdTransferData *data)
Transfer data to/from endpoint.
uint32_t unk2
Definition usbd.h:196
unsigned int unk1
Definition usbd.h:289
unsigned int unk1
Definition usbd.h:235