summaryrefslogtreecommitdiff
path: root/include/kernel/lowio/dsi.h
blob: 4400a68148b0a47df042366e5bac0281bf74386f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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	= (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_ */