45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright © 2006 Keith Packard
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission to use, copy, modify, distribute, and sell this software and its
45e9809aff7304721fddb95654901b32195c9c7avboxsync * documentation for any purpose is hereby granted without fee, provided that
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the above copyright notice appear in all copies and that both that copyright
45e9809aff7304721fddb95654901b32195c9c7avboxsync * notice and this permission notice appear in supporting documentation, and
45e9809aff7304721fddb95654901b32195c9c7avboxsync * that the name of the copyright holders not be used in advertising or
45e9809aff7304721fddb95654901b32195c9c7avboxsync * publicity pertaining to distribution of the software without specific,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * written prior permission. The copyright holders make no representations
45e9809aff7304721fddb95654901b32195c9c7avboxsync * about the suitability of this software for any purpose. It is provided "as
45e9809aff7304721fddb95654901b32195c9c7avboxsync * is" without express or implied warranty.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
45e9809aff7304721fddb95654901b32195c9c7avboxsync * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
45e9809aff7304721fddb95654901b32195c9c7avboxsync * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OF THIS SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Compat definitions for older X Servers. */
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct _xf86Output xf86OutputRec, *xf86OutputPtr;
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* define a standard for connector types */
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Turns the crtc on/off, or sets intermediate power levels if available.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Unsupported intermediate modes drop to the lower power setting. If the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * mode is DPMSModeOff, the crtc must be disabled sufficiently for it to
45e9809aff7304721fddb95654901b32195c9c7avboxsync * be safe to call mode_set.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Saves the crtc's state for restoration on VT switch.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Restore's the crtc's state at VT switch.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Lock CRTC prior to mode setting, mostly for DRI.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Returns whether unlock is needed
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Unlock CRTC after mode setting, mostly for DRI
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Callback to adjust the mode to be set in the CRTC.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This allows a CRTC to adjust the clock or even the entire set of
45e9809aff7304721fddb95654901b32195c9c7avboxsync * timings, which is used for panels with fixed timings or for
45e9809aff7304721fddb95654901b32195c9c7avboxsync * buses with clock limitations.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Prepare CRTC for an upcoming mode set.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Callback for setting up a video mode after fixups have been made.
45e9809aff7304721fddb95654901b32195c9c7avboxsync int x, int y);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Commit mode changes to a CRTC
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Set the color ramps for the CRTC to the given values. */
45e9809aff7304721fddb95654901b32195c9c7avboxsync (*gamma_set)(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Allocate the shadow area, delay the pixmap creation until needed
45e9809aff7304721fddb95654901b32195c9c7avboxsync (*shadow_allocate) (xf86CrtcPtr crtc, int width, int height);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Create shadow pixmap for rotation support
45e9809aff7304721fddb95654901b32195c9c7avboxsync (*shadow_create) (xf86CrtcPtr crtc, void *data, int width, int height);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Destroy shadow pixmap
45e9809aff7304721fddb95654901b32195c9c7avboxsync (*shadow_destroy) (xf86CrtcPtr crtc, PixmapPtr pPixmap, void *data);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Set cursor colors
45e9809aff7304721fddb95654901b32195c9c7avboxsync (*set_cursor_colors) (xf86CrtcPtr crtc, int bg, int fg);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Set cursor position
45e9809aff7304721fddb95654901b32195c9c7avboxsync (*set_cursor_position) (xf86CrtcPtr crtc, int x, int y);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Show cursor
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Hide cursor
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Load monochrome image
45e9809aff7304721fddb95654901b32195c9c7avboxsync (*load_cursor_image) (xf86CrtcPtr crtc, CARD8 *image);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Load ARGB image
45e9809aff7304721fddb95654901b32195c9c7avboxsync (*load_cursor_argb) (xf86CrtcPtr crtc, CARD32 *image);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Clean up driver-specific bits of the crtc
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Less fine-grained mode setting entry point for kernel modesetting
45e9809aff7304721fddb95654901b32195c9c7avboxsync (*set_mode_major)(xf86CrtcPtr crtc, DisplayModePtr mode,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Callback for panning. Doesn't change the mode.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Added in ABI version 2
45e9809aff7304721fddb95654901b32195c9c7avboxsync * ABI versioning
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Associated ScrnInfo
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Desired state of this CRTC
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Set when this CRTC should be driving one or more outputs
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Active mode
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This reflects the mode as set in the CRTC currently
45e9809aff7304721fddb95654901b32195c9c7avboxsync * It will be cleared when the VT is not active or
45e9809aff7304721fddb95654901b32195c9c7avboxsync * during server startup
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Position on screen
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Locates this CRTC within the frame buffer
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Desired mode
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This is set to the requested mode, independent of
45e9809aff7304721fddb95654901b32195c9c7avboxsync * whether the VT is active. In particular, it receives
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the startup configured mode and saves the active mode
45e9809aff7304721fddb95654901b32195c9c7avboxsync * on VT switch.
45e9809aff7304721fddb95654901b32195c9c7avboxsync /** crtc-specific functions */
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Driver private
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Holds driver-private information
45e9809aff7304721fddb95654901b32195c9c7avboxsync * RandR crtc
45e9809aff7304721fddb95654901b32195c9c7avboxsync * When RandR 1.2 is available, this
45e9809aff7304721fddb95654901b32195c9c7avboxsync * points at the associated crtc object
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Current cursor is ARGB
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Track whether cursor is within CRTC range
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Track state of cursor associated with this CRTC
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Current transformation matrix
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* framebuffer_to_crtc was removed in ABI 2 */
45e9809aff7304721fddb95654901b32195c9c7avboxsync struct pict_f_transform f_crtc_to_framebuffer; /* ABI 2 */
45e9809aff7304721fddb95654901b32195c9c7avboxsync struct pict_f_transform f_framebuffer_to_crtc; /* ABI 2 */
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Bounding box in screen space
45e9809aff7304721fddb95654901b32195c9c7avboxsync * TotalArea: total panning area, larger than CRTC's size
45e9809aff7304721fddb95654901b32195c9c7avboxsync * TrackingArea: Area of the pointer for which the CRTC is panned
45e9809aff7304721fddb95654901b32195c9c7avboxsync * border: Borders of the displayed CRTC area which induces panning if the pointer reaches them
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Added in ABI version 2
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Current gamma, especially useful after initial config.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Added in ABI version 3
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Actual state of this CRTC
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Set to TRUE after modesetting, set to FALSE if no outputs are connected
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Added in ABI version 3
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Clear the shadow
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Called to allow the output a chance to create properties after the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * RandR objects have been created.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Turns the output on/off, or sets intermediate power levels if available.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Unsupported intermediate modes drop to the lower power setting. If the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * mode is DPMSModeOff, the output must be disabled, as the DPLL may be
45e9809aff7304721fddb95654901b32195c9c7avboxsync * disabled afterwards.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Saves the output's state for restoration on VT switch.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Restore's the output's state at VT switch.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Callback for testing a video mode for a given output.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This function should only check for cases where a mode can't be supported
45e9809aff7304721fddb95654901b32195c9c7avboxsync * on the output specifically, and not represent generic CRTC limitations.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * \return MODE_OK if the mode is valid, or another MODE_* otherwise.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Callback to adjust the mode to be set in the CRTC.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This allows an output to adjust the clock or even the entire set of
45e9809aff7304721fddb95654901b32195c9c7avboxsync * timings, which is used for panels with fixed timings or for
45e9809aff7304721fddb95654901b32195c9c7avboxsync * buses with clock limitations.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Callback for preparing mode changes on an output
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Callback for committing mode changes on an output
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Callback for setting up a video mode after fixups have been made.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This is only called while the output is disabled. The dpms callback
45e9809aff7304721fddb95654901b32195c9c7avboxsync * must be all that's necessary for the output, to turn the output on
45e9809aff7304721fddb95654901b32195c9c7avboxsync * after this function is called.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Probe for a connected output, and return detect_status.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Query the device for the modes it provides.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This function may also update MonInfo, mm_width, and mm_height.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * \return singly-linked list of modes or NULL if no modes found.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Callback when an output's property has changed.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Callback to get an updated property value
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Callback to get current CRTC for a given output
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Clean up driver-specific bits of the output
45e9809aff7304721fddb95654901b32195c9c7avboxsync * ABI versioning
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Associated ScrnInfo
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Currently connected crtc (if any)
45e9809aff7304721fddb95654901b32195c9c7avboxsync * If this output is not in use, this field will be NULL.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Possible CRTCs for this output as a mask of crtc indices
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Possible outputs to share the same CRTC as a mask of output indices
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Whether this output can support interlaced modes
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Whether this output can support double scan modes
45e9809aff7304721fddb95654901b32195c9c7avboxsync * List of available modes on this output.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This should be the list from get_modes(), plus perhaps additional
45e9809aff7304721fddb95654901b32195c9c7avboxsync * compatible modes added later.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Options parsed from the related monitor section
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Configured monitor section
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Desired initial position
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Desired initial rotation
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Current connection status
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This indicates whether a monitor is known to be connected
45e9809aff7304721fddb95654901b32195c9c7avboxsync * to this output or not, or whether there is no way to tell
45e9809aff7304721fddb95654901b32195c9c7avboxsync /** EDID monitor information */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /** subpixel order */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /** Physical size of the currently attached output device. */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /** Output name */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /** output-specific functions */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /** driver private information */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /** Whether to use the old per-screen Monitor config section */
45e9809aff7304721fddb95654901b32195c9c7avboxsync * RandR 1.2 output structure.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * When RandR 1.2 is available, this points at the associated
45e9809aff7304721fddb95654901b32195c9c7avboxsync * RandR output structure and is created when this output is created
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Desired initial panning
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Added in ABI version 2
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Requests that the driver resize the screen.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The driver is responsible for updating scrn->virtualX and scrn->virtualY.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * If the requested size cannot be set, the driver should leave those values
45e9809aff7304721fddb95654901b32195c9c7avboxsync * alone and return FALSE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * A naive driver that cannot reallocate the screen may simply change
45e9809aff7304721fddb95654901b32195c9c7avboxsync * virtual[XY]. A more advanced driver will want to also change the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * devPrivate.ptr and devKind of the screen pixmap, update any offscreen
45e9809aff7304721fddb95654901b32195c9c7avboxsync * pixmaps it may have moved, and change pScrn->displayWidth.
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*xf86_crtc_notify_proc_ptr) (ScreenPtr pScreen);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * compat_output is used whenever we deal
45e9809aff7304721fddb95654901b32195c9c7avboxsync * with legacy code that only understands a single
45e9809aff7304721fddb95654901b32195c9c7avboxsync * output. pScrn->modes will be loaded from this output,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * adjust frame will whack this output, etc.
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* For crtc-based rotation */
45e9809aff7304721fddb95654901b32195c9c7avboxsync CreateScreenResourcesProcPtr CreateScreenResources;
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Cursor information */
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Options parsed from the related device section
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* wrap screen BlockHandler for rotation */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* callback when crtc configuration changes */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define XF86_CRTC_CONFIG_PTR(p) ((xf86CrtcConfigPtr) ((p)->privates[xf86CrtcConfigPrivateIndex].ptr))
45e9809aff7304721fddb95654901b32195c9c7avboxsync xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn);
45e9809aff7304721fddb95654901b32195c9c7avboxsync xf86OutputPtr compat_output = xf86CompatOutput(pScrn);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Initialize xf86CrtcConfig structure
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Crtc functions
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Sets the given video mode on the given crtc
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86CrtcSetModeTransform (xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotation,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86CrtcSetMode (xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotation,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int x, int y);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Assign crtc rotation during mode set
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Clean up any rotation data, used when a crtc is turned off
45e9809aff7304721fddb95654901b32195c9c7avboxsync * as well as when rotation is disabled.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * free shadow memory allocated for all crtcs
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Clean up rotation during CloseScreen
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Return whether any output is assigned to the crtc
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Output functions
45e9809aff7304721fddb95654901b32195c9c7avboxsync const char *name);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86OutputUseScreenMonitor (xf86OutputPtr output, Bool use_screen_monitor);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86OutputRename (xf86OutputPtr output, const char *name);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86ProbeOutputModes (ScrnInfoPtr pScrn, int maxX, int maxY);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86InitialConfiguration (ScrnInfoPtr pScrn, Bool canGrow);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86DPMSSet(ScrnInfoPtr pScrn, int PowerManagementMode, int flags);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86OutputFindClosestMode (xf86OutputPtr output, DisplayModePtr desired);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86SetSingleMode (ScrnInfoPtr pScrn, DisplayModePtr desired, Rotation rotation);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Set the EDID information for the specified output
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86OutputSetEDID (xf86OutputPtr output, xf86MonPtr edid_mon);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Return the list of modes supported by the EDID information
45e9809aff7304721fddb95654901b32195c9c7avboxsync * stored in 'output'
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86OutputGetEDID (xf86OutputPtr output, I2CBusPtr pDDCBus);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Initialize dga for this screen
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86DiDGAInit (ScreenPtr pScreen, unsigned long dga_address);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* this is the real function, used only internally */
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Re-initialize dga for this screen (as when the set of modes changes)
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* This is the real function, used only internally */
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Set the subpixel order reported for the screen using
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the information from the outputs
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Get a standard string name for a connector type
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Using the desired mode information in each crtc, set
45e9809aff7304721fddb95654901b32195c9c7avboxsync * modes (used in EnterVT functions, or at server startup)
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Initialize the CRTC-based cursor code. CRTC function vectors must
45e9809aff7304721fddb95654901b32195c9c7avboxsync * contain relevant cursor setting functions.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Driver should call this from ScreenInit function
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86_cursors_init (ScreenPtr screen, int max_width, int max_height, int flags);
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Called when anything on the screen is reconfigured.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Reloads cursor images as needed, then adjusts cursor positions.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Driver should call this from crtc commit function.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Called from EnterVT to turn the cursors back on
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Called by the driver to turn cursors off
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Clean up CRTC-based cursor code. Driver must call this at CloseScreen time.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * For overlay video, compute the relevant CRTC and
45e9809aff7304721fddb95654901b32195c9c7avboxsync * clip video to that.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * wraps xf86XVClipVideoHelper()
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86_wrap_crtc_notify (ScreenPtr pScreen, xf86_crtc_notify_proc_ptr new);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxf86_unwrap_crtc_notify(ScreenPtr pScreen, xf86_crtc_notify_proc_ptr old);
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* _XF86CRTC_H_ */