RetroArch
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "asm.h"
#include "processor.h"
#include "system.h"
#include "ogcsys.h"
#include "video.h"
#include "irq.h"
#include "si.h"
#include "lwp_watchdog.h"
Classes | |
union | _sicomcsr |
struct | _sipacket |
struct | _sicntrl |
struct | _xy |
Macros | |
#define | _SHIFTL(v, s, w) ((u32) (((u32)(v) & ((0x01 << (w)) - 1)) << (s))) |
#define | _SHIFTR(v, s, w) ((u32)(((u32)(v) >> (s)) & ((0x01 << (w)) - 1))) |
#define | SISR_ERRORMASK(chn) (0x0f000000>>((chn)<<3)) |
#define | SIPOLL_ENABLE(chn) (0x80000000>>((chn)+24)) |
#define | SICOMCSR_TCINT (1<<31) |
#define | SICOMCSR_TCINT_ENABLE (1<<30) |
#define | SICOMCSR_COMERR (1<<29) |
#define | SICOMCSR_RDSTINT (1<<28) |
#define | SICOMCSR_RDSTINT_ENABLE (1<<27) |
#define | SICOMCSR_TSTART (1<<0) |
#define | SISR_UNDERRUN 0x0001 |
#define | SISR_OVERRUN 0x0002 |
#define | SISR_COLLISION 0x0004 |
#define | SISR_NORESPONSE 0x0008 |
#define | SISR_WRST 0x0010 |
#define | SISR_RDST 0x0020 |
Typedefs | |
typedef union _sicomcsr | sicomcsr |
Variables | |
static struct _sipacket | sipacket [4] |
static struct _sicntrl | sicntrl |
static struct _xy | xy [2][12] |
u32 | __PADFixBits = 0 |
static u32 | sampling_rate = 0 |
static u32 | cmdtypeandstatus = 0 |
static u32 | cmdfixdevice [4] = {0,0,0,0} |
static u32 | si_type [4] = {8,8,8,8} |
static u32 | inputBufferVCount [4] = {0,0,0,0} |
static u32 | inputBufferValid [4] = {0,0,0,0} |
static u32 | inputBuffer [4][2] = {{0,0},{0,0},{0,0},{0,0}} |
static RDSTHandler | rdstHandlers [4] = {NULL,NULL,NULL,NULL} |
static u64 | typeTime [4] = {0,0,0,0} |
static u64 | xferTime [4] = {0,0,0,0} |
static SICallback | typeCallback [4][4] |
static syswd_t | si_alarm [4] |
static vu16 *const | _viReg = (u16*)0xCC002000 |
#define SICOMCSR_COMERR (1<<29) |
#define SICOMCSR_RDSTINT (1<<28) |
#define SICOMCSR_RDSTINT_ENABLE (1<<27) |
#define SICOMCSR_TCINT (1<<31) |
#define SICOMCSR_TCINT_ENABLE (1<<30) |
#define SICOMCSR_TSTART (1<<0) |
#define SIPOLL_ENABLE | ( | chn | ) | (0x80000000>>((chn)+24)) |
#define SISR_COLLISION 0x0004 |
#define SISR_ERRORMASK | ( | chn | ) | (0x0f000000>>((chn)<<3)) |
#define SISR_NORESPONSE 0x0008 |
#define SISR_OVERRUN 0x0002 |
#define SISR_RDST 0x0020 |
#define SISR_UNDERRUN 0x0001 |
#define SISR_WRST 0x0010 |
|
static |
|
static |
|
static |
|
static |
u32 SI_Busy | ( | ) |
u32 SI_GetTypeAsync | ( | s32 | chan, |
SICallback | cb | ||
) |
void SI_RefreshSamplingRate | ( | ) |
u32 SI_RegisterPollingHandler | ( | RDSTHandler | handler | ) |
u32 SI_Sync | ( | ) |
u32 SI_Transfer | ( | s32 | chan, |
void * | out, | ||
u32 | out_len, | ||
void * | in, | ||
u32 | in_len, | ||
SICallback | cb, | ||
u32 | us_delay | ||
) |
void SI_TransferCommands | ( | ) |
u32 SI_UnregisterPollingHandler | ( | RDSTHandler | handler | ) |
u32 __PADFixBits = 0 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |