vitasdk
Documentation of the vitasdk
sysmem.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2COMMON_KERNEL_SYSMEM_H_
7 #define _PSP2COMMON_KERNEL_SYSMEM_H_
8 
9 #include <vitasdk/build_utils.h>
10 #include <psp2common/types.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
18 
19 /*
20  * User/Kernel shared memtypes
21  */
22 
23 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_L1WBWA_RW (0x09404060)
24 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_R (0x09408040)
25 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW (0x09408060)
26 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_DEVICE_RW (0x0C200860)
27 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_R (0x0C20D040)
28 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_RW (0x0C20D060)
29 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_NC_RW (0x0C208060)
30 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_GAME_RW (0x0C50D060)
31 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_RW (0x0C80D060)
32 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_NC_RW (0x0D808060)
33 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_CDIALOG_RW (0x0CA0D060)
34 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_CDIALOG_NC_RW (0x0CA08060)
35 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_TOOL_RW (0x0CF0D060)
36 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_TOOL_NC_RW (0x0CF08060)
37 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_CDIALOG_R (0x0E20D040)
38 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_CDIALOG_RW (0x0E20D060)
39 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_CDIALOG_NC_R (0x0E208040)
40 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_CDIALOG_NC_RW (0x0E208060)
41 
42 
43 /*
44  * For Backwards compatibility
45  */
46 
47 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE (0x0C208060)
48 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_RW (0x0C20D060)
49 #define SCE_KERNEL_MEMBLOCK_TYPE_USER_TOOL_NC_RW (0x0CF08060)
50 
51 
61 
62 typedef enum SceKernelModel {
64  SCE_KERNEL_MODEL_VITATV = 0x20000
66 
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* _PSP2COMMON_KERNEL_SYSMEM_H_ */
SceUInt32 SceKernelMemBlockType
Definition: sysmem.h:16
SceKernelAllocMemBlockAttr
Definition: sysmem.h:52
SceKernelModel
Definition: sysmem.h:62
@ SCE_KERNEL_ALLOC_MEMBLOCK_ATTR_HAS_PADDR_LIST
Definition: sysmem.h:57
@ SCE_KERNEL_ALLOC_MEMBLOCK_ATTR_HAS_PID
Definition: sysmem.h:56
@ SCE_KERNEL_ALLOC_MEMBLOCK_ATTR_PHYCONT
Definition: sysmem.h:58
@ SCE_KERNEL_ALLOC_MEMBLOCK_ATTR_HAS_MIRROR_BLOCKID
Definition: sysmem.h:55
@ SCE_KERNEL_ALLOC_MEMBLOCK_ATTR_HAS_ALIGNMENT
Definition: sysmem.h:54
@ SCE_KERNEL_ALLOC_MEMBLOCK_ATTR_ALLOW_PARTIAL_OP
Definition: sysmem.h:59
@ SCE_KERNEL_ALLOC_MEMBLOCK_ATTR_HAS_PADDR
Definition: sysmem.h:53
@ SCE_KERNEL_MODEL_VITA
Definition: sysmem.h:63
@ SCE_KERNEL_MODEL_VITATV
Definition: sysmem.h:64
VITASDK_BUILD_ASSERT_EQ(0x40, SceKernelAllocMemBlockOpt)
uint32_t SceUInt32
Definition: types.h:45