|
| enum | SceUdcdStatus {
SCE_UDCD_STATUS_CONNECTION_NEW = 0x0001
, SCE_UDCD_STATUS_CONNECTION_ESTABLISHED = 0x0002
, SCE_UDCD_STATUS_CONNECTION_SUSPENDED = 0x0004
, SCE_UDCD_STATUS_CABLE_DISCONNECTED = 0x0010
,
SCE_UDCD_STATUS_CABLE_CONNECTED = 0x0020
, SCE_UDCD_STATUS_DEACTIVATED = 0x0100
, SCE_UDCD_STATUS_ACTIVATED = 0x0200
, SCE_UDCD_STATUS_IS_CHARGING = 0x0400
,
SCE_UDCD_STATUS_USE_USB_CHARGING = 0x0800
, SCE_UDCD_STATUS_UNKNOWN_1000 = 0x1000
, SCE_UDCD_STATUS_UNKNOWN_2000 = 0x2000
} |
| |
| enum | SceUdcdStatusDriver { SCE_UDCD_STATUS_DRIVER_STARTED = 0x01
, SCE_UDCD_STATUS_DRIVER_REGISTERED = 0x02
} |
| |
| enum | SceUdcdUsbClass {
USB_CLASS_PER_INTERFACE = 0x00
, USB_CLASS_AUDIO = 0x01
, USB_CLASS_COMM = 0x02
, USB_CLASS_HID = 0x03
,
USB_CLASS_PTP = 0x06
, USB_CLASS_PRINTER = 0x07
, USB_CLASS_MASS_STORAGE = 0x08
, USB_CLASS_HUB = 0x09
,
USB_CLASS_DATA = 0x0A
, USB_CLASS_VIDEO = 0x0E
, USB_CLASS_VENDOR_SPEC = 0xFF
} |
| | Enumeration for Device and/or Interface Class codes. More...
|
| |
| enum | SceUdcdUsbDt {
USB_DT_DEVICE = 0x01
, USB_DT_CONFIG = 0x02
, USB_DT_STRING = 0x03
, USB_DT_INTERFACE = 0x04
,
USB_DT_ENDPOINT = 0x05
} |
| | Enumeration for descriptor types. More...
|
| |
| enum | SceUdcdUsbReq {
USB_REQ_GET_STATUS = 0x00
, USB_REQ_CLEAR_FEATURE = 0x01
, USB_REQ_SET_FEATURE = 0x03
, USB_REQ_SET_ADDRESS = 0x05
,
USB_REQ_GET_DESCRIPTOR = 0x06
, USB_REQ_SET_DESCRIPTOR = 0x07
, USB_REQ_GET_CONFIG = 0x08
, USB_REQ_SET_CONFIG = 0x09
,
USB_REQ_GET_INTERFACE = 0x0A
, USB_REQ_SET_INTERFACE = 0x0B
, USB_REQ_SYNC_FRAME = 0x0C
} |
| | Enumeration for standard requests. More...
|
| |
| enum | SceUdcdHidRequest {
HID_REQUEST_GET_REPORT = 0x01
, HID_REQUEST_GET_IDLE = 0x02
, HID_REQUEST_GET_PROTOCOL = 0x03
, HID_REQUEST_SET_REPORT = 0x09
,
HID_REQUEST_SET_IDLE = 0x0A
, HID_REQUEST_SET_PROTOCOL = 0x0B
} |
| | Class-Specific Requests. More...
|
| |
| enum | SceUdcdHidDescriptor { HID_DESCRIPTOR_HID = 0x21
, HID_DESCRIPTOR_REPORT = 0x22
, HID_DESRIPTOR_PHY = 0x23
} |
| | Class Descriptor Types. More...
|
| |
| enum | SceUdcdProtocol { BOOT_PROTOCOL = 0x00
, RPT_PROTOCOL = 0x01
} |
| | Protocol Selection. More...
|
| |
| enum | SceUdcdHidProtocol { HID_PROTOCOL_NONE = 0x00
, HID_PROTOCOL_KEYBOARD = 0x01
, HID_PROTOCOL_MOUSE = 0x02
} |
| | HID Interface Class Protocol Codes. More...
|
| |
| enum | SceUdcdRetcode {
SCE_UDCD_RETCODE_CANCEL = -1
, SCE_UDCD_RETCODE_CANCEL_ALL = -2
, SCE_UDCD_RETCODE_CANCEL_TRANSMISSION = -3
, SCE_UDCD_RETCODE_SUCCESS = 0
,
SCE_UDCD_RETCODE_SEND = 1
, SCE_UDCD_RETCODE_RECV = 2
} |
| |
| enum | SceUdcdErrorCode {
SCE_UDCD_ERROR_ILLEGAL_CONTEXT = 0x80000030
, SCE_UDCD_ERROR_INVALID_POINTER = 0x80000103
, SCE_UDCD_ERROR_INVALID_FLAG = 0x80000105
, SCE_UDCD_ERROR_INVALID_VALUE = 0x800001FE
,
SCE_UDCD_ERROR_ALREADY_DONE = 0x80243001
, SCE_UDCD_ERROR_INVALID_ARGUMENT = 0x80243002
, SCE_UDCD_ERROR_ARGUMENT_EXCEEDED_LIMIT = 0x80243003
, SCE_UDCD_ERROR_MEMORY_EXHAUSTED = 0x80243004
,
SCE_UDCD_ERROR_DRIVER_NOT_FOUND = 0x80243005
, SCE_UDCD_ERROR_DRIVER_IN_PROGRESS = 0x80243006
, SCE_UDCD_ERROR_BUS_DRIVER_NOT_STARTED = 0x80243007
, SCE_UDCD_ERROR_WAIT_TIMEOUT = 0x80243008
,
SCE_UDCD_ERROR_WAIT_CANCEL = 0x80243009
, SCE_UDCD_ERROR_USBDRIVER_INVALID_DRIVER = 0x80243200
, SCE_UDCD_ERROR_USBDRIVER_INVALID_NAME = 0x80243201
, SCE_UDCD_ERROR_USBDRIVER_INVALID_FUNCS = 0x80243202
} |
| | Error codes. More...
|
| |
| enum | SceUdcdDeviceRequestAttr { SCE_UDCD_DEVICE_REQUEST_ATTR_PHYCONT = 0x00000001
} |
| | SceUdcdDeviceRequest Flags. More...
|
| |
|
| | VITASDK_BUILD_ASSERT_EQ (0x40, SceUdcdDeviceInfo) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0x18, SceUdcdWaitParam) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0x40, SceUdcdStringDescriptor) |
| |
| struct | SCE_ALIGN (4) SceUdcdDeviceDescriptor |
| | USB device descriptor.
|
| |
| | VITASDK_BUILD_ASSERT_EQ (0x14, SceUdcdDeviceDescriptor) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0xC, SceUdcdDeviceQualifierDescriptor) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0x18, SceUdcdConfigDescriptor) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0xC, SceUdcdInterfaceSettings) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0x18, SceUdcdInterfaceDescriptor) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0x10, SceUdcdEndpointDescriptor) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0xC, SceUdcdInterface) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0x10, SceUdcdEndpoint) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0x10, SceUdcdConfiguration) |
| |
| | VITASDK_BUILD_ASSERT_EQ (8, SceUdcdEP0DeviceRequest) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0x54, SceUdcdDriver) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0x2C, SceUdcdDeviceRequest) |
| |
| struct | SCE_ALIGN (16) SceUdcdDriverName |
| | USB driver name.
|
| |
| | VITASDK_BUILD_ASSERT_EQ (((0x28+(0x10 - 1)) &~(0x10 - 1)), SceUdcdDriverName) |
| |
| int | ksceUdcdWaitBusInitialized (unsigned int timeout, int bus) |
| | Waits until an UDCD bus is initialized.
|
| |
| int | ksceUdcdStart (const char *driverName, int size, void *args) |
| | Start a USB driver.
|
| |
| int | ksceUdcdStartInternal (const char *driverName, int size, void *args, int bus) |
| | Start a USB driver for an UDCD bus.
|
| |
| int | ksceUdcdStartCurrentInternal (int unused, int bus) |
| | Starts the current USB driver for an UDCD bus.
|
| |
| int | ksceUdcdStop (const char *driverName, int size, void *args) |
| | Stop a USB driver.
|
| |
| int | ksceUdcdStopInternal (const char *driverName, int size, void *args, int bus) |
| | Stop a USB driver for an UDCD bus.
|
| |
| int | ksceUdcdStopCurrentInternal (int bus) |
| | Stops the current USB driver for an UDCD bus.
|
| |
| int | ksceUdcdActivate (unsigned int productId) |
| | Activate a USB driver.
|
| |
| int | ksceUdcdActivateInternal (unsigned int productId, unsigned int bus_powered, int bus) |
| | Activate a USB driver for an UDCD bus.
|
| |
| int | ksceUdcdDeactivate (void) |
| | Deactivate USB driver.
|
| |
| int | ksceUdcdDeactivateInternal (int bus) |
| | Deactivate USB driver for an UDCD bus.
|
| |
| int | ksceUdcdGetDeviceState (void) |
| | Get USB state.
|
| |
| int | ksceUdcdGetDeviceStateInternal (int bus) |
| | Get USB state for an UDCD bus.
|
| |
| int | ksceUdcdGetDeviceInfo (SceUdcdDeviceInfo *devInfo) |
| | Get device information.
|
| |
| int | ksceUdcdGetDeviceInfoInternal (SceUdcdDeviceInfo *devInfo, int bus) |
| | Get device information for an UDCD bus.
|
| |
| int | ksceUdcdGetDrvState (const char *driverName) |
| | Get state of a specific USB driver.
|
| |
| int | ksceUdcdGetDrvStateInternal (const char *driverName, int bus) |
| | Get state of a specific USB driver for an UDCD bus.
|
| |
| int | ksceUdcdWaitState (SceUdcdWaitParam *waitParam, unsigned int timeout) |
| | Wait for state.
|
| |
| int | ksceUdcdWaitStateInternal (SceUdcdWaitParam *waitParam, unsigned int timeout, int bus) |
| | Wait for state for an UDCD bus.
|
| |
| int | ksceUdcdRegister (SceUdcdDriver *drv) |
| | Register a USB driver.
|
| |
| int | ksceUdcdRegisterInternal (SceUdcdDriver *drv, int bus) |
| | Register a USB driver to a specific USB bus.
|
| |
| int | ksceUdcdUnregister (SceUdcdDriver *drv) |
| | Unregister a USB driver.
|
| |
| int | ksceUdcdUnregisterInternal (SceUdcdDriver *drv, int bus) |
| | Unregister a USB driver for an UDCD bus.
|
| |
| int | ksceUdcdClearFIFO (SceUdcdEndpoint *endp) |
| | Clear the FIFO on an endpoint.
|
| |
| int | ksceUdcdClearFIFOInternal (SceUdcdEndpoint *endp, int bus) |
| | Clear the FIFO on an endpoint for an UDCD bus.
|
| |
| int | ksceUdcdReqCancelAll (SceUdcdEndpoint *endp) |
| | Cancel any pending requests on an endpoint.
|
| |
| int | ksceUdcdStall (SceUdcdEndpoint *endp) |
| | Stall an endpoint.
|
| |
| int | ksceUdcdStallInternal (SceUdcdEndpoint *endp, int bus) |
| | Stall an endpoint for an UDCD bus.
|
| |
| int | ksceUdcdReqSend (SceUdcdDeviceRequest *req) |
| | Queue a send request (IN from host pov)
|
| |
| int | ksceUdcdReqSendInternal (SceUdcdDeviceRequest *req, int bus) |
| | Queue a send request (IN from host pov) for an UDCD bus.
|
| |
| int | ksceUdcdReqRecv (SceUdcdDeviceRequest *req) |
| | Queue a receive request (OUT from host pov)
|
| |
| int | ksceUdcdReqRecvInternal (SceUdcdDeviceRequest *req, int bus) |
| | Queue a receive request (OUT from host pov) for an UDCD bus.
|
| |
|
| unsigned char | SceUdcdDeviceInfo::info [64] |
| |
| int | SceUdcdWaitParam::unk_00 |
| |
| int | SceUdcdWaitParam::status |
| |
| int | SceUdcdWaitParam::unk_08 |
| |
| int | SceUdcdWaitParam::unk_0C |
| |
| int | SceUdcdWaitParam::unk_10 |
| |
| const char * | SceUdcdWaitParam::driverName |
| |
| unsigned char | SceUdcdStringDescriptor::bLength |
| |
| unsigned char | SceUdcdStringDescriptor::bDescriptorType |
| |
| short | SceUdcdStringDescriptor::bString [31] |
| |
| | SceUdcdDeviceDescriptor |
| |
| | SceUdcdDeviceQualifierDescriptor |
| |
| unsigned char | SceUdcdConfigDescriptor::bLength |
| |
| unsigned char | SceUdcdConfigDescriptor::bDescriptorType |
| |
| unsigned short | SceUdcdConfigDescriptor::wTotalLength |
| |
| unsigned char | SceUdcdConfigDescriptor::bNumInterfaces |
| |
| unsigned char | SceUdcdConfigDescriptor::bConfigurationValue |
| |
| unsigned char | SceUdcdConfigDescriptor::iConfiguration |
| |
| unsigned char | SceUdcdConfigDescriptor::bmAttributes |
| |
| unsigned char | SceUdcdConfigDescriptor::bMaxPower |
| |
| struct SceUdcdInterfaceSettings * | SceUdcdConfigDescriptor::settings |
| |
| unsigned char * | SceUdcdConfigDescriptor::extra |
| | Extra descriptors.
|
| |
| int | SceUdcdConfigDescriptor::extraLength |
| |
| struct SceUdcdInterfaceDescriptor * | SceUdcdInterfaceSettings::descriptors |
| | Pointers to the individual interface descriptors.
|
| |
| unsigned int | SceUdcdInterfaceSettings::alternateSetting |
| |
| unsigned int | SceUdcdInterfaceSettings::numDescriptors |
| | Number of interface descriptors.
|
| |
| unsigned char | SceUdcdInterfaceDescriptor::bLength |
| |
| unsigned char | SceUdcdInterfaceDescriptor::bDescriptorType |
| |
| unsigned char | SceUdcdInterfaceDescriptor::bInterfaceNumber |
| |
| unsigned char | SceUdcdInterfaceDescriptor::bAlternateSetting |
| |
| unsigned char | SceUdcdInterfaceDescriptor::bNumEndpoints |
| |
| unsigned char | SceUdcdInterfaceDescriptor::bInterfaceClass |
| |
| unsigned char | SceUdcdInterfaceDescriptor::bInterfaceSubClass |
| |
| unsigned char | SceUdcdInterfaceDescriptor::bInterfaceProtocol |
| |
| unsigned char | SceUdcdInterfaceDescriptor::iInterface |
| |
| struct SceUdcdEndpointDescriptor * | SceUdcdInterfaceDescriptor::endpoints |
| |
| unsigned char * | SceUdcdInterfaceDescriptor::extra |
| | Extra descriptors.
|
| |
| int | SceUdcdInterfaceDescriptor::extraLength |
| |
| unsigned char | SceUdcdEndpointDescriptor::bLength |
| |
| unsigned char | SceUdcdEndpointDescriptor::bDescriptorType |
| |
| unsigned char | SceUdcdEndpointDescriptor::bEndpointAddress |
| |
| unsigned char | SceUdcdEndpointDescriptor::bmAttributes |
| |
| unsigned short | SceUdcdEndpointDescriptor::wMaxPacketSize |
| |
| unsigned char | SceUdcdEndpointDescriptor::bInterval |
| |
| unsigned char * | SceUdcdEndpointDescriptor::extra |
| | Extra descriptors.
|
| |
| int | SceUdcdEndpointDescriptor::extraLength |
| |
| int | SceUdcdInterface::expectNumber |
| | Expectant interface number (interface number or -1)
|
| |
| int | SceUdcdInterface::interfaceNumber |
| | End interface.
|
| |
| int | SceUdcdInterface::numInterfaces |
| | Number of interfaces.
|
| |
| int | SceUdcdEndpoint::direction |
| | USB_ENDPOINT_IN / USB_ENDPOINT_OUT.
|
| |
| int | SceUdcdEndpoint::driverEndpointNumber |
| | Driver Endpoint number (must be filled in sequentially)
|
| |
| int | SceUdcdEndpoint::endpointNumber |
| | Endpoint number (Filled in by the bus driver)
|
| |
| int | SceUdcdEndpoint::transmittedBytes |
| | Number of transmitted bytes.
|
| |
| SceUdcdConfigDescriptor * | SceUdcdConfiguration::configDescriptors |
| | Pointer to the configuration descriptors.
|
| |
| SceUdcdInterfaceSettings * | SceUdcdConfiguration::settings |
| | USB driver interface settings.
|
| |
| SceUdcdInterfaceDescriptor * | SceUdcdConfiguration::interfaceDescriptors |
| | Pointer to the first interface descriptor.
|
| |
| SceUdcdEndpointDescriptor * | SceUdcdConfiguration::endpointDescriptors |
| | Pointer to the first endpoint descriptor.
|
| |
| unsigned char | SceUdcdEP0DeviceRequest::bmRequestType |
| |
| unsigned char | SceUdcdEP0DeviceRequest::bRequest |
| |
| unsigned short | SceUdcdEP0DeviceRequest::wValue |
| |
| unsigned short | SceUdcdEP0DeviceRequest::wIndex |
| |
| unsigned short | SceUdcdEP0DeviceRequest::wLength |
| |
| const char * | SceUdcdDriver::driverName |
| | Name of the USB driver.
|
| |
| int | SceUdcdDriver::numEndpoints |
| | Number of endpoints in this driver (including default control)
|
| |
| SceUdcdEndpoint * | SceUdcdDriver::endpoints |
| | List of endpoint structures (used when calling other functions)
|
| |
| SceUdcdInterface * | SceUdcdDriver::interface |
| | Interface list.
|
| |
| SceUdcdDeviceDescriptor * | SceUdcdDriver::descriptor_hi |
| | Pointer to hi-speed device descriptor.
|
| |
| SceUdcdConfiguration * | SceUdcdDriver::configuration_hi |
| | Pointer to hi-speed device configuration.
|
| |
| SceUdcdDeviceDescriptor * | SceUdcdDriver::descriptor |
| | Pointer to full-speed device descriptor.
|
| |
| SceUdcdConfiguration * | SceUdcdDriver::configuration |
| | Pointer to full-speed device configuration.
|
| |
| SceUdcdStringDescriptor * | SceUdcdDriver::stringDescriptors |
| | Default string descriptors.
|
| |
| SceUdcdStringDescriptor * | SceUdcdDriver::stringDescriptorProduct |
| | Product string descriptor (iProduct has to be 2)
|
| |
| SceUdcdStringDescriptor * | SceUdcdDriver::stringDescriptorSerial |
| | Serial string descriptor (iSerial has to be 3)
|
| |
| int(* | SceUdcdDriver::processRequest )(int recipient, int arg, SceUdcdEP0DeviceRequest *req, void *user_data) |
| | Received a control request.
|
| |
| int(* | SceUdcdDriver::changeSetting )(int interfaceNumber, int alternateSetting, int bus) |
| | Change alternate setting.
|
| |
| int(* | SceUdcdDriver::attach )(int usb_version, void *user_data) |
| | Configuration set (attach) function.
|
| |
| void(* | SceUdcdDriver::detach )(void *user_data) |
| | Configuration unset (detach) function.
|
| |
| void(* | SceUdcdDriver::configure )(int usb_version, int desc_count, SceUdcdInterfaceSettings *settings, void *user_data) |
| | Configure the device.
|
| |
| int(* | SceUdcdDriver::start )(int size, void *args, void *user_data) |
| | Function called when the driver is started.
|
| |
| int(* | SceUdcdDriver::stop )(int size, void *args, void *user_data) |
| | Function called when the driver is stopped.
|
| |
| void * | SceUdcdDriver::user_data |
| | User data.
|
| |
| int | SceUdcdDriver::bus |
| | USB bus.
|
| |
| struct SceUdcdDriver * | SceUdcdDriver::link |
| | Link to next USB driver in the chain, set to NULL.
|
| |
| SceUdcdEndpoint * | SceUdcdDeviceRequest::endpoint |
| | Pointer to the endpoint to queue request on.
|
| |
| void * | SceUdcdDeviceRequest::data |
| | Pointer to the data buffer to use in the request.
|
| |
| unsigned int | SceUdcdDeviceRequest::attributes |
| | Request attributes (See SceUdcdDeviceRequestAttr)
|
| |
| int | SceUdcdDeviceRequest::size |
| | Size of the data buffer.
|
| |
| int | SceUdcdDeviceRequest::isControlRequest |
| | Is a control request?
|
| |
| void(* | SceUdcdDeviceRequest::onComplete )(struct SceUdcdDeviceRequest *req) |
| | Pointer to the function to call on completion.
|
| |
| int | SceUdcdDeviceRequest::transmitted |
| | Number of transmitted bytes.
|
| |
| int | SceUdcdDeviceRequest::returnCode |
| | Return code of the request (See SceUdcdRetcode)
|
| |
| struct SceUdcdDeviceRequest * | SceUdcdDeviceRequest::next |
| | Link pointer to next request used by the driver, set it to NULL.
|
| |
| void * | SceUdcdDeviceRequest::unused |
| | An unused value (maybe an argument)
|
| |
| void * | SceUdcdDeviceRequest::physicalAddress |
| | Physical address.
|
| |
| | SceUdcdDriverName |
| |
Exports for Kernel.