vitasdk
Documentation of the vitasdk
sdstor.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2KERN_INTERNAL_SDSTOR_H_
7 #define _PSP2KERN_INTERNAL_SDSTOR_H_
8 
9 #include <psp2kern/types.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 /*
17  * Added this header to vita-headers to facilitate updates without being spread out to other separate projects.
18  */
19 
20 
21 typedef enum {
30 
31 typedef enum {
37 
38 typedef enum {
43 } SceSdstorSdpartKind; // maybe inaccurate
45 
46 typedef struct _SceSdstorSddev { // size is 0x54
55  void *sdif_ctx;
58 
59 typedef struct _SceSdstorPartitionEntry { // size is 0x1C
62  struct _SceSdstorSdpart *sdpart;
63  void *partition_entry; // in mbr buffer entry
64  char numeric_name[4];
72 
73 typedef struct _SceSdstorSdpart { // size is 0x238
75  SceUInt32 unk_40; // maybe sector size ?
77  SceUInt32 unk_48; // maybe sector size ?
80  void *mbr_ptr;
88 
89 /*
90  * setup on lookup
91  */
92 typedef struct _SceSdstorOpHandle { // size is 0xC
95  int unk_0x08;
98 
99 /*
100  * setup on open
101  */
102 typedef struct _SceSdstorFd { // size is 0x58
104  SceUInt32 unk_40; // maybe sector size?
107  int flags;
110 } SceSdstorFd;
112 
113 typedef struct _SceSdstorSdintr { // size is 0x28
114  int unk_0x00;
117  int unk_0x0C;
118  int unk_0x10;
119  SceUInt32 mediaid[4];
126 
127 
128 #ifdef __cplusplus
129 }
130 #endif
131 
132 #endif /* _PSP2KERN_INTERNAL_SDSTOR_H_ */
SceUInt8 kind
Definition: sdstor.h:48
SceSdstorSddev * sddev
Definition: sdstor.h:76
void * partition_entry
Definition: sdstor.h:63
SceUID request_id
Definition: sdstor.h:115
SceUInt32 unk_40
Definition: sdstor.h:75
SceUInt8 unk_0x27
Definition: sdstor.h:123
SceUInt16 unused
Definition: sdstor.h:68
SceSdstorSdpartPort port
Definition: sdstor.h:120
int unk_0x08
Definition: sdstor.h:95
int unk_0x10
Definition: sdstor.h:118
SceUInt8 prev_stat
Definition: sdstor.h:83
SceUInt32 n_sectors
Definition: sdstor.h:106
SceUInt8 unk_0x26
Definition: sdstor.h:122
SceUInt32 unk_44
Definition: sdstor.h:52
SceUInt8 unk_236
Definition: sdstor.h:84
int unk_0x00
Definition: sdstor.h:114
SceSdstorSdpartPort port
Definition: sdstor.h:49
SceUInt8 flag
Definition: sdstor.h:66
SceSdstorPartitionEntry * pentry
Definition: sdstor.h:93
SceUInt32 start_lba
Definition: sdstor.h:105
struct _SceSdstorSdpart * sdpart
Definition: sdstor.h:62
SceSdstorSdpartPort
Definition: sdstor.h:21
void * mbr_ptr
Definition: sdstor.h:80
SceUInt8 stat
Definition: sdstor.h:121
SceUInt16 unk
Definition: sdstor.h:69
SceUInt32 n_sectors
Definition: sdstor.h:61
SceUInt32 unk_40
Definition: sdstor.h:104
SceUInt8 prev_stat
Definition: sdstor.h:51
int unk_0x0C
Definition: sdstor.h:117
SceUInt8 stat
Definition: sdstor.h:82
int flags
Definition: sdstor.h:107
SceUInt8 unk_237
Definition: sdstor.h:85
SceKernelFastMutex fastmutex
Definition: sdstor.h:47
SceKernelFastMutex fastmutex
Definition: sdstor.h:74
SceUInt32 unk_4C
Definition: sdstor.h:78
SceSdstorSddev * sddev
Definition: sdstor.h:109
SceSdstorSdpartKind
Definition: sdstor.h:38
SceSdstorPartitionEntry * pentry
Definition: sdstor.h:108
SceSdstorSdpartStat
Definition: sdstor.h:31
SceUInt32 unk_50
Definition: sdstor.h:79
SceUInt32 unk_48
Definition: sdstor.h:77
SceSdstorSddev * sddev
Definition: sdstor.h:94
SceKernelFastMutex fastmutex
Definition: sdstor.h:103
SceUInt32 unk_48
Definition: sdstor.h:53
void * sdif_ctx
Definition: sdstor.h:55
SceUID op_sync_id
Definition: sdstor.h:116
SceUInt8 stat
Definition: sdstor.h:50
SceUInt32 unk_4C
Definition: sdstor.h:54
VITASDK_BUILD_ASSERT_EQ(1, SceSdstorSdpartPort)
SceUInt32 start_lba
Definition: sdstor.h:60
SceUInt8 type
Definition: sdstor.h:65
SceUInt16 acl
Definition: sdstor.h:67
@ SCE_SDSTOR_SDPART_PORT_PSUDO_MC
Definition: sdstor.h:27
@ SCE_SDSTOR_SDPART_PORT_EMMC
Definition: sdstor.h:22
@ SCE_SDSTOR_SDPART_PORT_RM
Definition: sdstor.h:24
@ SCE_SDSTOR_SDPART_PORT_GC
Definition: sdstor.h:23
@ SCE_SDSTOR_SDPART_PORT_UMA
Definition: sdstor.h:25
@ SCE_SDSTOR_SDPART_PORT_USD
Definition: sdstor.h:26
@ SCE_SDSTOR_SDPART_KIND_RM
Definition: sdstor.h:41
@ SCE_SDSTOR_SDPART_KIND_GC
Definition: sdstor.h:40
@ SCE_SDSTOR_SDPART_KIND_INVALID
Definition: sdstor.h:39
@ SCE_SDSTOR_SDPART_KIND_USD
Definition: sdstor.h:42
@ SCE_SDSTOR_SDPART_STAT_IGN
Definition: sdstor.h:34
@ SCE_SDSTOR_SDPART_STAT_INA
Definition: sdstor.h:32
@ SCE_SDSTOR_SDPART_STAT_ACT
Definition: sdstor.h:33
Definition: sdstor.h:102
Definition: sdstor.h:92
Definition: sdstor.h:59
Definition: sdstor.h:46
Definition: sdstor.h:113
Definition: sdstor.h:73
Definition: fast_mutex.h:18
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
uint8_t SceUInt8
Definition: types.h:36