add a standard connector type and name for us as an output property
This commit is contained in:
parent
2e31872e05
commit
8ba5e8d820
|
@ -1738,3 +1738,12 @@ xf86OutputGetEDID (xf86OutputPtr output, I2CBusPtr pDDCBus)
|
|||
|
||||
return xf86DoEDID_DDC2 (scrn->scrnIndex, pDDCBus);
|
||||
}
|
||||
|
||||
static char *_xf86ConnectorNames[] = { "None", "VGA", "DVI-I", "DVI-D",
|
||||
"DVI-A", "Composite", "S-Video",
|
||||
"Component", "LFP", "Proprietary" };
|
||||
char *
|
||||
xf86ConnectorGetName(xf86ConnectorType connector)
|
||||
{
|
||||
return _xf86ConnectorNames[connector];
|
||||
}
|
||||
|
|
|
@ -41,6 +41,20 @@
|
|||
typedef struct _xf86Crtc xf86CrtcRec, *xf86CrtcPtr;
|
||||
typedef struct _xf86Output xf86OutputRec, *xf86OutputPtr;
|
||||
|
||||
/* define a standard for connector types */
|
||||
typedef enum _xf86ConnectorType {
|
||||
XF86ConnectorNone,
|
||||
XF86ConnectorVGA,
|
||||
XF86ConnectorDVI_I,
|
||||
XF86ConnectorDVI_D,
|
||||
XF86ConnectorDVI_A,
|
||||
XF86ConnectorComposite,
|
||||
XF86ConnectorSvideo,
|
||||
XF86ConnectorComponent,
|
||||
XF86ConnectorLFP,
|
||||
XF86ConnectorProprietary,
|
||||
} xf86ConnectorType;
|
||||
|
||||
typedef enum _xf86OutputStatus {
|
||||
XF86OutputStatusConnected,
|
||||
XF86OutputStatusDisconnected,
|
||||
|
@ -618,4 +632,10 @@ xf86DiDGAReInit (ScreenPtr pScreen);
|
|||
void
|
||||
xf86CrtcSetScreenSubpixelOrder (ScreenPtr pScreen);
|
||||
|
||||
/*
|
||||
* Get a standard string name for a connector type
|
||||
*/
|
||||
char *
|
||||
xf86ConnectorGetName(xf86ConnectorType connector);
|
||||
|
||||
#endif /* _XF86CRTC_H_ */
|
||||
|
|
Loading…
Reference in New Issue
Block a user