wut
v1.7.0
Wii U Toolchain
|
Go to the source code of this file.
Data Structures | |
struct | UhsConfig |
struct | UhsHandle |
struct | UhsInterfaceFilter |
struct | UhsEndpointDescriptor |
struct | UhsInterfaceProfile |
Macros | |
#define | MATCH_ANY 0x000 |
#define | MATCH_DEV_VID 0x001 |
#define | MATCH_DEV_PID 0x002 |
#define | MATCH_DEV_CLASS 0x010 |
#define | MATCH_DEV_SUBCLASS 0x020 |
#define | MATCH_DEV_PROTOCOL 0x040 |
#define | MATCH_IF_CLASS 0x080 |
#define | MATCH_IF_SUBCLASS 0x100 |
#define | MATCH_IF_PROTOCOL 0x200 |
#define | UHS_CONFIG_BUFFER_SIZE 0x137f |
#define | ENDPOINT_TRANSFER_OUT 1 |
#define | ENDPOINT_TRANSFER_IN 2 |
#define | TIMEOUT_NONE -1 |
Typedefs | |
typedef struct UhsInterfaceFilter | UhsInterfaceFilter |
typedef struct UhsInterfaceProfile | UhsInterfaceProfile |
typedef struct UhsEndpointDescriptor | UhsEndpointDescriptor |
typedef struct UhsHandle | UhsHandle |
typedef struct UhsConfig | UhsConfig |
typedef enum UHSStatus | UHSStatus |
typedef enum UHSHandleState | UHSHandleState |
typedef enum UHSAdminDevType | UHSAdminDevType |
typedef enum UHSAdminEpType | UHSAdminEpType |
typedef void(* | UHSDrvRegCallback) (void *context, UhsInterfaceProfile *profile) |
typedef void(* | UhsAcquireInterfaceCallback) (void *context, int32_t arg1, int32_t arg2) |
Enumerations | |
enum | UHSStatus { UHS_STATUS_OK = 0 , UHS_STATUS_HANDLE_INVALID_ARGS = 0xffdefffd , UHS_STATUS_HANDLE_INVALID_STATE = 0xffdefffc } |
enum | UHSHandleState { UHS_HANDLE_STATE_INIT = 0x00 , UHS_HANDLE_STATE_OPENING = 0x01 , UHS_HANDLE_STATE_OPENED = 0x02 , UHS_HANDLE_STATE_CLOSING = 0x03 , UHS_HANDLE_STATE_CLOSED = 0x04 , UHS_HANDLE_STATE_ERROR = 0x05 } |
enum | UHSAdminDevType { UHS_ADMIN_DEV_RESET = 0x01 , UHS_ADMIN_DEV_FREEZE = 0x02 , UHS_ADMIN_DEV_SUSPEND = 0x03 , UHS_ADMIN_DEV_RESUME = 0x04 , UHS_ADMIN_DEV_DESTROY = 0x05 } |
enum | UHSAdminEpType { UHS_ADMIN_EP_ENABLE = 0x01 , UHS_ADMIN_EP_DISABLE = 0x02 , UHS_ADMIN_EP_CANCEL = 0x03 , UHS_ADMIN_EP_CANCEL_RESET = 0x04 } |
Functions | |
UHSStatus | UhsClientOpen (UhsHandle *handle, UhsConfig *config) |
UHSStatus | UhsClientClose (UhsHandle *handle) |
UHSStatus | UhsClassDrvReg (UhsHandle *handle, UhsInterfaceFilter *filter, void *context, UHSDrvRegCallback callback) |
UHSStatus | UhsClassDrvUnReg (UhsHandle *handle, uint32_t drv_handle) |
UHSStatus | UhsGetFullConfigDescriptor (UhsHandle *handle, uint32_t if_handle, void *data, uint32_t size) |
UHSStatus | UhsGetDescriptorString (UhsHandle *handle, uint32_t if_handle, uint8_t string_index, BOOL as_unicode, void *data, uint32_t size) |
UHSStatus | UhsQueryInterfaces (UhsHandle *handle, UhsInterfaceFilter *filter, UhsInterfaceProfile *profiles, int32_t max_profiles) |
UHSStatus | UhsAcquireInterface (UhsHandle *handle, uint32_t if_handle, void *context, UhsAcquireInterfaceCallback callback) |
UHSStatus | UhsReleaseInterface (UhsHandle *handle, uint32_t if_handle, bool no_reacquire) |
UHSStatus | UhsAdministerDevice (UhsHandle *handle, uint32_t if_handle, UHSAdminDevType type, int32_t arg3) |
UHSStatus | UhsAdministerEndpoint (UhsHandle *handle, uint32_t if_handle, UHSAdminEpType type, uint32_t endpointMask, uint32_t max_pending_requests, uint32_t max_request_size) |
UHSStatus | UhsClearEndpointHalt (UhsHandle *handle, uint32_t if_handle, uint32_t endpoint, int32_t direction) |
UHSStatus | UhsSubmitControlRequest (UhsHandle *handle, uint32_t if_handle, void *buffer, uint8_t bRequest, uint8_t bmRequestType, uint16_t wValue, uint16_t wIndex, uint16_t wLength, int32_t timeout) |
UHSStatus | UhsSubmitBulkRequest (UhsHandle *handle, uint32_t if_handle, uint8_t endpoint, int32_t direction, void *buffer, int32_t length, int32_t timeout) |
UHSStatus | UhsSubmitInterruptRequest (UhsHandle *handle, uint32_t if_handle, uint8_t endpoint, int32_t direction, void *buffer, int32_t length, int32_t timeout) |
static uint32_t | UHSEndpointDirIsIn (UhsEndpointDescriptor *endpoint_descriptor) |
static uint32_t | UHSEndpointGetNum (UhsEndpointDescriptor *endpoint_descriptor) |
static uint32_t | UHSEndpointGetMask (UhsEndpointDescriptor *endpoint_descriptor) |
struct UhsConfig |
struct UhsHandle |
Data Fields | ||
---|---|---|
UHSHandleState | state | |
void * | ipc_buffer | |
uint32_t | handle | |
UhsConfig * | config |
struct UhsInterfaceFilter |
struct UhsEndpointDescriptor |
struct UhsInterfaceProfile |
Data Fields | ||
---|---|---|
uint32_t | if_handle | |
UhsDeviceDescriptor | dev_desc | |
UhsConfigDescriptor | cfg_desc | |
UhsInterfaceDescriptor | if_desc | |
UhsEndpointDescriptor | in_endpoints[16] | |
UhsEndpointDescriptor | out_endpoints[16] |
typedef struct UhsInterfaceFilter UhsInterfaceFilter |
typedef struct UhsInterfaceProfile UhsInterfaceProfile |
typedef struct UhsEndpointDescriptor UhsEndpointDescriptor |
typedef enum UHSHandleState UHSHandleState |
typedef enum UHSAdminDevType UHSAdminDevType |
typedef enum UHSAdminEpType UHSAdminEpType |
typedef void(* UHSDrvRegCallback) (void *context, UhsInterfaceProfile *profile) |
typedef void(* UhsAcquireInterfaceCallback) (void *context, int32_t arg1, int32_t arg2) |
enum UHSStatus |
enum UHSHandleState |
enum UHSAdminDevType |
enum UHSAdminEpType |
UHSStatus UhsClassDrvReg | ( | UhsHandle * | handle, |
UhsInterfaceFilter * | filter, | ||
void * | context, | ||
UHSDrvRegCallback | callback | ||
) |
UHSStatus UhsGetFullConfigDescriptor | ( | UhsHandle * | handle, |
uint32_t | if_handle, | ||
void * | data, | ||
uint32_t | size | ||
) |
UHSStatus UhsGetDescriptorString | ( | UhsHandle * | handle, |
uint32_t | if_handle, | ||
uint8_t | string_index, | ||
BOOL | as_unicode, | ||
void * | data, | ||
uint32_t | size | ||
) |
UHSStatus UhsQueryInterfaces | ( | UhsHandle * | handle, |
UhsInterfaceFilter * | filter, | ||
UhsInterfaceProfile * | profiles, | ||
int32_t | max_profiles | ||
) |
UHSStatus UhsAcquireInterface | ( | UhsHandle * | handle, |
uint32_t | if_handle, | ||
void * | context, | ||
UhsAcquireInterfaceCallback | callback | ||
) |
UHSStatus UhsAdministerDevice | ( | UhsHandle * | handle, |
uint32_t | if_handle, | ||
UHSAdminDevType | type, | ||
int32_t | arg3 | ||
) |
UHSStatus UhsAdministerEndpoint | ( | UhsHandle * | handle, |
uint32_t | if_handle, | ||
UHSAdminEpType | type, | ||
uint32_t | endpointMask, | ||
uint32_t | max_pending_requests, | ||
uint32_t | max_request_size | ||
) |
UHSStatus UhsClearEndpointHalt | ( | UhsHandle * | handle, |
uint32_t | if_handle, | ||
uint32_t | endpoint, | ||
int32_t | direction | ||
) |
UHSStatus UhsSubmitControlRequest | ( | UhsHandle * | handle, |
uint32_t | if_handle, | ||
void * | buffer, | ||
uint8_t | bRequest, | ||
uint8_t | bmRequestType, | ||
uint16_t | wValue, | ||
uint16_t | wIndex, | ||
uint16_t | wLength, | ||
int32_t | timeout | ||
) |
UHSStatus UhsSubmitBulkRequest | ( | UhsHandle * | handle, |
uint32_t | if_handle, | ||
uint8_t | endpoint, | ||
int32_t | direction, | ||
void * | buffer, | ||
int32_t | length, | ||
int32_t | timeout | ||
) |
UHSStatus UhsSubmitInterruptRequest | ( | UhsHandle * | handle, |
uint32_t | if_handle, | ||
uint8_t | endpoint, | ||
int32_t | direction, | ||
void * | buffer, | ||
int32_t | length, | ||
int32_t | timeout | ||
) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |