2004-04-23 21:54:30 +02:00
|
|
|
/* $XFree86: xc/programs/Xserver/hw/xfree86/ddc/xf86DDC.h,v 1.10 2000/06/07 22:03:09 tsi Exp $ */
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
/* xf86DDC.h
|
|
|
|
*
|
|
|
|
* This file contains all information to interpret a standard EDIC block
|
|
|
|
* transmitted by a display device via DDC (Display Data Channel). So far
|
|
|
|
* there is no information to deal with optional EDID blocks.
|
|
|
|
* DDC is a Trademark of VESA (Video Electronics Standard Association).
|
|
|
|
*
|
|
|
|
* Copyright 1998 by Egbert Eich <Egbert.Eich@Physik.TU-Darmstadt.DE>
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef XF86_DDC_H
|
|
|
|
# define XF86_DDC_H
|
|
|
|
|
|
|
|
#include "edid.h"
|
|
|
|
#include "xf86i2c.h"
|
|
|
|
#include "xf86str.h"
|
|
|
|
|
|
|
|
/* speed up / slow down */
|
|
|
|
typedef enum {
|
|
|
|
DDC_SLOW,
|
|
|
|
DDC_FAST
|
|
|
|
} xf86ddcSpeed;
|
|
|
|
|
2004-08-03 11:33:54 +02:00
|
|
|
typedef void (* DDC1SetSpeedProc)(ScrnInfoPtr, xf86ddcSpeed);
|
2004-07-31 03:21:19 +02:00
|
|
|
|
2003-11-14 17:48:57 +01:00
|
|
|
extern xf86MonPtr xf86DoEDID_DDC1(
|
|
|
|
int scrnIndex,
|
2004-07-31 03:21:19 +02:00
|
|
|
DDC1SetSpeedProc DDC1SetSpeed,
|
2003-11-14 17:48:57 +01:00
|
|
|
unsigned int (*DDC1Read)(ScrnInfoPtr)
|
|
|
|
);
|
|
|
|
|
|
|
|
extern xf86MonPtr xf86DoEDID_DDC2(
|
|
|
|
int scrnIndex,
|
|
|
|
I2CBusPtr pBus
|
|
|
|
);
|
|
|
|
|
|
|
|
extern xf86MonPtr xf86PrintEDID(
|
|
|
|
xf86MonPtr monPtr
|
|
|
|
);
|
|
|
|
|
|
|
|
extern xf86MonPtr xf86InterpretEDID(
|
|
|
|
int screenIndex, Uchar *block
|
|
|
|
);
|
|
|
|
|
|
|
|
extern xf86vdifPtr xf86InterpretVdif(
|
|
|
|
CARD8 *c
|
|
|
|
);
|
|
|
|
|
|
|
|
extern Bool xf86SetDDCproperties(
|
|
|
|
ScrnInfoPtr pScreen,
|
|
|
|
xf86MonPtr DDC
|
|
|
|
);
|
|
|
|
|
|
|
|
extern void xf86print_vdif(
|
|
|
|
xf86vdifPtr v
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|