]>
Commit | Line | Data |
---|---|---|
81dee67e SM |
1 | #ifndef DDK750_DVI_H__ |
2 | #define DDK750_DVI_H__ | |
3 | ||
4 | /* dvi chip stuffs structros */ | |
5 | ||
6 | typedef long (*PFN_DVICTRL_INIT)( | |
7 | 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); | |
17 | typedef void (*PFN_DVICTRL_RESETCHIP)(void); | |
18 | typedef char* (*PFN_DVICTRL_GETCHIPSTRING)(void); | |
19 | typedef unsigned short (*PFN_DVICTRL_GETVENDORID)(void); | |
20 | typedef unsigned short (*PFN_DVICTRL_GETDEVICEID)(void); | |
21 | typedef void (*PFN_DVICTRL_SETPOWER)(unsigned char powerUp); | |
22 | typedef void (*PFN_DVICTRL_HOTPLUGDETECTION)(unsigned char enableHotPlug); | |
23 | typedef unsigned char (*PFN_DVICTRL_ISCONNECTED)(void); | |
24 | typedef unsigned char (*PFN_DVICTRL_CHECKINTERRUPT)(void); | |
25 | typedef void (*PFN_DVICTRL_CLEARINTERRUPT)(void); | |
26 | ||
27 | ||
28 | ||
29 | /* Structure to hold all the function pointer to the DVI Controller. */ | |
30 | typedef struct _dvi_ctrl_device_t | |
31 | { | |
32 | PFN_DVICTRL_INIT pfnInit; | |
33 | PFN_DVICTRL_RESETCHIP pfnResetChip; | |
34 | PFN_DVICTRL_GETCHIPSTRING pfnGetChipString; | |
35 | PFN_DVICTRL_GETVENDORID pfnGetVendorId; | |
36 | PFN_DVICTRL_GETDEVICEID pfnGetDeviceId; | |
37 | PFN_DVICTRL_SETPOWER pfnSetPower; | |
38 | PFN_DVICTRL_HOTPLUGDETECTION pfnEnableHotPlugDetection; | |
39 | PFN_DVICTRL_ISCONNECTED pfnIsConnected; | |
40 | PFN_DVICTRL_CHECKINTERRUPT pfnCheckInterrupt; | |
41 | PFN_DVICTRL_CLEARINTERRUPT pfnClearInterrupt; | |
42 | } dvi_ctrl_device_t; | |
43 | #define DVI_CTRL_SII164 | |
44 | ||
45 | ||
46 | ||
47 | /* dvi functions prototype */ | |
48 | int dviInit( | |
49 | unsigned char edgeSelect, | |
50 | unsigned char busSelect, | |
51 | unsigned char dualEdgeClkSelect, | |
52 | unsigned char hsyncEnable, | |
53 | unsigned char vsyncEnable, | |
54 | unsigned char deskewEnable, | |
55 | unsigned char deskewSetting, | |
56 | unsigned char continuousSyncEnable, | |
57 | unsigned char pllFilterEnable, | |
58 | unsigned char pllFilterValue | |
59 | ); | |
60 | ||
61 | unsigned short dviGetVendorID(void); | |
62 | unsigned short dviGetDeviceID(void); | |
63 | ||
64 | ||
65 | ||
66 | #endif | |
67 |