diff options
author | Eric Anholt <eric@anholt.net> | 2006-12-18 15:57:44 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2006-12-18 15:57:44 -0800 |
commit | eedef7adc53dd8337d27c02551c5778fb43bae05 (patch) | |
tree | 67c1cc6c6d44dc76b625efda733fc2d6050daa0c /src/ch7xxx/ch7xxx.c | |
parent | 8983845f91cacf8110c70121e0f5f293fe443e6d (diff) |
Add a detect() function for DVO chips, and implement it on sil164.
Diffstat (limited to 'src/ch7xxx/ch7xxx.c')
-rw-r--r-- | src/ch7xxx/ch7xxx.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ch7xxx/ch7xxx.c b/src/ch7xxx/ch7xxx.c index b1e8cbd7..5bfb7c5b 100644 --- a/src/ch7xxx/ch7xxx.c +++ b/src/ch7xxx/ch7xxx.c @@ -25,6 +25,11 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **************************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <string.h> #include "xf86.h" #include "xf86_OSproc.h" @@ -32,6 +37,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "compiler.h" #include "miscstruct.h" #include "xf86i2c.h" +#include "i830_xf86Crtc.h" #define DPMS_SERVER #include <X11/extensions/dpms.h> @@ -173,6 +179,12 @@ out: return NULL; } +static xf86OutputStatus +ch7xxx_detect(I2CDevPtr d) +{ + return XF86OutputStatusUnknown; +} + static ModeStatus ch7xxx_mode_valid(I2CDevPtr d, DisplayModePtr mode) { @@ -275,6 +287,7 @@ ch7xxx_restore(I2CDevPtr d) I830I2CVidOutputRec CH7xxxVidOutput = { .init = ch7xxx_init, + .detect = ch7xxx_detect, .mode_valid = ch7xxx_mode_valid, .mode_set = ch7xxx_mode_set, .dpms = ch7xxx_dpms, |