root/drivers/staging/sm750fb/ddk750_dvi.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0 */
   2 #ifndef DDK750_DVI_H__
   3 #define DDK750_DVI_H__
   4 
   5 /* dvi chip stuffs structros */
   6 
   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);
  17 
  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 
  28 /* Structure to hold all the function pointer to the DVI Controller. */
  29 struct dvi_ctrl_device {
  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;
  40 };
  41 
  42 #define DVI_CTRL_SII164
  43 
  44 /* dvi functions prototype */
  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);
  55 
  56 #endif
  57 

/* [<][>][^][v][top][bottom][index][help] */