RetroArch
Macros | Functions | Variables
gx_gfx_vi_encoder.c File Reference
#include <stdint.h>
#include <string.h>
#include <gccore.h>
#include <ogcsys.h>
#include <ogc/machine/processor.h>
#include <retro_miscellaneous.h>
#include "../../defines/gx_defines.h"
Include dependency graph for gx_gfx_vi_encoder.c:

Macros

#define __viGetSDA()   (_SHIFTR(_i2cReg[50],15,1))
 

Functions

void udelay (int us)
 
static INLINE void __viOpenI2C (u32 channel)
 
static INLINE void __viSetSCL (u32 channel)
 
static INLINE void __viSetSDA (u32 channel)
 
static u32 __sendSlaveAddress (u8 addr)
 
static u32 __VISendI2CData (u8 addr, void *val, u32 len)
 
static void __VIWriteI2CRegister8 (u8 reg, u8 data)
 
static void __VIWriteI2CRegisterBuf (u8 reg, int size, u8 *data)
 
void VIDEO_SetTrapFilter (bool enable)
 
void VIDEO_SetGamma (int gamma)
 

Variables

static u32 i2cIdentFirst = 0
 
static u32 i2cIdentFlag = 1
 
static vu32 *const _i2cReg = (u32*)0xCD800000
 
static const u8 gamma_coeffs [][33]
 

Macro Definition Documentation

◆ __viGetSDA

#define __viGetSDA ( )    (_SHIFTR(_i2cReg[50],15,1))

Function Documentation

◆ __sendSlaveAddress()

static u32 __sendSlaveAddress ( u8  addr)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __viOpenI2C()

static INLINE void __viOpenI2C ( u32  channel)
static
Here is the caller graph for this function:

◆ __VISendI2CData()

static u32 __VISendI2CData ( u8  addr,
void val,
u32  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __viSetSCL()

static INLINE void __viSetSCL ( u32  channel)
static
Here is the caller graph for this function:

◆ __viSetSDA()

static INLINE void __viSetSDA ( u32  channel)
static
Here is the caller graph for this function:

◆ __VIWriteI2CRegister8()

static void __VIWriteI2CRegister8 ( u8  reg,
u8  data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __VIWriteI2CRegisterBuf()

static void __VIWriteI2CRegisterBuf ( u8  reg,
int  size,
u8 data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ udelay()

void udelay ( int  us)
Here is the caller graph for this function:

◆ VIDEO_SetGamma()

void VIDEO_SetGamma ( int  gamma)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ VIDEO_SetTrapFilter()

void VIDEO_SetTrapFilter ( bool  enable)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ _i2cReg

vu32* const _i2cReg = (u32*)0xCD800000
static

◆ gamma_coeffs

const u8 gamma_coeffs[][33]
static

◆ i2cIdentFirst

u32 i2cIdentFirst = 0
static

◆ i2cIdentFlag

u32 i2cIdentFlag = 1
static