From 0c5a9823ce93c2e38b854c351e0884b479c5ea9a Mon Sep 17 00:00:00 2001 From: Sergi Granell Date: Wed, 14 Feb 2018 19:18:07 +0100 Subject: Add DSI --- include/kernel/lowio/dsi.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 include/kernel/lowio/dsi.h (limited to 'include/kernel/lowio/dsi.h') 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 + +#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_ */ + -- cgit v1.2.3