diff options
Diffstat (limited to '')
-rw-r--r-- | include/kernel/lowio/dsi.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/kernel/lowio/dsi.h b/include/kernel/lowio/dsi.h new file mode 100644 index 0000000..5b6aa9e --- /dev/null +++ b/include/kernel/lowio/dsi.h @@ -0,0 +1,39 @@ +#ifndef _PSP2_KERN_LOWIO_DSI_H_ +#define _PSP2_KERN_LOWIO_DSI_H_ + +#include <psp2kern/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum SceDsiErrorCode { + SCE_DSI_ERROR_INVALID_HEAD = 0x803F0600, + SCE_DSI_ERROR_INVALID_STATE = 0x803F0601, + SCE_DSI_ERROR_INVALID_PARAM = 0x803F0602, + SCE_DSI_ERROR_HEAD_NOT_ENABLED = 0x803F0603, +} SceDsiErrorCode; + +typedef enum SceDsiHead { + SCE_DSI_HEAD_OLED_LCD = 0, + SCE_DSI_HEAD_HDMI = 1, +} SceDsiHead; + +int sceDsiEnableHead(int head); +int sceDsiDisableHead(int head); +int sceDsiSendBlankingPacket(int head); +int sceDsiSetLanesPixelsize(int head, int lanes, int pixelsize); +int sceDsiSetVic(int head, int vic); +int sceDsiGetVicResolution(int vic, int *width, int *height); +int sceDsiGetPixelclock(int head); +int sceDsiGenericShortWrite(int head, int param0, int param1, int param2); +int sceDsiGenericReadRequest(int head, int param, void *buff, unsigned int size); +int sceDsiDcsShortWrite(int head, unsigned short param0, int param1); +int sceDsiDcsRead(int head, unsigned short param, void *buff, unsigned int size); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_KERN_LOWIO_DSI_H_ */ + |