summaryrefslogtreecommitdiff
path: root/include/user/kernel/sysmem.h
blob: fe278ea0e6c472039440b8b6d3d19e74fb67e3a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
	Vita Development Suite Libraries
*/

#ifndef _VDSUITE_USER_KERNEL_SYSMEM_H
#define _VDSUITE_USER_KERNEL_SYSMEM_H

#include_next <kernel/sysmem.h>

SCE_CDECL_BEGIN

typedef enum SceKernelModel {
	SCE_KERNEL_MODEL_VITA   = 0x10000,
	SCE_KERNEL_MODEL_VITATV = 0x20000
} SceKernelModel;

SceUID sceKernelAllocMemBlockForVM(const char *name, SceSize size);
int sceKernelSyncVMDomain(SceUID uid, void *data, SceSize size);
int sceKernelOpenVMDomain(void);
int sceKernelCloseVMDomain(void);

int sceKernelOpenMemBlock(const char *name, int flags);
int sceKernelCloseMemBlock(SceUID uid);

/**
 * Get the model number of the device
 *
 * @return A value from SCE_KERNEL_MODEL
*/
int sceKernelGetModelForCDialog(void);

/**
 * Get the model number of the device
 *
 * @return A value from SCE_KERNEL_MODEL
*/
int sceKernelGetModel(void);

int sceKernelIsPSVitaTV(void);

SCE_CDECL_END

#endif /* _VDSUITE_USER_KERNEL_SYSMEM_H */