Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /* $XFree86: xc/programs/Xserver/hw/xfree86/ddc/xf86DDC.h,v 1.10 2000/06/07 22:03:09 tsi Exp $ */
  2.  
  3. /* xf86DDC.h
  4.  *
  5.  * This file contains all information to interpret a standard EDIC block
  6.  * transmitted by a display device via DDC (Display Data Channel). So far
  7.  * there is no information to deal with optional EDID blocks.
  8.  * DDC is a Trademark of VESA (Video Electronics Standard Association).
  9.  *
  10.  * Copyright 1998 by Egbert Eich <Egbert.Eich@Physik.TU-Darmstadt.DE>
  11.  */
  12.  
  13.  
  14. #ifndef XF86_DDC_H
  15. # define XF86_DDC_H
  16.  
  17. #include "xf86i2c.h"
  18. #include "vdif.h"
  19.  
  20. //#include "xf86str.h"
  21.  
  22. /* speed up / slow down */
  23. typedef enum {
  24.   DDC_SLOW,
  25.   DDC_FAST
  26. } xf86ddcSpeed;
  27.  
  28. typedef void (* DDC1SetSpeedProc)(RHDPtr, xf86ddcSpeed);
  29.  
  30. extern xf86MonPtr xf86DoEDID_DDC1(
  31.     RHDPtr rhdPtr,
  32.     DDC1SetSpeedProc DDC1SetSpeed,
  33.     unsigned int (*DDC1Read)(RHDPtr)
  34. );
  35.  
  36. extern xf86MonPtr xf86DoEDID_DDC2(RHDPtr rhdPtr,I2CBusPtr pBus);
  37.  
  38. extern xf86MonPtr xf86PrintEDID(
  39.     xf86MonPtr monPtr
  40. );
  41.  
  42. extern xf86MonPtr xf86InterpretEDID(int scrnIndex, Uchar *block);
  43.  
  44. extern xf86vdifPtr xf86InterpretVdif(
  45.     CARD8 *c
  46. );
  47.  
  48. extern Bool xf86SetDDCproperties(
  49.     RHDPtr rhdPtr,
  50.     xf86MonPtr DDC
  51. );
  52.  
  53. extern void xf86print_vdif(
  54.     xf86vdifPtr v
  55. );
  56.  
  57.  
  58. #endif
  59.  
  60.  
  61.