vitasdk
Documentation of the vitasdk
memtype.h
Go to the documentation of this file.
1
6
#ifndef _PSP2KERN_KERNEL_SYSMEM_MEMTYPE_H_
7
#define _PSP2KERN_KERNEL_SYSMEM_MEMTYPE_H_
8
9
#include <
psp2kern/types.h
>
10
#include <
psp2common/kernel/sysmem.h
>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
17
/*
18
* The user memtypes that only the Kernel can allocate
19
*/
20
21
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_SHARED_MAIN_R (0x0320D040)
22
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_SHARED_MAIN_RX (0x0320D050)
23
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_SHARED_MAIN_RW (0x0320D060)
24
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_SHARED_SHARED_R (0x0390D040)
25
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_SHARED_SHARED_RX (0x0390D050)
26
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_SHARED_SHARED_RW (0x0390D060)
27
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_SHARED_CDIALOG_R (0x03A0D040)
28
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_SHARED_CDIALOG_RX (0x03A0D050)
29
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_SHARED_CDIALOG_RW (0x03A0D060)
30
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_SHARED_TOOL_R (0x03F0D040)
31
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_SHARED_TOOL_RX (0x03F0D050)
32
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_SHARED_TOOL_RW (0x03F0D060)
33
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_IO_SO_R (0x0B100240)
34
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_IO_SO_RW (0x0B100260)
35
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_IO_DEVICE_R (0x0B100840)
36
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_IO_DEVICE_RW (0x0B100860)
37
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_TOOL_R (0x08F0D040)
38
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_TOOL_RX (0x08F0D050)
39
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_TOOL_RW (0x08F0D060)
40
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_TOOL_UNK_RW (0x08F0D006)
41
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_RX (0x0C20D050)
42
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_R (0x0C80D040)
43
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_NC_R (0x0D808040)
44
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_TOOL_RX (0x0CF0D050)
45
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_CDIALOG_RX (0x0E20D050)
46
47
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_UNK_0720D006_RW (0x0720D006)
/* SCE_KERNEL_ERROR_ILLEGAL_PARTITION_INDEX */
48
49
50
/*
51
* The kernel memtypes that only the Kernel can allocate
52
*/
53
54
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_SO_RW (0x10200206)
55
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_DEVICE_RW (0x10200806)
56
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_L1WBWA_RW (0x10204006)
57
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_NC_R (0x10208004)
58
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_NC_RW (0x10208006)
59
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_R (0x1020D004)
60
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_RX (0x1020D005)
61
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_RW (0x1020D006)
62
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_PHYCONT_R (0x1080D004)
63
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_PHYCONT_RW (0x1080D006)
64
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_PHYCONT_NC_R (0x30808004)
65
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_PHYCONT_NC_RW (0x30808006)
66
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_GAME_RW (0x1050D006)
67
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_CDIALOG_R (0x10A0D004)
68
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_CDIALOG_RW (0x10A0D006)
69
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_UMAIN_NC_RW (0x10C08006)
70
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_ROOT_UMAIN_RW (0x10C0D006)
71
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TOOL_R (0x10F0D004)
72
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TOOL_RX (0x10F0D005)
73
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TOOL_RW (0x10F0D006)
74
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TOOL_NC_R (0x10F08004)
75
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TOOL_NC_RW (0x10F08006)
76
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TMP_FS_GAME_R (0x1220D004)
77
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TMP_FS_GAME_RW (0x1220D006)
78
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TMP_FS_GAME_NC_R (0x13208004)
79
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TMP_FS_GAME_NC_RW (0x13208006)
80
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_IO_SO_R (0x20100204)
81
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_IO_SO_RW (0x20100206)
82
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_IO_R (0x20100804)
83
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_IO_RW (0x20100806)
84
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_IO_NC_R (0x20108004)
85
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_IO_NC_RW (0x20108006)
86
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_CDRAM_L1WBWA_RW (0x40404006)
87
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_CDRAM_RW (0x40408006)
88
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TMP_NC_R (0x60208004)
89
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TMP_NC_RW (0x60208006)
90
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TMP_R (0x6020D004)
91
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TMP_RW (0x6020D006)
92
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_TMP_GAME_RW (0x6050D006)
93
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_KMP_GAME_RW (0xC050D006)
94
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_KMP_TOOL_RW (0xC0F0D006)
95
96
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_UNK_11208006_NC_RW (0x11208006)
// from ScePhyMemPartKD to SceKernelRootUncacheGpuGame
97
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_UNK_60208014_NC_R (0x60208014)
98
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_UNK_60208016_NC_RW (0x60208016)
99
100
101
/*
102
* For Backwards compatibility
103
*/
104
105
#define SCE_KERNEL_MEMBLOCK_TYPE_SHARED_RX (0x0390D050)
106
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_RX (0x0C20D050)
107
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_RX (0x1020D005)
108
#define SCE_KERNEL_MEMBLOCK_TYPE_KERNEL_RW (0x1020D006)
109
#define SCE_KERNEL_MEMBLOCK_TYPE_RW_UNK0 (0x6020D006)
110
111
112
#ifdef __cplusplus
113
}
114
#endif
115
116
#endif
/* _PSP2KERN_KERNEL_SYSMEM_MEMTYPE_H_ */
sysmem.h
types.h
include
psp2kern
kernel
sysmem
memtype.h
Vita SDK