Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
81dee67e SM |
2 | #ifndef DDK750_DVI_H__ |
3 | #define DDK750_DVI_H__ | |
4 | ||
5 | /* dvi chip stuffs structros */ | |
6 | ||
c9750456 MD |
7 | typedef long (*PFN_DVICTRL_INIT)(unsigned char edgeSelect, |
8 | unsigned char busSelect, | |
9 | unsigned char dualEdgeClkSelect, | |
10 | unsigned char hsyncEnable, | |
11 | unsigned char vsyncEnable, | |
12 | unsigned char deskewEnable, | |
13 | unsigned char deskewSetting, | |
14 | unsigned char continuousSyncEnable, | |
15 | unsigned char pllFilterEnable, | |
16 | unsigned char pllFilterValue); | |
658373e5 | 17 | |
81dee67e SM |
18 | typedef void (*PFN_DVICTRL_RESETCHIP)(void); |
19 | typedef char* (*PFN_DVICTRL_GETCHIPSTRING)(void); | |
20 | typedef unsigned short (*PFN_DVICTRL_GETVENDORID)(void); | |
21 | typedef unsigned short (*PFN_DVICTRL_GETDEVICEID)(void); | |
22 | typedef void (*PFN_DVICTRL_SETPOWER)(unsigned char powerUp); | |
23 | typedef void (*PFN_DVICTRL_HOTPLUGDETECTION)(unsigned char enableHotPlug); | |
24 | typedef unsigned char (*PFN_DVICTRL_ISCONNECTED)(void); | |
25 | typedef unsigned char (*PFN_DVICTRL_CHECKINTERRUPT)(void); | |
26 | typedef void (*PFN_DVICTRL_CLEARINTERRUPT)(void); | |
27 | ||
81dee67e | 28 | /* Structure to hold all the function pointer to the DVI Controller. */ |
a43abee7 | 29 | typedef struct _dvi_ctrl_device_t { |
231fe7ca ND |
30 | PFN_DVICTRL_INIT pfnInit; |
31 | PFN_DVICTRL_RESETCHIP pfnResetChip; | |
32 | PFN_DVICTRL_GETCHIPSTRING pfnGetChipString; | |
33 | PFN_DVICTRL_GETVENDORID pfnGetVendorId; | |
34 | PFN_DVICTRL_GETDEVICEID pfnGetDeviceId; | |
35 | PFN_DVICTRL_SETPOWER pfnSetPower; | |
36 | PFN_DVICTRL_HOTPLUGDETECTION pfnEnableHotPlugDetection; | |
37 | PFN_DVICTRL_ISCONNECTED pfnIsConnected; | |
38 | PFN_DVICTRL_CHECKINTERRUPT pfnCheckInterrupt; | |
39 | PFN_DVICTRL_CLEARINTERRUPT pfnClearInterrupt; | |
81dee67e | 40 | } dvi_ctrl_device_t; |
81dee67e | 41 | |
658373e5 | 42 | #define DVI_CTRL_SII164 |
81dee67e SM |
43 | |
44 | /* dvi functions prototype */ | |
c9750456 MD |
45 | int dviInit(unsigned char edgeSelect, |
46 | unsigned char busSelect, | |
47 | unsigned char dualEdgeClkSelect, | |
48 | unsigned char hsyncEnable, | |
49 | unsigned char vsyncEnable, | |
50 | unsigned char deskewEnable, | |
51 | unsigned char deskewSetting, | |
52 | unsigned char continuousSyncEnable, | |
53 | unsigned char pllFilterEnable, | |
54 | unsigned char pllFilterValue); | |
81dee67e | 55 | |
81dee67e SM |
56 | #endif |
57 |