VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.13.0/xf86DDC.h@ 58378

最後變更 在這個檔案從58378是 43251,由 vboxsync 提交於 12 年 前

Additions/x11: added headers for X.Org Server 1.13.

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.5 KB
 
1
2/* xf86DDC.h
3 *
4 * This file contains all information to interpret a standard EDIC block
5 * transmitted by a display device via DDC (Display Data Channel). So far
6 * there is no information to deal with optional EDID blocks.
7 * DDC is a Trademark of VESA (Video Electronics Standard Association).
8 *
9 * Copyright 1998 by Egbert Eich <[email protected]>
10 */
11
12#ifndef XF86_DDC_H
13#define XF86_DDC_H
14
15#include "edid.h"
16#include "xf86i2c.h"
17#include "xf86str.h"
18
19/* speed up / slow down */
20typedef enum {
21 DDC_SLOW,
22 DDC_FAST
23} xf86ddcSpeed;
24
25typedef void (*DDC1SetSpeedProc) (ScrnInfoPtr, xf86ddcSpeed);
26
27extern _X_EXPORT xf86MonPtr xf86DoEDID_DDC1(ScrnInfoPtr pScrn,
28 DDC1SetSpeedProc DDC1SetSpeed,
29 unsigned
30 int (*DDC1Read) (ScrnInfoPtr)
31 );
32
33extern _X_EXPORT xf86MonPtr xf86DoEDID_DDC2(ScrnInfoPtr pScrn, I2CBusPtr pBus);
34
35extern _X_EXPORT xf86MonPtr xf86DoEEDID(ScrnInfoPtr pScrn, I2CBusPtr pBus, Bool);
36
37extern _X_EXPORT xf86MonPtr xf86PrintEDID(xf86MonPtr monPtr);
38
39extern _X_EXPORT xf86MonPtr xf86InterpretEDID(int screenIndex, Uchar * block);
40
41extern _X_EXPORT xf86MonPtr xf86InterpretEEDID(int screenIndex, Uchar * block);
42
43extern _X_EXPORT void
44 xf86EdidMonitorSet(int scrnIndex, MonPtr Monitor, xf86MonPtr DDC);
45
46extern _X_EXPORT Bool xf86SetDDCproperties(ScrnInfoPtr pScreen, xf86MonPtr DDC);
47
48extern _X_EXPORT DisplayModePtr xf86DDCGetModes(int scrnIndex, xf86MonPtr DDC);
49
50extern _X_EXPORT Bool
51 xf86MonitorIsHDMI(xf86MonPtr mon);
52
53extern _X_EXPORT xf86MonPtr xf86DoDisplayID(ScrnInfoPtr pScrn, I2CBusPtr pBus);
54
55extern _X_EXPORT void
56 xf86DisplayIDMonitorSet(int scrnIndex, MonPtr mon, xf86MonPtr DDC);
57
58extern _X_EXPORT DisplayModePtr
59FindDMTMode(int hsize, int vsize, int refresh, Bool rb);
60
61extern _X_EXPORT const DisplayModeRec DMTModes[];
62
63/*
64 * Quirks to work around broken EDID data from various monitors.
65 */
66typedef enum {
67 DDC_QUIRK_NONE = 0,
68 /* First detailed mode is bogus, prefer largest mode at 60hz */
69 DDC_QUIRK_PREFER_LARGE_60 = 1 << 0,
70 /* 135MHz clock is too high, drop a bit */
71 DDC_QUIRK_135_CLOCK_TOO_HIGH = 1 << 1,
72 /* Prefer the largest mode at 75 Hz */
73 DDC_QUIRK_PREFER_LARGE_75 = 1 << 2,
74 /* Convert detailed timing's horizontal from units of cm to mm */
75 DDC_QUIRK_DETAILED_H_IN_CM = 1 << 3,
76 /* Convert detailed timing's vertical from units of cm to mm */
77 DDC_QUIRK_DETAILED_V_IN_CM = 1 << 4,
78 /* Detailed timing descriptors have bogus size values, so just take the
79 * maximum size and use that.
80 */
81 DDC_QUIRK_DETAILED_USE_MAXIMUM_SIZE = 1 << 5,
82 /* Monitor forgot to set the first detailed is preferred bit. */
83 DDC_QUIRK_FIRST_DETAILED_PREFERRED = 1 << 6,
84 /* use +hsync +vsync for detailed mode */
85 DDC_QUIRK_DETAILED_SYNC_PP = 1 << 7,
86 /* Force single-link DVI bandwidth limit */
87 DDC_QUIRK_DVI_SINGLE_LINK = 1 << 8,
88} ddc_quirk_t;
89
90typedef void (*handle_detailed_fn) (struct detailed_monitor_section *, void *);
91
92void xf86ForEachDetailedBlock(xf86MonPtr mon, handle_detailed_fn, void *data);
93
94ddc_quirk_t xf86DDCDetectQuirks(int scrnIndex, xf86MonPtr DDC, Bool verbose);
95
96void xf86DetTimingApplyQuirks(struct detailed_monitor_section *det_mon,
97 ddc_quirk_t quirks, int hsize, int vsize);
98
99typedef void (*handle_video_fn) (struct cea_video_block *, void *);
100
101void xf86ForEachVideoBlock(xf86MonPtr, handle_video_fn, void *);
102
103#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette