summaryrefslogtreecommitdiff
path: root/include/kernel/lowio/dsi.h
blob: e34bbcd836ba171760e8cd5b0c7a6049fc707f7f (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
40
41
/*
	Vita Development Suite Libraries
*/

#ifndef _VDSUITE_KERNEL_LOWIO_DSI_H
#define _VDSUITE_KERNEL_LOWIO_DSI_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 sceDsiStartMaster(int head);
int sceDsiStopMaster(int head);
int sceDsiStopDisplay(int head);
int sceDsiSetLanesAndPixelSize(int head, int lanes, int pixelsize);
int sceDsiSetDisplayMode(int head, int vic);
int sceDsiQueryResolutionSize(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 /* _VDSUITE_KERNEL_LOWIO_DSI_H */