update to latest vita-headers

This commit is contained in:
2025-06-22 21:02:09 +02:00
parent e0258aa945
commit 3c273d6daf
18 changed files with 1171 additions and 28 deletions
+21
View File
@@ -0,0 +1,21 @@
package kernel
import "core:c"
import sce "../common"
foreign import threadmgr "system:SceThreadmgrForDriver_stub"
foreign threadmgr {
ksceKernelInitializeFastMutex :: proc(fast_mutex: ^SceKernelFastMutex, name: cstring, attr: c.int, opt: rawptr) -> c.int ---
ksceKernelFinalizeFastMutex :: proc(fast_mutex: ^SceKernelFastMutex) -> c.int ---
ksceKernelLockFastMutex :: proc(fast_mutex: ^SceKernelFastMutex) -> c.int ---
ksceKernelTryLockFastMutex :: proc(fast_mutex: ^SceKernelFastMutex) -> c.int ---
ksceKernelUnlockFastMutex :: proc(fast_mutex: ^SceKernelFastMutex) -> c.int ---
ksceKernelGetFastMutexInfo :: proc(fast_mutex: ^SceKernelFastMutex, info: rawptr) -> c.int ---
}
/* backward compatibility */
ksceKernelDeleteFastMutex :: ksceKernelFinalizeFastMutex
+24
View File
@@ -0,0 +1,24 @@
package kernel
import "core:c"
import sce "../common"
foreign import vfp "SceKernelThreadMgr_stub"
foreign vfp {
sceKernelChangeThreadVfpException :: proc(clear: sce.UInt32, set: sce.UInt32) -> c.int ---
}
foreign import vfpKern "SceThreadmgrForDriver_stub"
foreign vfpKern {
/**Add commentMore actions
* @brief Change the current thread vfp exception mask
*
* @param[in] clear - The value to clear flag. ORed `SCE_KERNEL_VFP_EXCP_*`
* @param[in] set - The value to set flag. ORed `SCE_KERNEL_VFP_EXCP_*`
*
* @return SCE_OK on success, < 0 on error
*/
ksceKernelChangeThreadVfpException :: proc(clear: sce.UInt32, set: sce.UInt32) -> c.int ---
}
+13
View File
@@ -0,0 +1,13 @@
package kernel
import "core:c"
import sce "../common"
foreign import sdif "SceSdifForDriver"
foreign sdif {
ksceSdifGetSdContextPartValidateMmc :: proc(dev_index: SceSdifDeviceIndex) -> ^SceSdifDeviceContext ---
ksceSdifInitializeMmcDevice :: proc(dev_index: SceSdifDeviceIndex, dev_ctx: ^SceSdifDeviceContext) -> c.int ---
ksceSdifWriteCmd56 :: proc(dev_ctx: ^SceSdifDeviceContext, buf: rawptr, size: sce.Size) -> c.int ---
ksceSdifReadCmd56 :: proc(dev_ctx: ^SceSdifDeviceContext, buf: rawptr, size: sce.Size) -> c.int ---
}
+41
View File
@@ -950,3 +950,44 @@ SceKernelMemoryType :: enum c.int {
// sysmem.h end
//
//
// fastmutex.h start
//
SceKernelFastMutex :: struct {
data: [0x40]sce.UInt8,
}
#assert(size_of(SceKernelFastMutex) == 0x40)
//
// fastmutex.h end
//
SceSdifDeviceIndex :: enum {
EMMC = 0x0,
GC = 0x1,
SDIO = 0x2,
SD = 0x3,
}
SceSdifDeviceType :: enum {
INVALID = 0x0,
MMC = 0x1,
SD = 0x2,
SDIO = 0x3,
}
SceSdifDeviceContext :: rawptr
/*
* Value linked to fpcsr
*/
SCE_KERNEL_VFP_EXCP_IOC :: (0x00000001)
SCE_KERNEL_VFP_EXCP_DZC :: (0x00000002)
SCE_KERNEL_VFP_EXCP_OFC :: (0x00000004)
SCE_KERNEL_VFP_EXCP_UFC :: (0x00000008)
SCE_KERNEL_VFP_EXCP_IXC :: (0x00000010)
SCE_KERNEL_VFP_EXCP_IDC :: (0x00000080)
SCE_KERNEL_VFP_EXCP_QC :: (0x08000000)
SCE_KERNEL_VFP_EXCP_ALL :: (SCE_KERNEL_VFP_EXCP_IOC | SCE_KERNEL_VFP_EXCP_DZC | SCE_KERNEL_VFP_EXCP_OFC | SCE_KERNEL_VFP_EXCP_UFC | SCE_KERNEL_VFP_EXCP_IXC | SCE_KERNEL_VFP_EXCP_IDC | SCE_KERNEL_VFP_EXCP_QC)