My Project
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
gsp.h File Reference

Go to the source code of this file.

Data Structures

struct  GSP_FramebufferInfo
 
struct  GSP_CaptureInfo
 

Macros

#define GSP_REBASE_REG(r)   ((r)-0x1EB00000)
 
#define gspWaitForPSC0()   gspWaitForEvent(GSPEVENT_PSC0, false)
 
#define gspWaitForPSC1()   gspWaitForEvent(GSPEVENT_PSC1, false)
 
#define gspWaitForVBlank()   gspWaitForVBlank0()
 
#define gspWaitForVBlank0()   gspWaitForEvent(GSPEVENT_VBlank0, true)
 
#define gspWaitForVBlank1()   gspWaitForEvent(GSPEVENT_VBlank1, true)
 
#define gspWaitForPPF()   gspWaitForEvent(GSPEVENT_PPF, false)
 
#define gspWaitForP3D()   gspWaitForEvent(GSPEVENT_P3D, false)
 
#define gspWaitForDMA()   gspWaitForEvent(GSPEVENT_DMA, false)
 

Enumerations

enum  GSP_FramebufferFormats {
  GSP_RGBA8_OES =0, GSP_BGR8_OES =1, GSP_RGB565_OES =2, GSP_RGB5_A1_OES =3,
  GSP_RGBA4_OES =4
}
 
enum  GSP_Event {
  GSPEVENT_PSC0 = 0, GSPEVENT_PSC1, GSPEVENT_VBlank0, GSPEVENT_VBlank1,
  GSPEVENT_PPF, GSPEVENT_P3D, GSPEVENT_DMA, GSPEVENT_MAX
}
 

Functions

Result gspInit ()
 
void gspExit ()
 
Result gspInitEventHandler (Handle gspEvent, vu8 *gspSharedMem, u8 gspThreadId)
 
void gspExitEventHandler ()
 
void gspWaitForEvent (GSP_Event id, bool nextEvent)
 
Result GSPGPU_AcquireRight (Handle *handle, u8 flags)
 
Result GSPGPU_ReleaseRight (Handle *handle)
 
Result GSPGPU_ImportDisplayCaptureInfo (Handle *handle, GSP_CaptureInfo *captureinfo)
 
Result GSPGPU_SaveVramSysArea (Handle *handle)
 
Result GSPGPU_RestoreVramSysArea (Handle *handle)
 
Result GSPGPU_SetLcdForceBlack (Handle *handle, u8 flags)
 
Result GSPGPU_SetBufferSwap (Handle *handle, u32 screenid, GSP_FramebufferInfo *framebufinfo)
 
Result GSPGPU_FlushDataCache (Handle *handle, u8 *adr, u32 size)
 
Result GSPGPU_InvalidateDataCache (Handle *handle, u8 *adr, u32 size)
 
Result GSPGPU_WriteHWRegs (Handle *handle, u32 regAddr, u32 *data, u8 size)
 
Result GSPGPU_WriteHWRegsWithMask (Handle *handle, u32 regAddr, u32 *data, u8 datasize, u32 *maskdata, u8 masksize)
 
Result GSPGPU_ReadHWRegs (Handle *handle, u32 regAddr, u32 *data, u8 size)
 
Result GSPGPU_RegisterInterruptRelayQueue (Handle *handle, Handle eventHandle, u32 flags, Handle *outMemHandle, u8 *threadID)
 
Result GSPGPU_UnregisterInterruptRelayQueue (Handle *handle)
 
Result GSPGPU_TriggerCmdReqQueue (Handle *handle)
 
Result GSPGPU_SubmitGxCommand (u32 *sharedGspCmdBuf, u32 gxCommand[0x8], Handle *handle)
 

Variables

typedef struct
 
u32framebuf1_vaddr
 
u32 format
 
u32 framebuf_widthbytesize
 
 GSP_CaptureInfoEntry
 

Macro Definition Documentation

#define GSP_REBASE_REG (   r)    ((r)-0x1EB00000)

Definition at line 3 of file gsp.h.

#define gspWaitForDMA ( )    gspWaitForEvent(GSPEVENT_DMA, false)

Definition at line 64 of file gsp.h.

#define gspWaitForP3D ( )    gspWaitForEvent(GSPEVENT_P3D, false)

Definition at line 63 of file gsp.h.

#define gspWaitForPPF ( )    gspWaitForEvent(GSPEVENT_PPF, false)

Definition at line 62 of file gsp.h.

#define gspWaitForPSC0 ( )    gspWaitForEvent(GSPEVENT_PSC0, false)

Definition at line 57 of file gsp.h.

#define gspWaitForPSC1 ( )    gspWaitForEvent(GSPEVENT_PSC1, false)

Definition at line 58 of file gsp.h.

#define gspWaitForVBlank ( )    gspWaitForVBlank0()

Definition at line 59 of file gsp.h.

#define gspWaitForVBlank0 ( )    gspWaitForEvent(GSPEVENT_VBlank0, true)

Definition at line 60 of file gsp.h.

#define gspWaitForVBlank1 ( )    gspWaitForEvent(GSPEVENT_VBlank1, true)

Definition at line 61 of file gsp.h.

Enumeration Type Documentation

enum GSP_Event
Enumerator
GSPEVENT_PSC0 
GSPEVENT_PSC1 
GSPEVENT_VBlank0 
GSPEVENT_VBlank1 
GSPEVENT_PPF 
GSPEVENT_P3D 
GSPEVENT_DMA 
GSPEVENT_MAX 

Definition at line 38 of file gsp.h.

Enumerator
GSP_RGBA8_OES 
GSP_BGR8_OES 
GSP_RGB565_OES 
GSP_RGB5_A1_OES 
GSP_RGBA4_OES 

Definition at line 16 of file gsp.h.

Function Documentation

void gspExit ( )

Definition at line 28 of file gsp.c.

void gspExitEventHandler ( )

Definition at line 57 of file gsp.c.

Result GSPGPU_AcquireRight ( Handle handle,
u8  flags 
)

Definition at line 278 of file gsp.c.

Result GSPGPU_FlushDataCache ( Handle handle,
u8 adr,
u32  size 
)

Definition at line 184 of file gsp.c.

Result GSPGPU_ImportDisplayCaptureInfo ( Handle handle,
GSP_CaptureInfo captureinfo 
)

Definition at line 307 of file gsp.c.

Result GSPGPU_InvalidateDataCache ( Handle handle,
u8 adr,
u32  size 
)

Definition at line 201 of file gsp.c.

Result GSPGPU_ReadHWRegs ( Handle handle,
u32  regAddr,
u32 data,
u8  size 
)

Definition at line 149 of file gsp.c.

Result GSPGPU_RegisterInterruptRelayQueue ( Handle handle,
Handle  eventHandle,
u32  flags,
Handle outMemHandle,
u8 threadID 
)

Definition at line 246 of file gsp.c.

Result GSPGPU_ReleaseRight ( Handle handle)

Definition at line 294 of file gsp.c.

Result GSPGPU_RestoreVramSysArea ( Handle handle)

Definition at line 340 of file gsp.c.

Result GSPGPU_SaveVramSysArea ( Handle handle)

Definition at line 327 of file gsp.c.

Result GSPGPU_SetBufferSwap ( Handle handle,
u32  screenid,
GSP_FramebufferInfo framebufinfo 
)

Definition at line 168 of file gsp.c.

Result GSPGPU_SetLcdForceBlack ( Handle handle,
u8  flags 
)

Definition at line 219 of file gsp.c.

Result GSPGPU_SubmitGxCommand ( u32 sharedGspCmdBuf,
u32  gxCommand[0x8],
Handle handle 
)

Definition at line 356 of file gsp.c.

Result GSPGPU_TriggerCmdReqQueue ( Handle handle)

Definition at line 233 of file gsp.c.

Result GSPGPU_UnregisterInterruptRelayQueue ( Handle handle)

Definition at line 265 of file gsp.c.

Result GSPGPU_WriteHWRegs ( Handle handle,
u32  regAddr,
u32 data,
u8  size 
)

Definition at line 109 of file gsp.c.

Result GSPGPU_WriteHWRegsWithMask ( Handle handle,
u32  regAddr,
u32 data,
u8  datasize,
u32 maskdata,
u8  masksize 
)

Definition at line 128 of file gsp.c.

Result gspInit ( )

Definition at line 23 of file gsp.c.

Result gspInitEventHandler ( Handle  gspEvent,
vu8 gspSharedMem,
u8  gspThreadId 
)

Definition at line 33 of file gsp.c.

void gspWaitForEvent ( GSP_Event  id,
bool  nextEvent 
)

Definition at line 70 of file gsp.c.

Variable Documentation

u32 format

Definition at line 29 of file gsp.h.

u32* framebuf1_vaddr

Definition at line 28 of file gsp.h.

u32 framebuf_widthbytesize

Definition at line 30 of file gsp.h.

GSP_CaptureInfoEntry

Definition at line 31 of file gsp.h.

typedef struct
Initial value:
{
u32 *framebuf0_vaddr
uint32_t u32
Definition: types.h:23

Definition at line 26 of file gsp.h.