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
+12 -1
View File
@@ -3,7 +3,6 @@ package display
import "core:c"
import sce "../common"
// TODO: should be c.int
SceDisplayErrorCode :: enum c.uint {
OK = 0,
INVALID_HEAD = 0x80290000,
@@ -54,3 +53,15 @@ when size_of(rawptr) == 4 {
#assert(size_of(SceDisplayFrameBuf) == 0x18)
}
/**
* Extended framebuffer information
*/
SceDisplayFrameBufInfo :: struct {
size: sce.Size, //!< sizeof(SceDisplayFrameBufInfo)
pid: sce.UID, //!< PID of the process owning this framebuffer
vblankcount: c.uint, //!< Amount of VBlanks this framebuffer has been displayed
paddr: c.uintptr_t, //!< Physical address
framebuf: SceDisplayFrameBuf, //!< SceDisplayFrameBuf information
resolution: c.uint, //!< Resolution
}