2 * Copyright © 2006 Keith Packard
3 * Copyright © 2011 Aaron Plattner
5 * Permission to use, copy, modify, distribute, and sell this software and its
6 * documentation for any purpose is hereby granted without fee, provided that
7 * the above copyright notice appear in all copies and that both that copyright
8 * notice and this permission notice appear in supporting documentation, and
9 * that the name of the copyright holders not be used in advertising or
10 * publicity pertaining to distribution of the software without specific,
11 * written prior permission. The copyright holders make no representations
12 * about the suitability of this software for any purpose. It is provided "as
13 * is" without express or implied warranty.
15 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17 * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
29 #include "xf86Rename.h"
31 #include "xf86Modes.h"
32 #include "xf86Cursor.h"
35 #include "picturestr.h"
37 /* Compat definitions for older X Servers. */
39 #define M_T_PREFERRED 0x08
42 #define M_T_DRIVER 0x40
45 #define M_T_USERPREF 0x80
47 #ifndef HARDWARE_CURSOR_ARGB
48 #define HARDWARE_CURSOR_ARGB 0x00004000
51 typedef struct _xf86Crtc xf86CrtcRec, *xf86CrtcPtr;
52 typedef struct _xf86Output xf86OutputRec, *xf86OutputPtr;
54 /* define a standard for connector types */
55 typedef enum _xf86ConnectorType {
61 XF86ConnectorComposite,
63 XF86ConnectorComponent,
65 XF86ConnectorProprietary,
67 XF86ConnectorDisplayPort,
70 typedef enum _xf86OutputStatus {
71 XF86OutputStatusConnected,
72 XF86OutputStatusDisconnected,
73 XF86OutputStatusUnknown
76 typedef struct _xf86CrtcFuncs {
78 * Turns the crtc on/off, or sets intermediate power levels if available.
80 * Unsupported intermediate modes drop to the lower power setting. If the
81 * mode is DPMSModeOff, the crtc must be disabled sufficiently for it to
82 * be safe to call mode_set.
85 (*dpms) (xf86CrtcPtr crtc, int mode);
88 * Saves the crtc's state for restoration on VT switch.
91 (*save) (xf86CrtcPtr crtc);
94 * Restore's the crtc's state at VT switch.
97 (*restore) (xf86CrtcPtr crtc);
100 * Lock CRTC prior to mode setting, mostly for DRI.
101 * Returns whether unlock is needed
104 (*lock) (xf86CrtcPtr crtc);
107 * Unlock CRTC after mode setting, mostly for DRI
110 (*unlock) (xf86CrtcPtr crtc);
113 * Callback to adjust the mode to be set in the CRTC.
115 * This allows a CRTC to adjust the clock or even the entire set of
116 * timings, which is used for panels with fixed timings or for
117 * buses with clock limitations.
120 (*mode_fixup) (xf86CrtcPtr crtc,
121 DisplayModePtr mode, DisplayModePtr adjusted_mode);
124 * Prepare CRTC for an upcoming mode set.
127 (*prepare) (xf86CrtcPtr crtc);
130 * Callback for setting up a video mode after fixups have been made.
133 (*mode_set) (xf86CrtcPtr crtc,
135 DisplayModePtr adjusted_mode, int x, int y);
138 * Commit mode changes to a CRTC
141 (*commit) (xf86CrtcPtr crtc);
143 /* Set the color ramps for the CRTC to the given values. */
145 (*gamma_set) (xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
149 * Allocate the shadow area, delay the pixmap creation until needed
151 void *(*shadow_allocate) (xf86CrtcPtr crtc, int width, int height);
154 * Create shadow pixmap for rotation support
157 (*shadow_create) (xf86CrtcPtr crtc, void *data, int width, int height);
160 * Destroy shadow pixmap
163 (*shadow_destroy) (xf86CrtcPtr crtc, PixmapPtr pPixmap, void *data);
169 (*set_cursor_colors) (xf86CrtcPtr crtc, int bg, int fg);
172 * Set cursor position
175 (*set_cursor_position) (xf86CrtcPtr crtc, int x, int y);
181 (*show_cursor) (xf86CrtcPtr crtc);
187 (*hide_cursor) (xf86CrtcPtr crtc);
190 * Load monochrome image
193 (*load_cursor_image) (xf86CrtcPtr crtc, CARD8 *image);
199 (*load_cursor_argb) (xf86CrtcPtr crtc, CARD32 *image);
202 * Clean up driver-specific bits of the crtc
205 (*destroy) (xf86CrtcPtr crtc);
208 * Less fine-grained mode setting entry point for kernel modesetting
211 (*set_mode_major) (xf86CrtcPtr crtc, DisplayModePtr mode,
212 Rotation rotation, int x, int y);
215 * Callback for panning. Doesn't change the mode.
216 * Added in ABI version 2
219 (*set_origin) (xf86CrtcPtr crtc, int x, int y);
224 (*set_scanout_pixmap)(xf86CrtcPtr crtc, PixmapPtr pixmap);
226 } xf86CrtcFuncsRec, *xf86CrtcFuncsPtr;
228 #define XF86_CRTC_VERSION 5
237 * Associated ScrnInfo
242 * Desired state of this CRTC
244 * Set when this CRTC should be driving one or more outputs
251 * This reflects the mode as set in the CRTC currently
252 * It will be cleared when the VT is not active or
253 * during server startup
257 PixmapPtr rotatedPixmap;
263 * Locates this CRTC within the frame buffer
270 * This is set to the requested mode, independent of
271 * whether the VT is active. In particular, it receives
272 * the startup configured mode and saves the active mode
275 DisplayModeRec desiredMode;
276 Rotation desiredRotation;
277 int desiredX, desiredY;
279 /** crtc-specific functions */
280 const xf86CrtcFuncsRec *funcs;
285 * Holds driver-private information
287 void *driver_private;
289 #ifdef RANDR_12_INTERFACE
293 * When RandR 1.2 is available, this
294 * points at the associated crtc object
296 RRCrtcPtr randr_crtc;
302 * Current cursor is ARGB
306 * Track whether cursor is within CRTC range
308 Bool cursor_in_range;
310 * Track state of cursor associated with this CRTC
315 * Current transformation matrix
317 PictTransform crtc_to_framebuffer;
318 /* framebuffer_to_crtc was removed in ABI 2 */
319 struct pict_f_transform f_crtc_to_framebuffer; /* ABI 2 */
320 struct pict_f_transform f_framebuffer_to_crtc; /* ABI 2 */
321 PictFilterPtr filter; /* ABI 2 */
322 xFixed *params; /* ABI 2 */
323 int nparams; /* ABI 2 */
324 int filter_width; /* ABI 2 */
325 int filter_height; /* ABI 2 */
326 Bool transform_in_use;
327 RRTransformRec transform; /* ABI 2 */
328 Bool transformPresent; /* ABI 2 */
329 RRTransformRec desiredTransform; /* ABI 2 */
330 Bool desiredTransformPresent; /* ABI 2 */
332 * Bounding box in screen space
337 * TotalArea: total panning area, larger than CRTC's size
338 * TrackingArea: Area of the pointer for which the CRTC is panned
339 * border: Borders of the displayed CRTC area which induces panning if the pointer reaches them
340 * Added in ABI version 2
342 BoxRec panningTotalArea;
343 BoxRec panningTrackingArea;
344 INT16 panningBorder[4];
347 * Current gamma, especially useful after initial config.
348 * Added in ABI version 3
356 * Actual state of this CRTC
358 * Set to TRUE after modesetting, set to FALSE if no outputs are connected
359 * Added in ABI version 3
368 * Indicates that the driver is handling the transform, so the shadow
369 * surface should be disabled. The driver writes this field before calling
370 * xf86CrtcRotate to indicate that it is handling the transform (including
371 * rotation and reflection).
373 * Setting this flag also causes the server to stop adjusting the cursor
374 * image and position.
376 * Added in ABI version 4
378 Bool driverIsPerformingTransform;
380 /* Added in ABI version 5
382 PixmapPtr current_scanout;
385 typedef struct _xf86OutputFuncs {
387 * Called to allow the output a chance to create properties after the
388 * RandR objects have been created.
391 (*create_resources) (xf86OutputPtr output);
394 * Turns the output on/off, or sets intermediate power levels if available.
396 * Unsupported intermediate modes drop to the lower power setting. If the
397 * mode is DPMSModeOff, the output must be disabled, as the DPLL may be
398 * disabled afterwards.
401 (*dpms) (xf86OutputPtr output, int mode);
404 * Saves the output's state for restoration on VT switch.
407 (*save) (xf86OutputPtr output);
410 * Restore's the output's state at VT switch.
413 (*restore) (xf86OutputPtr output);
416 * Callback for testing a video mode for a given output.
418 * This function should only check for cases where a mode can't be supported
419 * on the output specifically, and not represent generic CRTC limitations.
421 * \return MODE_OK if the mode is valid, or another MODE_* otherwise.
424 (*mode_valid) (xf86OutputPtr output, DisplayModePtr pMode);
427 * Callback to adjust the mode to be set in the CRTC.
429 * This allows an output to adjust the clock or even the entire set of
430 * timings, which is used for panels with fixed timings or for
431 * buses with clock limitations.
434 (*mode_fixup) (xf86OutputPtr output,
435 DisplayModePtr mode, DisplayModePtr adjusted_mode);
438 * Callback for preparing mode changes on an output
441 (*prepare) (xf86OutputPtr output);
444 * Callback for committing mode changes on an output
447 (*commit) (xf86OutputPtr output);
450 * Callback for setting up a video mode after fixups have been made.
452 * This is only called while the output is disabled. The dpms callback
453 * must be all that's necessary for the output, to turn the output on
454 * after this function is called.
457 (*mode_set) (xf86OutputPtr output,
458 DisplayModePtr mode, DisplayModePtr adjusted_mode);
461 * Probe for a connected output, and return detect_status.
463 xf86OutputStatus(*detect) (xf86OutputPtr output);
466 * Query the device for the modes it provides.
468 * This function may also update MonInfo, mm_width, and mm_height.
470 * \return singly-linked list of modes or NULL if no modes found.
472 DisplayModePtr(*get_modes) (xf86OutputPtr output);
474 #ifdef RANDR_12_INTERFACE
476 * Callback when an output's property has changed.
479 (*set_property) (xf86OutputPtr output,
480 Atom property, RRPropertyValuePtr value);
482 #ifdef RANDR_13_INTERFACE
484 * Callback to get an updated property value
487 (*get_property) (xf86OutputPtr output, Atom property);
489 #ifdef RANDR_GET_CRTC_INTERFACE
491 * Callback to get current CRTC for a given output
493 xf86CrtcPtr(*get_crtc) (xf86OutputPtr output);
496 * Clean up driver-specific bits of the output
499 (*destroy) (xf86OutputPtr output);
500 } xf86OutputFuncsRec, *xf86OutputFuncsPtr;
502 #define XF86_OUTPUT_VERSION 2
511 * Associated ScrnInfo
516 * Currently connected crtc (if any)
518 * If this output is not in use, this field will be NULL.
523 * Possible CRTCs for this output as a mask of crtc indices
525 CARD32 possible_crtcs;
528 * Possible outputs to share the same CRTC as a mask of output indices
530 CARD32 possible_clones;
533 * Whether this output can support interlaced modes
535 Bool interlaceAllowed;
538 * Whether this output can support double scan modes
540 Bool doubleScanAllowed;
543 * List of available modes on this output.
545 * This should be the list from get_modes(), plus perhaps additional
546 * compatible modes added later.
548 DisplayModePtr probed_modes;
551 * Options parsed from the related monitor section
553 OptionInfoPtr options;
556 * Configured monitor section
558 XF86ConfMonitorPtr conf_monitor;
561 * Desired initial position
563 int initial_x, initial_y;
566 * Desired initial rotation
568 Rotation initial_rotation;
571 * Current connection status
573 * This indicates whether a monitor is known to be connected
574 * to this output or not, or whether there is no way to tell
576 xf86OutputStatus status;
578 /** EDID monitor information */
581 /** subpixel order */
584 /** Physical size of the currently attached output device. */
585 int mm_width, mm_height;
590 /** output-specific functions */
591 const xf86OutputFuncsRec *funcs;
593 /** driver private information */
594 void *driver_private;
596 /** Whether to use the old per-screen Monitor config section */
597 Bool use_screen_monitor;
599 #ifdef RANDR_12_INTERFACE
601 * RandR 1.2 output structure.
603 * When RandR 1.2 is available, this points at the associated
604 * RandR output structure and is created when this output is created
606 RROutputPtr randr_output;
611 * Desired initial panning
612 * Added in ABI version 2
614 BoxRec initialTotalArea;
615 BoxRec initialTrackingArea;
616 INT16 initialBorder[4];
619 typedef struct _xf86ProviderFuncs {
621 * Called to allow the provider a chance to create properties after the
622 * RandR objects have been created.
625 (*create_resources) (ScrnInfoPtr scrn);
628 * Callback when an provider's property has changed.
631 (*set_property) (ScrnInfoPtr scrn,
632 Atom property, RRPropertyValuePtr value);
635 * Callback to get an updated property value
638 (*get_property) (ScrnInfoPtr provider, Atom property);
640 } xf86ProviderFuncsRec, *xf86ProviderFuncsPtr;
642 typedef struct _xf86CrtcConfigFuncs {
644 * Requests that the driver resize the screen.
646 * The driver is responsible for updating scrn->virtualX and scrn->virtualY.
647 * If the requested size cannot be set, the driver should leave those values
648 * alone and return FALSE.
650 * A naive driver that cannot reallocate the screen may simply change
651 * virtual[XY]. A more advanced driver will want to also change the
652 * devPrivate.ptr and devKind of the screen pixmap, update any offscreen
653 * pixmaps it may have moved, and change pScrn->displayWidth.
656 (*resize) (ScrnInfoPtr scrn, int width, int height);
657 } xf86CrtcConfigFuncsRec, *xf86CrtcConfigFuncsPtr;
659 typedef void (*xf86_crtc_notify_proc_ptr) (ScreenPtr pScreen);
661 typedef struct _xf86CrtcConfig {
663 xf86OutputPtr *output;
665 * compat_output is used whenever we deal
666 * with legacy code that only understands a single
667 * output. pScrn->modes will be loaded from this output,
668 * adjust frame will whack this output, etc.
675 int minWidth, minHeight;
676 int maxWidth, maxHeight;
678 /* For crtc-based rotation */
679 DamagePtr rotation_damage;
680 Bool rotation_damage_registered;
683 unsigned int dga_flags;
684 unsigned long dga_address;
685 DGAModePtr dga_modes;
687 int dga_width, dga_height, dga_stride;
688 DisplayModePtr dga_save_mode;
690 const xf86CrtcConfigFuncsRec *funcs;
692 CreateScreenResourcesProcPtr CreateScreenResources;
694 CloseScreenProcPtr CloseScreen;
696 /* Cursor information */
697 xf86CursorInfoPtr cursor_info;
701 CARD32 cursor_fg, cursor_bg;
704 * Options parsed from the related device section
706 OptionInfoPtr options;
710 /* wrap screen BlockHandler for rotation */
711 ScreenBlockHandlerProcPtr BlockHandler;
713 /* callback when crtc configuration changes */
714 xf86_crtc_notify_proc_ptr xf86_crtc_notify;
717 const xf86ProviderFuncsRec *provider_funcs;
718 #ifdef RANDR_12_INTERFACE
719 RRProviderPtr randr_provider;
721 void *randr_provider;
723 } xf86CrtcConfigRec, *xf86CrtcConfigPtr;
725 extern _X_EXPORT int xf86CrtcConfigPrivateIndex;
727 #define XF86_CRTC_CONFIG_PTR(p) ((xf86CrtcConfigPtr) ((p)->privates[xf86CrtcConfigPrivateIndex].ptr))
729 static _X_INLINE xf86OutputPtr
730 xf86CompatOutput(ScrnInfoPtr pScrn)
732 xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn);
734 return config->output[config->compat_output];
737 static _X_INLINE xf86CrtcPtr
738 xf86CompatCrtc(ScrnInfoPtr pScrn)
740 xf86OutputPtr compat_output = xf86CompatOutput(pScrn);
744 return compat_output->crtc;
747 static _X_INLINE RRCrtcPtr
748 xf86CompatRRCrtc(ScrnInfoPtr pScrn)
750 xf86CrtcPtr compat_crtc = xf86CompatCrtc(pScrn);
754 return compat_crtc->randr_crtc;
758 * Initialize xf86CrtcConfig structure
761 extern _X_EXPORT void
762 xf86CrtcConfigInit(ScrnInfoPtr scrn, const xf86CrtcConfigFuncsRec * funcs);
764 extern _X_EXPORT void
766 xf86CrtcSetSizeRange(ScrnInfoPtr scrn,
767 int minWidth, int minHeight, int maxWidth, int maxHeight);
772 extern _X_EXPORT xf86CrtcPtr
773 xf86CrtcCreate(ScrnInfoPtr scrn, const xf86CrtcFuncsRec * funcs);
775 extern _X_EXPORT void
776 xf86CrtcDestroy(xf86CrtcPtr crtc);
779 * Sets the given video mode on the given crtc
782 extern _X_EXPORT Bool
784 xf86CrtcSetModeTransform(xf86CrtcPtr crtc, DisplayModePtr mode,
785 Rotation rotation, RRTransformPtr transform, int x,
788 extern _X_EXPORT Bool
790 xf86CrtcSetMode(xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotation,
793 extern _X_EXPORT void
794 xf86CrtcSetOrigin(xf86CrtcPtr crtc, int x, int y);
797 * Assign crtc rotation during mode set
799 extern _X_EXPORT Bool
800 xf86CrtcRotate(xf86CrtcPtr crtc);
803 * Clean up any rotation data, used when a crtc is turned off
804 * as well as when rotation is disabled.
806 extern _X_EXPORT void
807 xf86RotateDestroy(xf86CrtcPtr crtc);
810 * free shadow memory allocated for all crtcs
812 extern _X_EXPORT void
813 xf86RotateFreeShadow(ScrnInfoPtr pScrn);
816 * Clean up rotation during CloseScreen
818 extern _X_EXPORT void
819 xf86RotateCloseScreen(ScreenPtr pScreen);
822 * Return whether any output is assigned to the crtc
824 extern _X_EXPORT Bool
825 xf86CrtcInUse(xf86CrtcPtr crtc);
830 extern _X_EXPORT xf86OutputPtr
831 xf86OutputCreate(ScrnInfoPtr scrn,
832 const xf86OutputFuncsRec * funcs, const char *name);
834 extern _X_EXPORT void
835 xf86OutputUseScreenMonitor(xf86OutputPtr output, Bool use_screen_monitor);
837 extern _X_EXPORT Bool
838 xf86OutputRename(xf86OutputPtr output, const char *name);
840 extern _X_EXPORT void
841 xf86OutputDestroy(xf86OutputPtr output);
843 extern _X_EXPORT void
844 xf86ProbeOutputModes(ScrnInfoPtr pScrn, int maxX, int maxY);
846 extern _X_EXPORT void
847 xf86SetScrnInfoModes(ScrnInfoPtr pScrn);
849 #ifdef RANDR_13_INTERFACE
850 #define ScreenInitRetType int
852 #define ScreenInitRetType Bool
855 extern _X_EXPORT ScreenInitRetType xf86CrtcScreenInit(ScreenPtr pScreen);
857 extern _X_EXPORT Bool
858 xf86InitialConfiguration(ScrnInfoPtr pScrn, Bool canGrow);
860 extern _X_EXPORT void
861 xf86DPMSSet(ScrnInfoPtr pScrn, int PowerManagementMode, int flags);
863 extern _X_EXPORT Bool
864 xf86SaveScreen(ScreenPtr pScreen, int mode);
866 extern _X_EXPORT void
867 xf86DisableUnusedFunctions(ScrnInfoPtr pScrn);
869 extern _X_EXPORT DisplayModePtr
870 xf86OutputFindClosestMode(xf86OutputPtr output, DisplayModePtr desired);
872 extern _X_EXPORT Bool
874 xf86SetSingleMode(ScrnInfoPtr pScrn, DisplayModePtr desired, Rotation rotation);
877 * Set the EDID information for the specified output
879 extern _X_EXPORT void
880 xf86OutputSetEDID(xf86OutputPtr output, xf86MonPtr edid_mon);
883 * Return the list of modes supported by the EDID information
886 extern _X_EXPORT DisplayModePtr xf86OutputGetEDIDModes(xf86OutputPtr output);
888 extern _X_EXPORT xf86MonPtr
889 xf86OutputGetEDID(xf86OutputPtr output, I2CBusPtr pDDCBus);
892 * Initialize dga for this screen
896 extern _X_EXPORT Bool
897 xf86DiDGAInit(ScreenPtr pScreen, unsigned long dga_address);
899 /* this is the real function, used only internally */
901 _xf86_di_dga_init_internal(ScreenPtr pScreen);
904 * Re-initialize dga for this screen (as when the set of modes changes)
907 extern _X_EXPORT Bool
908 xf86DiDGAReInit(ScreenPtr pScreen);
911 /* This is the real function, used only internally */
913 _xf86_di_dga_reinit_internal(ScreenPtr pScreen);
916 * Set the subpixel order reported for the screen using
917 * the information from the outputs
920 extern _X_EXPORT void
921 xf86CrtcSetScreenSubpixelOrder(ScreenPtr pScreen);
924 * Get a standard string name for a connector type
926 extern _X_EXPORT const char *xf86ConnectorGetName(xf86ConnectorType connector);
929 * Using the desired mode information in each crtc, set
930 * modes (used in EnterVT functions, or at server startup)
933 extern _X_EXPORT Bool
934 xf86SetDesiredModes(ScrnInfoPtr pScrn);
937 * Initialize the CRTC-based cursor code. CRTC function vectors must
938 * contain relevant cursor setting functions.
940 * Driver should call this from ScreenInit function
942 extern _X_EXPORT Bool
943 xf86_cursors_init(ScreenPtr screen, int max_width, int max_height, int flags);
946 * Called when anything on the screen is reconfigured.
948 * Reloads cursor images as needed, then adjusts cursor positions.
950 * Driver should call this from crtc commit function.
952 extern _X_EXPORT void
953 xf86_reload_cursors(ScreenPtr screen);
956 * Called from EnterVT to turn the cursors back on
958 extern _X_EXPORT void
959 xf86_show_cursors(ScrnInfoPtr scrn);
962 * Called by the driver to turn cursors off
964 extern _X_EXPORT void
965 xf86_hide_cursors(ScrnInfoPtr scrn);
968 * Clean up CRTC-based cursor code. Driver must call this at CloseScreen time.
970 extern _X_EXPORT void
971 xf86_cursors_fini(ScreenPtr screen);
974 * Transform the cursor's coordinates based on the crtc transform. Normally
975 * this is done by the server, but if crtc->driverIsPerformingTransform is TRUE,
976 * then the server does not transform the cursor position automatically.
978 extern _X_EXPORT void
979 xf86CrtcTransformCursorPos(xf86CrtcPtr crtc, int *x, int *y);
983 * For overlay video, compute the relevant CRTC and
984 * clip video to that.
985 * wraps xf86XVClipVideoHelper()
988 extern _X_EXPORT Bool
990 xf86_crtc_clip_video_helper(ScrnInfoPtr pScrn,
991 xf86CrtcPtr * crtc_ret,
992 xf86CrtcPtr desired_crtc,
998 RegionPtr reg, INT32 width, INT32 height);
1001 extern _X_EXPORT xf86_crtc_notify_proc_ptr
1002 xf86_wrap_crtc_notify(ScreenPtr pScreen, xf86_crtc_notify_proc_ptr new);
1004 extern _X_EXPORT void
1005 xf86_unwrap_crtc_notify(ScreenPtr pScreen, xf86_crtc_notify_proc_ptr old);
1007 extern _X_EXPORT void
1008 xf86_crtc_notify(ScreenPtr pScreen);
1014 extern _X_EXPORT Bool
1015 xf86_crtc_supports_gamma(ScrnInfoPtr pScrn);
1017 extern _X_EXPORT void
1018 xf86ProviderSetup(ScrnInfoPtr scrn,
1019 const xf86ProviderFuncsRec * funcs, const char *name);
1021 extern _X_EXPORT void
1022 xf86DetachAllCrtc(ScrnInfoPtr scrn);
1024 #endif /* _XF86CRTC_H_ */