#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 = (int)0x803F0600, SCE_DSI_ERROR_INVALID_STATE = (int)0x803F0601, SCE_DSI_ERROR_INVALID_PARAM = (int)0x803F0602, SCE_DSI_ERROR_HEAD_NOT_ENABLED = (int)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 sceDsiSetLanesAndPixelSize(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_ */