Rev 2330 | Rev 6084 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2330 | Rev 3031 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | 22 | ||
23 | #ifndef _INTEL_DVO_H |
23 | #ifndef _INTEL_DVO_H |
Line 24... | Line 24... | ||
24 | #define _INTEL_DVO_H |
24 | #define _INTEL_DVO_H |
25 | 25 | ||
26 | #include |
- | |
27 | #include "drmP.h" |
26 | #include |
28 | #include "drm.h" |
27 | #include |
Line 29... | Line 28... | ||
29 | #include "drm_crtc.h" |
28 | #include |
30 | #include "intel_drv.h" |
29 | #include "intel_drv.h" |
31 | 30 | ||
Line 56... | Line 55... | ||
56 | * RandR objects have been created. |
55 | * RandR objects have been created. |
57 | */ |
56 | */ |
58 | void (*create_resources)(struct intel_dvo_device *dvo); |
57 | void (*create_resources)(struct intel_dvo_device *dvo); |
Line 59... | Line 58... | ||
59 | 58 | ||
60 | /* |
59 | /* |
61 | * Turn on/off output or set intermediate power levels if available. |
60 | * Turn on/off output. |
62 | * |
61 | * |
63 | * Unsupported intermediate modes drop to the lower power setting. |
- | |
64 | * If the mode is DPMSModeOff, the output must be disabled, |
62 | * Because none of our dvo drivers support an intermediate power levels, |
65 | * as the DPLL may be disabled afterwards. |
63 | * we don't expose this in the interfac. |
66 | */ |
64 | */ |
Line 67... | Line 65... | ||
67 | void (*dpms)(struct intel_dvo_device *dvo, int mode); |
65 | void (*dpms)(struct intel_dvo_device *dvo, bool enable); |
68 | 66 | ||
69 | /* |
67 | /* |
70 | * Callback for testing a video mode for a given output. |
68 | * Callback for testing a video mode for a given output. |
Line 84... | Line 82... | ||
84 | * This allows an output to adjust the clock or even the entire set of |
82 | * This allows an output to adjust the clock or even the entire set of |
85 | * timings, which is used for panels with fixed timings or for |
83 | * timings, which is used for panels with fixed timings or for |
86 | * buses with clock limitations. |
84 | * buses with clock limitations. |
87 | */ |
85 | */ |
88 | bool (*mode_fixup)(struct intel_dvo_device *dvo, |
86 | bool (*mode_fixup)(struct intel_dvo_device *dvo, |
89 | struct drm_display_mode *mode, |
87 | const struct drm_display_mode *mode, |
90 | struct drm_display_mode *adjusted_mode); |
88 | struct drm_display_mode *adjusted_mode); |
Line 91... | Line 89... | ||
91 | 89 | ||
92 | /* |
90 | /* |
93 | * Callback for preparing mode changes on an output |
91 | * Callback for preparing mode changes on an output |
Line 113... | Line 111... | ||
113 | /* |
111 | /* |
114 | * Probe for a connected output, and return detect_status. |
112 | * Probe for a connected output, and return detect_status. |
115 | */ |
113 | */ |
116 | enum drm_connector_status (*detect)(struct intel_dvo_device *dvo); |
114 | enum drm_connector_status (*detect)(struct intel_dvo_device *dvo); |
Line -... | Line 115... | ||
- | 115 | ||
- | 116 | /* |
|
- | 117 | * Probe the current hw status, returning true if the connected output |
|
- | 118 | * is active. |
|
- | 119 | */ |
|
- | 120 | bool (*get_hw_state)(struct intel_dvo_device *dev); |
|
117 | 121 | ||
118 | /** |
122 | /** |
119 | * Query the device for the modes it provides. |
123 | * Query the device for the modes it provides. |
120 | * |
124 | * |
121 | * This function may also update MonInfo, mm_width, and mm_height. |
125 | * This function may also update MonInfo, mm_width, and mm_height. |
Line 138... | Line 142... | ||
138 | extern struct intel_dvo_dev_ops sil164_ops; |
142 | extern struct intel_dvo_dev_ops sil164_ops; |
139 | extern struct intel_dvo_dev_ops ch7xxx_ops; |
143 | extern struct intel_dvo_dev_ops ch7xxx_ops; |
140 | extern struct intel_dvo_dev_ops ivch_ops; |
144 | extern struct intel_dvo_dev_ops ivch_ops; |
141 | extern struct intel_dvo_dev_ops tfp410_ops; |
145 | extern struct intel_dvo_dev_ops tfp410_ops; |
142 | extern struct intel_dvo_dev_ops ch7017_ops; |
146 | extern struct intel_dvo_dev_ops ch7017_ops; |
- | 147 | extern struct intel_dvo_dev_ops ns2501_ops; |
|
Line 143... | Line 148... | ||
143 | 148 |