My Project
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
gsp.c File Reference
#include <stdlib.h>
#include <string.h>
#include <3ds.h>

Go to the source code of this file.

Macros

#define GSP_EVENT_STACK_SIZE   0x1000
 

Functions

Result gspInit ()
 
void gspExit ()
 
Result gspInitEventHandler (Handle _gspEvent, vu8 *_gspSharedMem, u8 gspThreadId)
 
void gspExitEventHandler ()
 
void gspWaitForEvent (GSP_Event id, bool nextEvent)
 
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_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_SetLcdForceBlack (Handle *handle, u8 flags)
 
Result GSPGPU_TriggerCmdReqQueue (Handle *handle)
 
Result GSPGPU_RegisterInterruptRelayQueue (Handle *handle, Handle eventHandle, u32 flags, Handle *outMemHandle, u8 *threadID)
 
Result GSPGPU_UnregisterInterruptRelayQueue (Handle *handle)
 
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_SubmitGxCommand (u32 *sharedGspCmdBuf, u32 gxCommand[0x8], Handle *handle)
 

Variables

Handle gspGpuHandle =0
 
Handle gspEvents [GSPEVENT_MAX]
 
u64 gspEventStack [GSP_EVENT_STACK_SIZE/sizeof(u64)]
 
volatile bool gspRunEvents
 
Handle gspEventThread
 

Macro Definition Documentation

#define GSP_EVENT_STACK_SIZE   0x1000

Definition at line 9 of file gsp.c.

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

Handle gspEvents[GSPEVENT_MAX]

Definition at line 12 of file gsp.c.

u64 gspEventStack[GSP_EVENT_STACK_SIZE/sizeof(u64)]

Definition at line 13 of file gsp.c.

Handle gspEventThread

Definition at line 15 of file gsp.c.

Handle gspGpuHandle =0

Definition at line 11 of file gsp.c.

volatile bool gspRunEvents

Definition at line 14 of file gsp.c.