RetroArch
Macros | Functions | Variables
iosuhax_disc_interface.c File Reference
#include <string.h>
#include <malloc.h>
#include "iosuhax.h"
#include "iosuhax_disc_interface.h"
Include dependency graph for iosuhax_disc_interface.c:

Macros

#define FSA_REF_SD   0x01
 
#define FSA_REF_USB   0x02
 

Functions

static void IOSUHAX_disc_io_initialize (void)
 
static bool IOSUHAX_disc_io_fsa_open (int fsaFd)
 
static void IOSUHAX_disc_io_fsa_close (int fsaFd)
 
static bool IOSUHAX_sdio_startup (void)
 
static bool IOSUHAX_sdio_isInserted (void)
 
static bool IOSUHAX_sdio_clearStatus (void)
 
static bool IOSUHAX_sdio_shutdown (void)
 
static bool IOSUHAX_sdio_readSectors (uint32_t sector, uint32_t numSectors, void *buffer)
 
static bool IOSUHAX_sdio_writeSectors (uint32_t sector, uint32_t numSectors, const void *buffer)
 
static bool IOSUHAX_usb_startup (void)
 
static bool IOSUHAX_usb_isInserted (void)
 
static bool IOSUHAX_usb_clearStatus (void)
 
static bool IOSUHAX_usb_shutdown (void)
 
static bool IOSUHAX_usb_readSectors (uint32_t sector, uint32_t numSectors, void *buffer)
 
static bool IOSUHAX_usb_writeSectors (uint32_t sector, uint32_t numSectors, const void *buffer)
 

Variables

static int initialized = 0
 
static int fsaFdSd = 0
 
static int fsaFdUsb = 0
 
static int sdioFd = 0
 
static int usbFd = 0
 
const DISC_INTERFACE IOSUHAX_sdio_disc_interface
 
const DISC_INTERFACE IOSUHAX_usb_disc_interface
 

Macro Definition Documentation

◆ FSA_REF_SD

#define FSA_REF_SD   0x01

◆ FSA_REF_USB

#define FSA_REF_USB   0x02

Function Documentation

◆ IOSUHAX_disc_io_fsa_close()

static void IOSUHAX_disc_io_fsa_close ( int  fsaFd)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IOSUHAX_disc_io_fsa_open()

static bool IOSUHAX_disc_io_fsa_open ( int  fsaFd)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IOSUHAX_disc_io_initialize()

static void IOSUHAX_disc_io_initialize ( void  )
static
Here is the caller graph for this function:

◆ IOSUHAX_sdio_clearStatus()

static bool IOSUHAX_sdio_clearStatus ( void  )
static

◆ IOSUHAX_sdio_isInserted()

static bool IOSUHAX_sdio_isInserted ( void  )
static

TODO: check for SD card inserted with IOSUHAX_FSA_GetDeviceInfo()

Here is the caller graph for this function:

◆ IOSUHAX_sdio_readSectors()

static bool IOSUHAX_sdio_readSectors ( uint32_t  sector,
uint32_t  numSectors,
void buffer 
)
static
Here is the call graph for this function:

◆ IOSUHAX_sdio_shutdown()

static bool IOSUHAX_sdio_shutdown ( void  )
static
Here is the call graph for this function:

◆ IOSUHAX_sdio_startup()

static bool IOSUHAX_sdio_startup ( void  )
static
Here is the call graph for this function:

◆ IOSUHAX_sdio_writeSectors()

static bool IOSUHAX_sdio_writeSectors ( uint32_t  sector,
uint32_t  numSectors,
const void buffer 
)
static
Here is the call graph for this function:

◆ IOSUHAX_usb_clearStatus()

static bool IOSUHAX_usb_clearStatus ( void  )
static

◆ IOSUHAX_usb_isInserted()

static bool IOSUHAX_usb_isInserted ( void  )
static
Here is the caller graph for this function:

◆ IOSUHAX_usb_readSectors()

static bool IOSUHAX_usb_readSectors ( uint32_t  sector,
uint32_t  numSectors,
void buffer 
)
static
Here is the call graph for this function:

◆ IOSUHAX_usb_shutdown()

static bool IOSUHAX_usb_shutdown ( void  )
static
Here is the call graph for this function:

◆ IOSUHAX_usb_startup()

static bool IOSUHAX_usb_startup ( void  )
static
Here is the call graph for this function:

◆ IOSUHAX_usb_writeSectors()

static bool IOSUHAX_usb_writeSectors ( uint32_t  sector,
uint32_t  numSectors,
const void buffer 
)
static
Here is the call graph for this function:

Variable Documentation

◆ fsaFdSd

int fsaFdSd = 0
static

◆ fsaFdUsb

int fsaFdUsb = 0
static

◆ initialized

int initialized = 0
static

◆ IOSUHAX_sdio_disc_interface

const DISC_INTERFACE IOSUHAX_sdio_disc_interface
Initial value:
=
{
}
#define FEATURE_MEDIUM_CANWRITE
Definition: iosuhax_disc_interface.h:43
static bool IOSUHAX_sdio_startup(void)
Definition: iosuhax_disc_interface.c:102
#define FEATURE_WII_U_SD
Definition: iosuhax_disc_interface.h:36
static bool IOSUHAX_sdio_isInserted(void)
Definition: iosuhax_disc_interface.c:120
static bool IOSUHAX_sdio_shutdown(void)
Definition: iosuhax_disc_interface.c:131
#define DEVICE_TYPE_WII_U_SD
Definition: iosuhax_disc_interface.h:34
static bool IOSUHAX_sdio_readSectors(uint32_t sector, uint32_t numSectors, void *buffer)
Definition: iosuhax_disc_interface.c:142
#define FEATURE_MEDIUM_CANREAD
Definition: iosuhax_disc_interface.h:42
static bool IOSUHAX_sdio_writeSectors(uint32_t sector, uint32_t numSectors, const void *buffer)
Definition: iosuhax_disc_interface.c:156
static bool IOSUHAX_sdio_clearStatus(void)
Definition: iosuhax_disc_interface.c:126

◆ IOSUHAX_usb_disc_interface

const DISC_INTERFACE IOSUHAX_usb_disc_interface
Initial value:
=
{
}
#define DEVICE_TYPE_WII_U_USB
Definition: iosuhax_disc_interface.h:35
static bool IOSUHAX_usb_writeSectors(uint32_t sector, uint32_t numSectors, const void *buffer)
Definition: iosuhax_disc_interface.c:238
static bool IOSUHAX_usb_clearStatus(void)
Definition: iosuhax_disc_interface.c:208
#define FEATURE_MEDIUM_CANWRITE
Definition: iosuhax_disc_interface.h:43
static bool IOSUHAX_usb_readSectors(uint32_t sector, uint32_t numSectors, void *buffer)
Definition: iosuhax_disc_interface.c:224
static bool IOSUHAX_usb_startup(void)
Definition: iosuhax_disc_interface.c:182
static bool IOSUHAX_usb_isInserted(void)
Definition: iosuhax_disc_interface.c:203
#define FEATURE_WII_U_USB
Definition: iosuhax_disc_interface.h:37
static bool IOSUHAX_usb_shutdown(void)
Definition: iosuhax_disc_interface.c:213
#define FEATURE_MEDIUM_CANREAD
Definition: iosuhax_disc_interface.h:42

◆ sdioFd

int sdioFd = 0
static

◆ usbFd

int usbFd = 0
static