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
16extern "C" {
17#endif
18
24
31
37
38typedef 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
56int sceCompatInitEx(int unk);
57
64
71
77int sceCompatStop(void);
78
87
95int sceCompatFrameBufferInit(void *framebuffer);
96
106
115
125int sceCompatCache(int mode, void *addr, SceSize size);
126
135
143int sceCompatInterrupt(int intr_code);
144
151
158
167
174
181
190
200
208int sceCompatSetRif(const char *rif);
209
216
223
230
237
246int sceCompatWaitAndGetRequest(int mode, int id);
247
256int sceCompatReadShared32(int location, int *value);
257
266int sceCompatWriteShared32(int location, int value);
267
276
286
295
304
323
341
342#ifdef __cplusplus
343}
344#endif
345
346#endif /* _PSP2_COMPAT_H_ */
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
void * buffer
Definition bt.h:6
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
SceCompatCacheMode
Definition compat.h:19
int sceCompatGetPrimaryHead(void)
Get primary head.
int sceCompatAvailableColorSpaceSetting(void)
Get color space setting availability.
int sceCompatIdStorageLookup(SceUInt16 key, SceUInt32 offset, void *buffer, SceSize size)
Read a PSP IdStorage leaf.
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 sceCompatDatRead(SceUInt32 index, SceUInt32 offset, void *buffer, SceSize size)
Read cached PSP activation data.
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
Definition lsdb.h:11
SceUInt32 key
FNV-1a hash of the AppInfo key.
Definition lsdb.h:0
Definition rtc.h:48
unsigned int SceSize
Definition types.h:56
uint16_t SceUInt16
Definition types.h:42
int SceUID
UIDs are used to describe many different kernel objects.
Definition types.h:90
uint32_t SceUInt32
Definition types.h:45
unsigned int unk0
Definition usbd.h:0
unsigned short unk1
Definition usbd.h:1