wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
Collaboration diagram for IOS:

Data Structures

struct  IOSVec
 

Typedefs

typedef struct IOSVec IOSVec
 
typedef int32_t IOSHandle
 
typedef enum IOSOpenMode IOSOpenMode
 
typedef enum IOSError IOSError
 
typedef void(* IOSAsyncCallbackFn) (IOSError, void *)
 

Enumerations

enum  IOSOpenMode {
  IOS_OPEN_READ = 1 << 0 ,
  IOS_OPEN_WRITE = 1 << 1 ,
  IOS_OPEN_READWRITE = IOS_OPEN_READ | IOS_OPEN_WRITE
}
 
enum  IOSError {
  IOS_ERROR_OK = 0 ,
  IOS_ERROR_ACCESS = -1 ,
  IOS_ERROR_EXISTS = -2 ,
  IOS_ERROR_INTR = -3 ,
  IOS_ERROR_INVALID = -4 ,
  IOS_ERROR_MAX = -5 ,
  IOS_ERROR_NOEXISTS = -6 ,
  IOS_ERROR_QEMPTY = -7 ,
  IOS_ERROR_QFULL = -8 ,
  IOS_ERROR_UNKNOWN = -9 ,
  IOS_ERROR_NOTREADY = -10 ,
  IOS_ERROR_ECC = -11 ,
  IOS_ERROR_ECCCRIT = -12 ,
  IOS_ERROR_BADBLOCK = -13 ,
  IOS_ERROR_INVALIDOBJTYPE = -14 ,
  IOS_ERROR_INVALIDRNG = -15 ,
  IOS_ERROR_INVALIDFLAG = -16 ,
  IOS_ERROR_INVALIDFORMAT = -17 ,
  IOS_ERROR_INVALIDVERSION = -18 ,
  IOS_ERROR_INVALIDSIGNER = -19 ,
  IOS_ERROR_FAILCHECKVALUE = -20 ,
  IOS_ERROR_FAILINTERNAL = -21 ,
  IOS_ERROR_FAILALLOC = -22 ,
  IOS_ERROR_INVALIDSIZE = -23 ,
  IOS_ERROR_NOLINK = -24 ,
  IOS_ERROR_ANFAILED = -25 ,
  IOS_ERROR_MAXSEMCOUNT = -26 ,
  IOS_ERROR_SEMUNAVAILABLE = -27 ,
  IOS_ERROR_INVALIDHANDLE = -28 ,
  IOS_ERROR_INVALIDARG = -29 ,
  IOS_ERROR_NORESOURCE = -30 ,
  IOS_ERROR_BUSY = -31 ,
  IOS_ERROR_TIMEOUT = -32 ,
  IOS_ERROR_ALIGNMENT = -33 ,
  IOS_ERROR_BSP = -34 ,
  IOS_ERROR_DATAPENDING = -35 ,
  IOS_ERROR_EXPIRED = -36 ,
  IOS_ERROR_NOREADACCESS = -37 ,
  IOS_ERROR_NOWRITEACCESS = -38 ,
  IOS_ERROR_NOREADWRITEACCESS = -39 ,
  IOS_ERROR_CLIENTTXNLIMIT = -40 ,
  IOS_ERROR_STALEHANDLE = -41 ,
  IOS_ERROR_UNKNOWNVALUE = -42
}
 

Functions

IOSError IOS_Open (const char *device, IOSOpenMode mode)
 
IOSError IOS_OpenAsync (const char *device, IOSOpenMode mode, IOSAsyncCallbackFn callback, void *context)
 
IOSError IOS_Close (IOSHandle handle)
 
IOSError IOS_CloseAsync (IOSHandle handle, IOSAsyncCallbackFn callback, void *context)
 
IOSError IOS_Ioctl (IOSHandle handle, uint32_t request, void *inBuf, uint32_t inLen, void *outBuf, uint32_t outLen)
 
IOSError IOS_IoctlAsync (IOSHandle handle, uint32_t request, void *inBuf, uint32_t inLen, void *outBuf, uint32_t outLen, IOSAsyncCallbackFn callback, void *context)
 
IOSError IOS_Ioctlv (IOSHandle handle, uint32_t request, uint32_t vecIn, uint32_t vecOut, IOSVec *vec)
 
IOSError IOS_IoctlvAsync (IOSHandle handle, uint32_t request, uint32_t vecIn, uint32_t vecOut, IOSVec *vec, IOSAsyncCallbackFn callback, void *context)
 

Detailed Description


Data Structure Documentation

◆ IOSVec

struct IOSVec

Definition at line 71 of file ios.h.

Data Fields
void * vaddr Virtual address of buffer.
uint32_t len Length of buffer.
void * paddr Physical address of buffer.

Typedef Documentation

◆ IOSVec

typedef struct IOSVec IOSVec

Definition at line 1 of file ios.h.

◆ IOSHandle

typedef int32_t IOSHandle

Definition at line 15 of file ios.h.

◆ IOSOpenMode

typedef enum IOSOpenMode IOSOpenMode

◆ IOSError

typedef enum IOSError IOSError

◆ IOSAsyncCallbackFn

typedef void(* IOSAsyncCallbackFn) (IOSError, void *)

Definition at line 87 of file ios.h.

Enumeration Type Documentation

◆ IOSOpenMode

Enumerator
IOS_OPEN_READ 
IOS_OPEN_WRITE 
IOS_OPEN_READWRITE 

Definition at line 17 of file ios.h.

◆ IOSError

enum IOSError
Enumerator
IOS_ERROR_OK 
IOS_ERROR_ACCESS 
IOS_ERROR_EXISTS 
IOS_ERROR_INTR 
IOS_ERROR_INVALID 
IOS_ERROR_MAX 
IOS_ERROR_NOEXISTS 
IOS_ERROR_QEMPTY 
IOS_ERROR_QFULL 
IOS_ERROR_UNKNOWN 
IOS_ERROR_NOTREADY 
IOS_ERROR_ECC 
IOS_ERROR_ECCCRIT 
IOS_ERROR_BADBLOCK 
IOS_ERROR_INVALIDOBJTYPE 
IOS_ERROR_INVALIDRNG 
IOS_ERROR_INVALIDFLAG 
IOS_ERROR_INVALIDFORMAT 
IOS_ERROR_INVALIDVERSION 
IOS_ERROR_INVALIDSIGNER 
IOS_ERROR_FAILCHECKVALUE 
IOS_ERROR_FAILINTERNAL 
IOS_ERROR_FAILALLOC 
IOS_ERROR_INVALIDSIZE 
IOS_ERROR_NOLINK 
IOS_ERROR_ANFAILED 
IOS_ERROR_MAXSEMCOUNT 
IOS_ERROR_SEMUNAVAILABLE 
IOS_ERROR_INVALIDHANDLE 
IOS_ERROR_INVALIDARG 
IOS_ERROR_NORESOURCE 
IOS_ERROR_BUSY 
IOS_ERROR_TIMEOUT 
IOS_ERROR_ALIGNMENT 
IOS_ERROR_BSP 
IOS_ERROR_DATAPENDING 
IOS_ERROR_EXPIRED 
IOS_ERROR_NOREADACCESS 
IOS_ERROR_NOWRITEACCESS 
IOS_ERROR_NOREADWRITEACCESS 
IOS_ERROR_CLIENTTXNLIMIT 
IOS_ERROR_STALEHANDLE 
IOS_ERROR_UNKNOWNVALUE 

Definition at line 24 of file ios.h.

Function Documentation

◆ IOS_Open()

IOSError IOS_Open ( const char *  device,
IOSOpenMode  mode 
)

◆ IOS_OpenAsync()

IOSError IOS_OpenAsync ( const char *  device,
IOSOpenMode  mode,
IOSAsyncCallbackFn  callback,
void *  context 
)

◆ IOS_Close()

IOSError IOS_Close ( IOSHandle  handle)

◆ IOS_CloseAsync()

IOSError IOS_CloseAsync ( IOSHandle  handle,
IOSAsyncCallbackFn  callback,
void *  context 
)

◆ IOS_Ioctl()

IOSError IOS_Ioctl ( IOSHandle  handle,
uint32_t  request,
void *  inBuf,
uint32_t  inLen,
void *  outBuf,
uint32_t  outLen 
)

◆ IOS_IoctlAsync()

IOSError IOS_IoctlAsync ( IOSHandle  handle,
uint32_t  request,
void *  inBuf,
uint32_t  inLen,
void *  outBuf,
uint32_t  outLen,
IOSAsyncCallbackFn  callback,
void *  context 
)

◆ IOS_Ioctlv()

IOSError IOS_Ioctlv ( IOSHandle  handle,
uint32_t  request,
uint32_t  vecIn,
uint32_t  vecOut,
IOSVec vec 
)

◆ IOS_IoctlvAsync()

IOSError IOS_IoctlvAsync ( IOSHandle  handle,
uint32_t  request,
uint32_t  vecIn,
uint32_t  vecOut,
IOSVec vec,
IOSAsyncCallbackFn  callback,
void *  context 
)