RetroArch
Macros | Functions | Variables
geckousb.c File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <signal.h>
#include <gccore.h>
#include "geckousb.h"
Include dependency graph for geckousb.c:

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)))
 

Functions

static __inline__ int __send_command (s32 chn, u16 *cmd)
 
static int __usb_sendbyte (s32 chn, char ch)
 
static int __usb_recvbyte (s32 chn, char *ch)
 
static int __usb_checksend (s32 chn)
 
static int __usb_checkrecv (s32 chn)
 
static void __usb_flush (s32 chn)
 
static int __usb_isgeckoalive (s32 chn)
 
static int __usb_recvbuffer (s32 chn, void *buffer, int size)
 
static int __usb_sendbuffer (s32 chn, const void *buffer, int size)
 
static int usbopen (struct dbginterface *device)
 
static int usbclose (struct dbginterface *device)
 
static int usbwait (struct dbginterface *device)
 
static int usbread (struct dbginterface *device, void *buffer, int size)
 
static int usbwrite (struct dbginterface *device, const void *buffer, int size)
 
struct dbginterfaceusb_init (s32 channel)
 

Variables

static struct dbginterface usb_device
 

Macro Definition Documentation

◆ _SHIFTL

#define _SHIFTL (   v,
  s,
  w 
)    ((u32) (((u32)(v) & ((0x01 << (w)) - 1)) << (s)))

◆ _SHIFTR

#define _SHIFTR (   v,
  s,
  w 
)    ((u32)(((u32)(v) >> (s)) & ((0x01 << (w)) - 1)))

Function Documentation

◆ __send_command()

static __inline__ int __send_command ( s32  chn,
u16 cmd 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __usb_checkrecv()

static int __usb_checkrecv ( s32  chn)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __usb_checksend()

static int __usb_checksend ( s32  chn)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __usb_flush()

static void __usb_flush ( s32  chn)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __usb_isgeckoalive()

static int __usb_isgeckoalive ( s32  chn)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __usb_recvbuffer()

static int __usb_recvbuffer ( s32  chn,
void buffer,
int  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __usb_recvbyte()

static int __usb_recvbyte ( s32  chn,
char *  ch 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __usb_sendbuffer()

static int __usb_sendbuffer ( s32  chn,
const void buffer,
int  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __usb_sendbyte()

static int __usb_sendbyte ( s32  chn,
char  ch 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ usb_init()

struct dbginterface* usb_init ( s32  channel)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ usbclose()

static int usbclose ( struct dbginterface device)
static
Here is the caller graph for this function:

◆ usbopen()

static int usbopen ( struct dbginterface device)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ usbread()

static int usbread ( struct dbginterface device,
void buffer,
int  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ usbwait()

static int usbwait ( struct dbginterface device)
static
Here is the caller graph for this function:

◆ usbwrite()

static int usbwrite ( struct dbginterface device,
const void buffer,
int  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ usb_device

struct dbginterface usb_device
static