vitasdk
Documentation of the vitasdk
compat.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_COMPAT_H_
8 #define _PSP2_COMPAT_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2/io/devctl.h>
12 #include <psp2/rtc.h>
13 #include <psp2/types.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 typedef enum SceCompatCacheMode {
24 
31 
32 typedef struct SceCompatCdram {
33  void *cached_cdram;
37 
38 typedef struct SceCtrlDataPsp {
39  unsigned int TimeStamp;
40  unsigned int Buttons;
41  unsigned char Lx;
42  unsigned char Ly;
43  unsigned char Rx;
44  unsigned char Ry;
45  unsigned char Rsrv[4];
48 
56 int sceCompatInitEx(int unk);
57 
63 int sceCompatUninit(void);
64 
70 int sceCompatStart(void);
71 
77 int sceCompatStop(void);
78 
87 
95 int sceCompatFrameBufferInit(void *framebuffer);
96 
105 int sceCompatSetSuspendSema(SceUID semaid1, SceUID semaid2);
106 
115 
125 int sceCompatCache(int mode, void *addr, SceSize size);
126 
135 
143 int sceCompatInterrupt(int intr_code);
144 
151 
158 
167 
174 
181 
189 int sceCompatSetUpdateState(int state);
190 
200 
208 int sceCompatSetRif(const char *rif);
209 
216 
223 
230 
237 
246 int sceCompatWaitAndGetRequest(int mode, int id);
247 
256 int sceCompatReadShared32(int location, int *value);
257 
266 int sceCompatWriteShared32(int location, int value);
267 
276 
286 
295 
304 
305 #ifdef __cplusplus
306 }
307 #endif
308 
309 #endif /* _PSP2_COMPAT_H_ */
310 
uint32_t length
Definition: bt.h:7
int sceCompatWaitAndGetRequest(int mode, int id)
Wait for command and get request.
int sceCompatWaitSpecialRequest(int unk)
Wait for special request.
int sceCompatSetSuspendSema(SceUID semaid1, SceUID semaid2)
Set suspend semaphores.
unsigned int Buttons
Definition: compat.h:40
int sceCompatStart(void)
Start compat.
int sceCompatIsPocketStationTitle(void)
Check if current title is a pocket station game.
int sceCompatSetUpdateState(int state)
Set update state.
int sceCompatGetCurrentSecureTick(SceRtcTick *tick)
Get current secure tick.
int sceCompatGetUpdateState(void)
Get update state.
int sceCompatUninit(void)
Uninit compat.
int sceCompatCheckPocketStation(void)
Check if pocket station application is available.
int sceCompatAllocCdramWithHole(SceCompatCdram *cdram)
Allocate cdram with hole.
int sceCompatStop(void)
Stop compat.
int sceCompatGetStatus(void)
Get compat status.
int sceCompatReadShared32(int location, int *value)
Read from shared sram.
int sceCompatInitEx(int unk)
Init compat.
int sceCompatLCDCSync(void)
LCDC sync.
int sceCompatWriteShared32(int location, int value)
Write to shared sram.
int sceCompatCache(int mode, void *addr, SceSize size)
Cache operation.
SceCompatPeripheralMode
Definition: compat.h:25
VITASDK_BUILD_ASSERT_EQ(8, SceCompatCdram)
SceCompatCacheMode
Definition: compat.h:19
int sceCompatGetPrimaryHead(void)
Get primary head.
int sceCompatAvailableColorSpaceSetting(void)
Get color space setting availability.
unsigned int TimeStamp
Definition: compat.h:39
unsigned char Ly
Definition: compat.h:42
int sceCompatInterrupt(int intr_code)
Interrupt code.
unsigned char Ry
Definition: compat.h:44
int sceCompatSuspendResume(int unk)
Suspend/resume compat.
int sceCompatGetPeripheralState(int mode)
Get peripheral state.
void * cached_cdram
Definition: compat.h:33
int sceCompatGetPspSystemSoftwareVersion(void)
Get PSP system software version.
int sceCompatSetRif(const char *rif)
Set RIF name.
int sceCompatWriteSharedCtrl(SceCtrlDataPsp *pad_data)
Write shared control.
int sceCompatGetTitleList(void *buf, SceSize length)
Get title list.
int sceCompatFrameBufferInit(void *framebuffer)
Framebuffer init.
unsigned char Lx
Definition: compat.h:41
unsigned char Rsrv[4]
Definition: compat.h:45
unsigned char Rx
Definition: compat.h:43
int sceCompatSetDisplayConfig(int unk0, int unk1)
Set display config.
void * uncached_cdram
Definition: compat.h:34
int sceCompatGetDevInf(SceIoDevInfo *info)
Get Memory Card device information.
@ SCE_COMPAT_PERIPHERAL_POWER_GET_BATTERY_PERCENT
Definition: compat.h:28
@ SCE_COMPAT_PERIPHERAL_POWER_IS_SUSPEND_REQUIRED
Definition: compat.h:26
@ SCE_COMPAT_PERIPHERAL_POWER_GET_BATTERY_LIFETIME
Definition: compat.h:27
@ SCE_COMPAT_PERIPHERAL_HPREMOTE_IS_HEADPHONE_EXIST
Definition: compat.h:29
@ SCE_COMPAT_CACHE_NONE
Definition: compat.h:20
@ SCE_COMPAT_CACHE_INVALIDATE
Definition: compat.h:21
@ SCE_COMPAT_CACHE_WRITEBACK
Definition: compat.h:22
Definition: compat.h:32
Definition: compat.h:38
Definition: iofilemgr.h:17
SceSize size
struct size(variable size)
Definition: debug.h:0
Definition: rtc.h:48
unsigned int SceSize
Definition: types.h:56
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90
unsigned int unk0
Definition: usbd.h:0
unsigned short unk1
Definition: usbd.h:1