diff options
author | Keith Packard <keithp@mandolin.keithp.com> | 2006-12-06 00:13:57 -0800 |
---|---|---|
committer | Keith Packard <keithp@mandolin.keithp.com> | 2006-12-06 00:13:57 -0800 |
commit | 56f71194157ef929b62fe34a89c840bd59e56301 (patch) | |
tree | f55491abc5de7debabf2af225a78c00df647814d /src/i830_crt.c | |
parent | ffd8aacbe7c72b696ff7257609e3c1d45c057609 (diff) |
Use xf86 structures for default config instead of RandR.
To avoid requiring RandR 1.2 in the X server, use the
xf86 Crtc and Output structures as the basis for the default configuration
computation (and, eventually, the config-file based configuration as well).
Diffstat (limited to 'src/i830_crt.c')
-rw-r--r-- | src/i830_crt.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/i830_crt.c b/src/i830_crt.c index bf23f9eb..1bb52d41 100644 --- a/src/i830_crt.c +++ b/src/i830_crt.c @@ -272,7 +272,7 @@ i830_crt_detect_ddc(xf86OutputPtr output) * @param allow_disturb enables detection methods that may cause flickering * on active displays. */ -static enum detect_status +static xf86OutputStatus i830_crt_detect(xf86OutputPtr output) { ScrnInfoPtr pScrn = output->scrn; @@ -281,13 +281,13 @@ i830_crt_detect(xf86OutputPtr output) if (IS_I945G(pI830) || IS_I945GM(pI830) || IS_I965G(pI830)) { if (i830_crt_detect_hotplug(output)) - return OUTPUT_STATUS_CONNECTED; + return XF86OutputStatusConnected; else - return OUTPUT_STATUS_DISCONNECTED; + return XF86OutputStatusDisconnected; } if (i830_crt_detect_ddc(output)) - return OUTPUT_STATUS_CONNECTED; + return XF86OutputStatusConnected; /* Use the load-detect method if we have no other way of telling. */ crtc = i830GetLoadDetectPipe (output); @@ -318,12 +318,12 @@ i830_crt_detect(xf86OutputPtr output) i830ReleaseLoadDetectPipe (output); if (connected) - return OUTPUT_STATUS_CONNECTED; + return XF86OutputStatusConnected; else - return OUTPUT_STATUS_DISCONNECTED; + return XF86OutputStatusDisconnected; } - return OUTPUT_STATUS_UNKNOWN; + return XF86OutputStatusUnknown; } static DisplayModePtr @@ -337,7 +337,7 @@ i830_crt_get_modes(xf86OutputPtr output) if (modes != NULL) return modes; - if ((*output->funcs->detect)(output) == OUTPUT_STATUS_DISCONNECTED) + if ((*output->funcs->detect)(output) == XF86OutputStatusDisconnected) return NULL; /* We've got a potentially-connected monitor that we can't DDC. Return a @@ -393,6 +393,7 @@ i830_crt_init(ScrnInfoPtr pScrn) return; } i830_output->type = I830_OUTPUT_ANALOG; + output->driver_private = i830_output; /* Set up the DDC bus. */ |