added kernel libraries bindings and cleaned up todos

This commit is contained in:
2024-05-12 16:16:15 +02:00
parent e9824cbd95
commit 8a5e2870f6
68 changed files with 3278 additions and 92 deletions
+15
View File
@@ -0,0 +1,15 @@
package gpues4
import "core:c"
import sce "../common"
foreign import gpues4 "system:SceGpuEs4ForDriver_stub"
foreign gpues4 {
PVRSRVGetMiscInfoKM :: proc(info: rawptr) -> c.int ---
ksceGpuGetRegisterDump :: proc(dst: rawptr, size: sce.Size) -> c.int ---
ksceGpuMmuMapMemory :: proc(mmuContext: rawptr, vaddr: c.uint32_t, base: rawptr, size: c.uint32_t, flags: c.uint32_t) -> c.int ---
ksceGpuMmuUnmapMemory :: proc(mmuContext: rawptr, vaddr: c.uint32_t, size: c.uint32_t) -> c.int ---
}