2007-02-16 05:36:20 +01:00
|
|
|
/*
|
|
|
|
* Copyright © 2006 Keith Packard
|
2011-08-25 19:19:48 +02:00
|
|
|
* Copyright © 2011 Aaron Plattner
|
2007-02-16 05:36:20 +01:00
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
|
|
|
* documentation for any purpose is hereby granted without fee, provided that
|
|
|
|
* the above copyright notice appear in all copies and that both that copyright
|
|
|
|
* notice and this permission notice appear in supporting documentation, and
|
|
|
|
* that the name of the copyright holders not be used in advertising or
|
|
|
|
* publicity pertaining to distribution of the software without specific,
|
|
|
|
* written prior permission. The copyright holders make no representations
|
|
|
|
* about the suitability of this software for any purpose. It is provided "as
|
|
|
|
* is" without express or implied warranty.
|
|
|
|
*
|
|
|
|
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
|
|
|
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
|
|
|
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
|
|
|
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
|
|
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
|
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
|
|
* OF THIS SOFTWARE.
|
|
|
|
*/
|
|
|
|
#ifndef _XF86CRTC_H_
|
|
|
|
#define _XF86CRTC_H_
|
|
|
|
|
|
|
|
#include <edid.h>
|
|
|
|
#include "randrstr.h"
|
|
|
|
#include "xf86Modes.h"
|
2007-03-15 07:59:29 +01:00
|
|
|
#include "xf86Cursor.h"
|
2007-10-26 13:15:07 +02:00
|
|
|
#include "xf86i2c.h"
|
2007-02-16 05:36:20 +01:00
|
|
|
#include "damage.h"
|
2007-07-26 20:49:46 +02:00
|
|
|
#include "picturestr.h"
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/* Compat definitions for older X Servers. */
|
|
|
|
#ifndef M_T_PREFERRED
|
|
|
|
#define M_T_PREFERRED 0x08
|
|
|
|
#endif
|
|
|
|
#ifndef M_T_DRIVER
|
|
|
|
#define M_T_DRIVER 0x40
|
|
|
|
#endif
|
2007-10-17 05:42:28 +02:00
|
|
|
#ifndef M_T_USERPREF
|
|
|
|
#define M_T_USERPREF 0x80
|
|
|
|
#endif
|
2007-03-15 07:59:29 +01:00
|
|
|
#ifndef HARDWARE_CURSOR_ARGB
|
|
|
|
#define HARDWARE_CURSOR_ARGB 0x00004000
|
|
|
|
#endif
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
typedef struct _xf86Crtc xf86CrtcRec, *xf86CrtcPtr;
|
|
|
|
typedef struct _xf86Output xf86OutputRec, *xf86OutputPtr;
|
|
|
|
|
2007-03-05 03:46:41 +01:00
|
|
|
/* define a standard for connector types */
|
|
|
|
typedef enum _xf86ConnectorType {
|
2012-03-21 20:55:09 +01:00
|
|
|
XF86ConnectorNone,
|
|
|
|
XF86ConnectorVGA,
|
|
|
|
XF86ConnectorDVI_I,
|
|
|
|
XF86ConnectorDVI_D,
|
|
|
|
XF86ConnectorDVI_A,
|
|
|
|
XF86ConnectorComposite,
|
|
|
|
XF86ConnectorSvideo,
|
|
|
|
XF86ConnectorComponent,
|
|
|
|
XF86ConnectorLFP,
|
|
|
|
XF86ConnectorProprietary,
|
|
|
|
XF86ConnectorHDMI,
|
|
|
|
XF86ConnectorDisplayPort,
|
2007-03-05 03:46:41 +01:00
|
|
|
} xf86ConnectorType;
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
typedef enum _xf86OutputStatus {
|
2012-03-21 20:55:09 +01:00
|
|
|
XF86OutputStatusConnected,
|
|
|
|
XF86OutputStatusDisconnected,
|
|
|
|
XF86OutputStatusUnknown
|
2007-02-16 05:36:20 +01:00
|
|
|
} xf86OutputStatus;
|
|
|
|
|
|
|
|
typedef struct _xf86CrtcFuncs {
|
|
|
|
/**
|
|
|
|
* Turns the crtc on/off, or sets intermediate power levels if available.
|
|
|
|
*
|
|
|
|
* Unsupported intermediate modes drop to the lower power setting. If the
|
|
|
|
* mode is DPMSModeOff, the crtc must be disabled sufficiently for it to
|
|
|
|
* be safe to call mode_set.
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
void
|
|
|
|
(*dpms) (xf86CrtcPtr crtc, int mode);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Saves the crtc's state for restoration on VT switch.
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
void
|
|
|
|
(*save) (xf86CrtcPtr crtc);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Restore's the crtc's state at VT switch.
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
void
|
|
|
|
(*restore) (xf86CrtcPtr crtc);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Lock CRTC prior to mode setting, mostly for DRI.
|
|
|
|
* Returns whether unlock is needed
|
|
|
|
*/
|
|
|
|
Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
(*lock) (xf86CrtcPtr crtc);
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Unlock CRTC after mode setting, mostly for DRI
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*unlock) (xf86CrtcPtr crtc);
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Callback to adjust the mode to be set in the CRTC.
|
|
|
|
*
|
|
|
|
* This allows a CRTC to adjust the clock or even the entire set of
|
|
|
|
* timings, which is used for panels with fixed timings or for
|
|
|
|
* buses with clock limitations.
|
|
|
|
*/
|
|
|
|
Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
(*mode_fixup) (xf86CrtcPtr crtc,
|
|
|
|
DisplayModePtr mode, DisplayModePtr adjusted_mode);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2007-02-25 23:40:00 +01:00
|
|
|
/**
|
|
|
|
* Prepare CRTC for an upcoming mode set.
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*prepare) (xf86CrtcPtr crtc);
|
2007-02-25 23:40:00 +01:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Callback for setting up a video mode after fixups have been made.
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*mode_set) (xf86CrtcPtr crtc,
|
|
|
|
DisplayModePtr mode,
|
|
|
|
DisplayModePtr adjusted_mode, int x, int y);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2007-02-25 23:40:00 +01:00
|
|
|
/**
|
|
|
|
* Commit mode changes to a CRTC
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*commit) (xf86CrtcPtr crtc);
|
2007-02-25 23:40:00 +01:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/* Set the color ramps for the CRTC to the given values. */
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*gamma_set) (xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
|
|
|
|
int size);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2007-02-16 09:41:29 +01:00
|
|
|
/**
|
|
|
|
* Allocate the shadow area, delay the pixmap creation until needed
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
void *(*shadow_allocate) (xf86CrtcPtr crtc, int width, int height);
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Create shadow pixmap for rotation support
|
|
|
|
*/
|
|
|
|
PixmapPtr
|
2012-03-21 20:55:09 +01:00
|
|
|
(*shadow_create) (xf86CrtcPtr crtc, void *data, int width, int height);
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Destroy shadow pixmap
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*shadow_destroy) (xf86CrtcPtr crtc, PixmapPtr pPixmap, void *data);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2007-03-15 07:59:29 +01:00
|
|
|
/**
|
|
|
|
* Set cursor colors
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*set_cursor_colors) (xf86CrtcPtr crtc, int bg, int fg);
|
2007-03-15 07:59:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set cursor position
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*set_cursor_position) (xf86CrtcPtr crtc, int x, int y);
|
2007-03-15 07:59:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Show cursor
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*show_cursor) (xf86CrtcPtr crtc);
|
2007-03-15 07:59:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Hide cursor
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*hide_cursor) (xf86CrtcPtr crtc);
|
2007-03-15 07:59:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Load monochrome image
|
|
|
|
*/
|
2014-04-25 17:22:15 +02:00
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*load_cursor_image) (xf86CrtcPtr crtc, CARD8 *image);
|
2014-04-25 17:22:15 +02:00
|
|
|
Bool
|
|
|
|
(*load_cursor_image_check) (xf86CrtcPtr crtc, CARD8 *image);
|
2007-03-15 07:59:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Load ARGB image
|
|
|
|
*/
|
2014-04-25 17:22:15 +02:00
|
|
|
void
|
2007-03-15 07:59:29 +01:00
|
|
|
(*load_cursor_argb) (xf86CrtcPtr crtc, CARD32 *image);
|
2014-04-25 17:22:15 +02:00
|
|
|
Bool
|
|
|
|
(*load_cursor_argb_check) (xf86CrtcPtr crtc, CARD32 *image);
|
2012-03-21 20:55:09 +01:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Clean up driver-specific bits of the crtc
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*destroy) (xf86CrtcPtr crtc);
|
2008-02-26 22:08:00 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Less fine-grained mode setting entry point for kernel modesetting
|
|
|
|
*/
|
|
|
|
Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
(*set_mode_major) (xf86CrtcPtr crtc, DisplayModePtr mode,
|
|
|
|
Rotation rotation, int x, int y);
|
2008-11-28 17:39:23 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Callback for panning. Doesn't change the mode.
|
2008-12-18 16:26:38 +01:00
|
|
|
* Added in ABI version 2
|
2008-11-28 17:39:23 +01:00
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*set_origin) (xf86CrtcPtr crtc, int x, int y);
|
2008-11-28 17:39:23 +01:00
|
|
|
|
2012-06-20 13:37:26 +02:00
|
|
|
/**
|
|
|
|
*/
|
|
|
|
Bool
|
|
|
|
(*set_scanout_pixmap)(xf86CrtcPtr crtc, PixmapPtr pixmap);
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
} xf86CrtcFuncsRec, *xf86CrtcFuncsPtr;
|
|
|
|
|
2012-06-26 10:53:54 +02:00
|
|
|
#define XF86_CRTC_VERSION 5
|
2008-03-06 22:47:44 +01:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
struct _xf86Crtc {
|
2008-03-06 22:47:44 +01:00
|
|
|
/**
|
|
|
|
* ABI versioning
|
|
|
|
*/
|
|
|
|
int version;
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Associated ScrnInfo
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
ScrnInfoPtr scrn;
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
2008-12-17 23:42:30 +01:00
|
|
|
* Desired state of this CRTC
|
2007-02-16 05:36:20 +01:00
|
|
|
*
|
2008-12-17 23:42:30 +01:00
|
|
|
* Set when this CRTC should be driving one or more outputs
|
2007-02-16 05:36:20 +01:00
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool enabled;
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Active mode
|
|
|
|
*
|
|
|
|
* This reflects the mode as set in the CRTC currently
|
|
|
|
* It will be cleared when the VT is not active or
|
|
|
|
* during server startup
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
DisplayModeRec mode;
|
|
|
|
Rotation rotation;
|
|
|
|
PixmapPtr rotatedPixmap;
|
|
|
|
void *rotatedData;
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Position on screen
|
|
|
|
*
|
|
|
|
* Locates this CRTC within the frame buffer
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
int x, y;
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Desired mode
|
|
|
|
*
|
|
|
|
* This is set to the requested mode, independent of
|
|
|
|
* whether the VT is active. In particular, it receives
|
|
|
|
* the startup configured mode and saves the active mode
|
|
|
|
* on VT switch.
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
DisplayModeRec desiredMode;
|
|
|
|
Rotation desiredRotation;
|
|
|
|
int desiredX, desiredY;
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/** crtc-specific functions */
|
|
|
|
const xf86CrtcFuncsRec *funcs;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Driver private
|
|
|
|
*
|
|
|
|
* Holds driver-private information
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
void *driver_private;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
#ifdef RANDR_12_INTERFACE
|
|
|
|
/**
|
|
|
|
* RandR crtc
|
|
|
|
*
|
|
|
|
* When RandR 1.2 is available, this
|
|
|
|
* points at the associated crtc object
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
RRCrtcPtr randr_crtc;
|
2007-02-16 05:36:20 +01:00
|
|
|
#else
|
2012-03-21 20:55:09 +01:00
|
|
|
void *randr_crtc;
|
2007-02-16 05:36:20 +01:00
|
|
|
#endif
|
2007-03-15 07:59:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Current cursor is ARGB
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool cursor_argb;
|
2007-03-15 07:59:29 +01:00
|
|
|
/**
|
|
|
|
* Track whether cursor is within CRTC range
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool cursor_in_range;
|
2007-03-15 07:59:29 +01:00
|
|
|
/**
|
|
|
|
* Track state of cursor associated with this CRTC
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool cursor_shown;
|
2007-07-14 18:03:40 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Current transformation matrix
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
PictTransform crtc_to_framebuffer;
|
2008-12-18 16:26:38 +01:00
|
|
|
/* framebuffer_to_crtc was removed in ABI 2 */
|
2012-03-21 20:55:09 +01:00
|
|
|
struct pict_f_transform f_crtc_to_framebuffer; /* ABI 2 */
|
|
|
|
struct pict_f_transform f_framebuffer_to_crtc; /* ABI 2 */
|
|
|
|
PictFilterPtr filter; /* ABI 2 */
|
|
|
|
xFixed *params; /* ABI 2 */
|
|
|
|
int nparams; /* ABI 2 */
|
|
|
|
int filter_width; /* ABI 2 */
|
|
|
|
int filter_height; /* ABI 2 */
|
|
|
|
Bool transform_in_use;
|
|
|
|
RRTransformRec transform; /* ABI 2 */
|
|
|
|
Bool transformPresent; /* ABI 2 */
|
|
|
|
RRTransformRec desiredTransform; /* ABI 2 */
|
|
|
|
Bool desiredTransformPresent; /* ABI 2 */
|
2007-07-14 18:03:40 +02:00
|
|
|
/**
|
|
|
|
* Bounding box in screen space
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
BoxRec bounds;
|
2008-11-28 17:39:23 +01:00
|
|
|
/**
|
|
|
|
* Panning:
|
|
|
|
* TotalArea: total panning area, larger than CRTC's size
|
|
|
|
* TrackingArea: Area of the pointer for which the CRTC is panned
|
|
|
|
* border: Borders of the displayed CRTC area which induces panning if the pointer reaches them
|
2008-12-18 16:26:38 +01:00
|
|
|
* Added in ABI version 2
|
2008-11-28 17:39:23 +01:00
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
BoxRec panningTotalArea;
|
|
|
|
BoxRec panningTrackingArea;
|
|
|
|
INT16 panningBorder[4];
|
2008-12-17 16:56:26 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Current gamma, especially useful after initial config.
|
2008-12-17 23:42:30 +01:00
|
|
|
* Added in ABI version 3
|
2008-12-17 16:56:26 +01:00
|
|
|
*/
|
|
|
|
CARD16 *gamma_red;
|
|
|
|
CARD16 *gamma_green;
|
|
|
|
CARD16 *gamma_blue;
|
|
|
|
int gamma_size;
|
2008-12-17 23:42:30 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Actual state of this CRTC
|
|
|
|
*
|
|
|
|
* Set to TRUE after modesetting, set to FALSE if no outputs are connected
|
|
|
|
* Added in ABI version 3
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool active;
|
2009-02-06 06:34:35 +01:00
|
|
|
/**
|
|
|
|
* Clear the shadow
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool shadowClear;
|
2011-08-25 19:19:48 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates that the driver is handling the transform, so the shadow
|
|
|
|
* surface should be disabled. The driver writes this field before calling
|
|
|
|
* xf86CrtcRotate to indicate that it is handling the transform (including
|
|
|
|
* rotation and reflection).
|
|
|
|
*
|
|
|
|
* Setting this flag also causes the server to stop adjusting the cursor
|
|
|
|
* image and position.
|
|
|
|
*
|
|
|
|
* Added in ABI version 4
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool driverIsPerformingTransform;
|
2012-06-26 10:53:54 +02:00
|
|
|
|
|
|
|
/* Added in ABI version 5
|
|
|
|
*/
|
|
|
|
PixmapPtr current_scanout;
|
2007-02-16 05:36:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct _xf86OutputFuncs {
|
|
|
|
/**
|
|
|
|
* Called to allow the output a chance to create properties after the
|
|
|
|
* RandR objects have been created.
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*create_resources) (xf86OutputPtr output);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Turns the output on/off, or sets intermediate power levels if available.
|
|
|
|
*
|
|
|
|
* Unsupported intermediate modes drop to the lower power setting. If the
|
|
|
|
* mode is DPMSModeOff, the output must be disabled, as the DPLL may be
|
|
|
|
* disabled afterwards.
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*dpms) (xf86OutputPtr output, int mode);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Saves the output's state for restoration on VT switch.
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*save) (xf86OutputPtr output);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Restore's the output's state at VT switch.
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*restore) (xf86OutputPtr output);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Callback for testing a video mode for a given output.
|
|
|
|
*
|
|
|
|
* This function should only check for cases where a mode can't be supported
|
|
|
|
* on the output specifically, and not represent generic CRTC limitations.
|
|
|
|
*
|
|
|
|
* \return MODE_OK if the mode is valid, or another MODE_* otherwise.
|
|
|
|
*/
|
|
|
|
int
|
2012-03-21 20:55:09 +01:00
|
|
|
(*mode_valid) (xf86OutputPtr output, DisplayModePtr pMode);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Callback to adjust the mode to be set in the CRTC.
|
|
|
|
*
|
|
|
|
* This allows an output to adjust the clock or even the entire set of
|
|
|
|
* timings, which is used for panels with fixed timings or for
|
|
|
|
* buses with clock limitations.
|
|
|
|
*/
|
|
|
|
Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
(*mode_fixup) (xf86OutputPtr output,
|
|
|
|
DisplayModePtr mode, DisplayModePtr adjusted_mode);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2007-02-25 23:40:00 +01:00
|
|
|
/**
|
|
|
|
* Callback for preparing mode changes on an output
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*prepare) (xf86OutputPtr output);
|
2007-02-25 23:40:00 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Callback for committing mode changes on an output
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*commit) (xf86OutputPtr output);
|
2007-02-25 23:40:00 +01:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Callback for setting up a video mode after fixups have been made.
|
|
|
|
*
|
|
|
|
* This is only called while the output is disabled. The dpms callback
|
|
|
|
* must be all that's necessary for the output, to turn the output on
|
|
|
|
* after this function is called.
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*mode_set) (xf86OutputPtr output,
|
|
|
|
DisplayModePtr mode, DisplayModePtr adjusted_mode);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Probe for a connected output, and return detect_status.
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86OutputStatus(*detect) (xf86OutputPtr output);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Query the device for the modes it provides.
|
|
|
|
*
|
|
|
|
* This function may also update MonInfo, mm_width, and mm_height.
|
|
|
|
*
|
|
|
|
* \return singly-linked list of modes or NULL if no modes found.
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
DisplayModePtr(*get_modes) (xf86OutputPtr output);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
#ifdef RANDR_12_INTERFACE
|
|
|
|
/**
|
|
|
|
* Callback when an output's property has changed.
|
|
|
|
*/
|
|
|
|
Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
(*set_property) (xf86OutputPtr output,
|
|
|
|
Atom property, RRPropertyValuePtr value);
|
2008-03-06 22:47:44 +01:00
|
|
|
#endif
|
|
|
|
#ifdef RANDR_13_INTERFACE
|
|
|
|
/**
|
|
|
|
* Callback to get an updated property value
|
|
|
|
*/
|
|
|
|
Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
(*get_property) (xf86OutputPtr output, Atom property);
|
2008-03-17 22:13:09 +01:00
|
|
|
#endif
|
|
|
|
#ifdef RANDR_GET_CRTC_INTERFACE
|
|
|
|
/**
|
|
|
|
* Callback to get current CRTC for a given output
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CrtcPtr(*get_crtc) (xf86OutputPtr output);
|
2007-02-16 05:36:20 +01:00
|
|
|
#endif
|
|
|
|
/**
|
|
|
|
* Clean up driver-specific bits of the output
|
|
|
|
*/
|
|
|
|
void
|
2012-03-21 20:55:09 +01:00
|
|
|
(*destroy) (xf86OutputPtr output);
|
2007-02-16 05:36:20 +01:00
|
|
|
} xf86OutputFuncsRec, *xf86OutputFuncsPtr;
|
|
|
|
|
2008-12-11 14:56:51 +01:00
|
|
|
#define XF86_OUTPUT_VERSION 2
|
2008-03-06 22:47:44 +01:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
struct _xf86Output {
|
2008-03-06 22:47:44 +01:00
|
|
|
/**
|
|
|
|
* ABI versioning
|
|
|
|
*/
|
|
|
|
int version;
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Associated ScrnInfo
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
ScrnInfoPtr scrn;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Currently connected crtc (if any)
|
|
|
|
*
|
|
|
|
* If this output is not in use, this field will be NULL.
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CrtcPtr crtc;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Possible CRTCs for this output as a mask of crtc indices
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
CARD32 possible_crtcs;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Possible outputs to share the same CRTC as a mask of output indices
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
CARD32 possible_clones;
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Whether this output can support interlaced modes
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool interlaceAllowed;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether this output can support double scan modes
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool doubleScanAllowed;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* List of available modes on this output.
|
|
|
|
*
|
|
|
|
* This should be the list from get_modes(), plus perhaps additional
|
|
|
|
* compatible modes added later.
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
DisplayModePtr probed_modes;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Options parsed from the related monitor section
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
OptionInfoPtr options;
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Configured monitor section
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
XF86ConfMonitorPtr conf_monitor;
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Desired initial position
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
int initial_x, initial_y;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2007-02-16 09:41:29 +01:00
|
|
|
/**
|
|
|
|
* Desired initial rotation
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
Rotation initial_rotation;
|
2007-02-16 09:41:29 +01:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Current connection status
|
|
|
|
*
|
|
|
|
* This indicates whether a monitor is known to be connected
|
|
|
|
* to this output or not, or whether there is no way to tell
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86OutputStatus status;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/** EDID monitor information */
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86MonPtr MonInfo;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/** subpixel order */
|
2012-03-21 20:55:09 +01:00
|
|
|
int subpixel_order;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/** Physical size of the currently attached output device. */
|
2012-03-21 20:55:09 +01:00
|
|
|
int mm_width, mm_height;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/** Output name */
|
2012-03-21 20:55:09 +01:00
|
|
|
char *name;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/** output-specific functions */
|
|
|
|
const xf86OutputFuncsRec *funcs;
|
|
|
|
|
|
|
|
/** driver private information */
|
2012-03-21 20:55:09 +01:00
|
|
|
void *driver_private;
|
|
|
|
|
2007-04-16 18:53:42 +02:00
|
|
|
/** Whether to use the old per-screen Monitor config section */
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool use_screen_monitor;
|
2007-04-16 18:53:42 +02:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
#ifdef RANDR_12_INTERFACE
|
|
|
|
/**
|
|
|
|
* RandR 1.2 output structure.
|
|
|
|
*
|
|
|
|
* When RandR 1.2 is available, this points at the associated
|
|
|
|
* RandR output structure and is created when this output is created
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
RROutputPtr randr_output;
|
2007-02-16 05:36:20 +01:00
|
|
|
#else
|
2012-03-21 20:55:09 +01:00
|
|
|
void *randr_output;
|
2007-02-16 05:36:20 +01:00
|
|
|
#endif
|
2008-12-18 16:26:38 +01:00
|
|
|
/**
|
|
|
|
* Desired initial panning
|
|
|
|
* Added in ABI version 2
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
BoxRec initialTotalArea;
|
|
|
|
BoxRec initialTrackingArea;
|
|
|
|
INT16 initialBorder[4];
|
2007-02-16 05:36:20 +01:00
|
|
|
};
|
|
|
|
|
2012-06-13 15:17:06 +02:00
|
|
|
typedef struct _xf86ProviderFuncs {
|
|
|
|
/**
|
|
|
|
* Called to allow the provider a chance to create properties after the
|
|
|
|
* RandR objects have been created.
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
(*create_resources) (ScrnInfoPtr scrn);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Callback when an provider's property has changed.
|
|
|
|
*/
|
|
|
|
Bool
|
|
|
|
(*set_property) (ScrnInfoPtr scrn,
|
|
|
|
Atom property, RRPropertyValuePtr value);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Callback to get an updated property value
|
|
|
|
*/
|
|
|
|
Bool
|
|
|
|
(*get_property) (ScrnInfoPtr provider, Atom property);
|
|
|
|
|
|
|
|
} xf86ProviderFuncsRec, *xf86ProviderFuncsPtr;
|
|
|
|
|
2007-02-28 22:36:58 +01:00
|
|
|
typedef struct _xf86CrtcConfigFuncs {
|
|
|
|
/**
|
|
|
|
* Requests that the driver resize the screen.
|
|
|
|
*
|
|
|
|
* The driver is responsible for updating scrn->virtualX and scrn->virtualY.
|
|
|
|
* If the requested size cannot be set, the driver should leave those values
|
|
|
|
* alone and return FALSE.
|
|
|
|
*
|
|
|
|
* A naive driver that cannot reallocate the screen may simply change
|
|
|
|
* virtual[XY]. A more advanced driver will want to also change the
|
|
|
|
* devPrivate.ptr and devKind of the screen pixmap, update any offscreen
|
|
|
|
* pixmaps it may have moved, and change pScrn->displayWidth.
|
|
|
|
*/
|
|
|
|
Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
(*resize) (ScrnInfoPtr scrn, int width, int height);
|
2007-02-28 22:36:58 +01:00
|
|
|
} xf86CrtcConfigFuncsRec, *xf86CrtcConfigFuncsPtr;
|
|
|
|
|
2008-11-04 09:10:08 +01:00
|
|
|
typedef void (*xf86_crtc_notify_proc_ptr) (ScreenPtr pScreen);
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
typedef struct _xf86CrtcConfig {
|
2012-03-21 20:55:09 +01:00
|
|
|
int num_output;
|
|
|
|
xf86OutputPtr *output;
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* compat_output is used whenever we deal
|
|
|
|
* with legacy code that only understands a single
|
|
|
|
* output. pScrn->modes will be loaded from this output,
|
|
|
|
* adjust frame will whack this output, etc.
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
int compat_output;
|
|
|
|
|
|
|
|
int num_crtc;
|
|
|
|
xf86CrtcPtr *crtc;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
int minWidth, minHeight;
|
|
|
|
int maxWidth, maxHeight;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/* For crtc-based rotation */
|
2012-03-21 20:55:09 +01:00
|
|
|
DamagePtr rotation_damage;
|
|
|
|
Bool rotation_damage_registered;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/* DGA */
|
2012-03-21 20:55:09 +01:00
|
|
|
unsigned int dga_flags;
|
|
|
|
unsigned long dga_address;
|
|
|
|
DGAModePtr dga_modes;
|
|
|
|
int dga_nmode;
|
|
|
|
int dga_width, dga_height, dga_stride;
|
|
|
|
DisplayModePtr dga_save_mode;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2007-02-28 22:36:58 +01:00
|
|
|
const xf86CrtcConfigFuncsRec *funcs;
|
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
CreateScreenResourcesProcPtr CreateScreenResources;
|
2007-03-15 07:59:29 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
CloseScreenProcPtr CloseScreen;
|
2007-03-20 15:17:27 +01:00
|
|
|
|
2007-03-15 07:59:29 +01:00
|
|
|
/* Cursor information */
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CursorInfoPtr cursor_info;
|
|
|
|
CursorPtr cursor;
|
|
|
|
CARD8 *cursor_image;
|
|
|
|
Bool cursor_on;
|
|
|
|
CARD32 cursor_fg, cursor_bg;
|
2007-04-03 03:21:58 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Options parsed from the related device section
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
OptionInfoPtr options;
|
2007-04-03 03:21:58 +02:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
Bool debug_modes;
|
2007-05-18 05:24:18 +02:00
|
|
|
|
|
|
|
/* wrap screen BlockHandler for rotation */
|
2012-03-21 20:55:09 +01:00
|
|
|
ScreenBlockHandlerProcPtr BlockHandler;
|
2007-05-18 05:24:18 +02:00
|
|
|
|
2008-11-04 09:10:08 +01:00
|
|
|
/* callback when crtc configuration changes */
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86_crtc_notify_proc_ptr xf86_crtc_notify;
|
2008-11-04 09:10:08 +01:00
|
|
|
|
2012-06-13 15:17:06 +02:00
|
|
|
char *name;
|
|
|
|
const xf86ProviderFuncsRec *provider_funcs;
|
|
|
|
#ifdef RANDR_12_INTERFACE
|
|
|
|
RRProviderPtr randr_provider;
|
|
|
|
#else
|
|
|
|
void *randr_provider;
|
|
|
|
#endif
|
2007-02-16 05:36:20 +01:00
|
|
|
} xf86CrtcConfigRec, *xf86CrtcConfigPtr;
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int xf86CrtcConfigPrivateIndex;
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
#define XF86_CRTC_CONFIG_PTR(p) ((xf86CrtcConfigPtr) ((p)->privates[xf86CrtcConfigPrivateIndex].ptr))
|
|
|
|
|
2010-02-25 20:37:05 +01:00
|
|
|
static _X_INLINE xf86OutputPtr
|
|
|
|
xf86CompatOutput(ScrnInfoPtr pScrn)
|
|
|
|
{
|
|
|
|
xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn);
|
2012-03-21 20:55:09 +01:00
|
|
|
|
2010-02-25 20:37:05 +01:00
|
|
|
return config->output[config->compat_output];
|
|
|
|
}
|
|
|
|
|
|
|
|
static _X_INLINE xf86CrtcPtr
|
|
|
|
xf86CompatCrtc(ScrnInfoPtr pScrn)
|
|
|
|
{
|
|
|
|
xf86OutputPtr compat_output = xf86CompatOutput(pScrn);
|
2012-03-21 20:55:09 +01:00
|
|
|
|
2010-02-25 20:37:05 +01:00
|
|
|
if (!compat_output)
|
2012-03-21 20:55:09 +01:00
|
|
|
return NULL;
|
2010-02-25 20:37:05 +01:00
|
|
|
return compat_output->crtc;
|
|
|
|
}
|
|
|
|
|
|
|
|
static _X_INLINE RRCrtcPtr
|
|
|
|
xf86CompatRRCrtc(ScrnInfoPtr pScrn)
|
|
|
|
{
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CrtcPtr compat_crtc = xf86CompatCrtc(pScrn);
|
|
|
|
|
2010-02-25 20:37:05 +01:00
|
|
|
if (!compat_crtc)
|
2012-03-21 20:55:09 +01:00
|
|
|
return NULL;
|
2010-02-25 20:37:05 +01:00
|
|
|
return compat_crtc->randr_crtc;
|
|
|
|
}
|
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/*
|
|
|
|
* Initialize xf86CrtcConfig structure
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CrtcConfigInit(ScrnInfoPtr scrn, const xf86CrtcConfigFuncsRec * funcs);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
xf86CrtcSetSizeRange(ScrnInfoPtr scrn,
|
|
|
|
int minWidth, int minHeight, int maxWidth, int maxHeight);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Crtc functions
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT xf86CrtcPtr
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CrtcCreate(ScrnInfoPtr scrn, const xf86CrtcFuncsRec * funcs);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CrtcDestroy(xf86CrtcPtr crtc);
|
2011-02-23 20:18:35 +01:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
2011-02-23 20:18:35 +01:00
|
|
|
* Sets the given video mode on the given crtc
|
2007-02-16 05:36:20 +01:00
|
|
|
*/
|
2008-03-19 20:15:39 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
xf86CrtcSetModeTransform(xf86CrtcPtr crtc, DisplayModePtr mode,
|
|
|
|
Rotation rotation, RRTransformPtr transform, int x,
|
|
|
|
int y);
|
2011-02-23 20:18:35 +01:00
|
|
|
|
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
xf86CrtcSetMode(xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotation,
|
|
|
|
int x, int y);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2008-12-04 21:23:25 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CrtcSetOrigin(xf86CrtcPtr crtc, int x, int y);
|
2008-11-28 17:39:23 +01:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/*
|
|
|
|
* Assign crtc rotation during mode set
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CrtcRotate(xf86CrtcPtr crtc);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2008-12-15 20:36:43 +01:00
|
|
|
/*
|
|
|
|
* Clean up any rotation data, used when a crtc is turned off
|
|
|
|
* as well as when rotation is disabled.
|
|
|
|
*/
|
2009-01-05 19:49:57 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86RotateDestroy(xf86CrtcPtr crtc);
|
2008-12-15 20:36:43 +01:00
|
|
|
|
2008-04-29 18:00:11 +02:00
|
|
|
/*
|
|
|
|
* free shadow memory allocated for all crtcs
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86RotateFreeShadow(ScrnInfoPtr pScrn);
|
2008-04-29 18:00:11 +02:00
|
|
|
|
2007-03-20 15:17:27 +01:00
|
|
|
/*
|
|
|
|
* Clean up rotation during CloseScreen
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86RotateCloseScreen(ScreenPtr pScreen);
|
2007-03-20 15:17:27 +01:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Return whether any output is assigned to the crtc
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CrtcInUse(xf86CrtcPtr crtc);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Output functions
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT xf86OutputPtr
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86OutputCreate(ScrnInfoPtr scrn,
|
|
|
|
const xf86OutputFuncsRec * funcs, const char *name);
|
2007-04-16 18:53:42 +02:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86OutputUseScreenMonitor(xf86OutputPtr output, Bool use_screen_monitor);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86OutputRename(xf86OutputPtr output, const char *name);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86OutputDestroy(xf86OutputPtr output);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86ProbeOutputModes(ScrnInfoPtr pScrn, int maxX, int maxY);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86SetScrnInfoModes(ScrnInfoPtr pScrn);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2008-03-10 19:29:07 +01:00
|
|
|
#ifdef RANDR_13_INTERFACE
|
2012-03-21 20:55:09 +01:00
|
|
|
#define ScreenInitRetType int
|
2008-03-10 19:29:07 +01:00
|
|
|
#else
|
2012-03-21 20:55:09 +01:00
|
|
|
#define ScreenInitRetType Bool
|
2008-03-10 19:29:07 +01:00
|
|
|
#endif
|
Use libtool convenience libraries and better "symbol" table.
All .a libraries were converted to .la, and instead of linking the
Xorg binary with a mix of .a and .la, and adding some libraries more
then once in the command line, etc, now it generates a single libxorg.la
from all the required convenience libraries, and links with a dummy
xorg.c (that should usually be the file with the main function...).
This removes the requirement of some things like libosandcommon and
libinit, that existed to circumvent problems when linking multiple
.a and .la in the final Xorg binary.
The "symbol table" is now generated dynamically, by a shell script,
with an embedded gawk parser that parses cpp output. The new file
sdksyms.sh is generated by hand by analyzing all Makefile.am's and
making it create a sdksyms.c file, that includes all sdk headers that
will add symbols for the Xorg binary. Module headers aren't read, and
a in 2 files it was required to add a "<hash>ifndef XorgLoader" around
declarations shared between the Xorg binary and libextmod. A few
other changes were added to other sdk headers, like preventing
multiple inclusion, or including other headers to satisfy dependencies.
This should be a lot more portable, and better (hopefully properly)
using libtool to generate convenience libraries.
2008-12-07 05:22:19 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT ScreenInitRetType xf86CrtcScreenInit(ScreenPtr pScreen);
|
2007-03-07 08:15:34 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86InitialConfiguration(ScrnInfoPtr pScrn, Bool canGrow);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86DPMSSet(ScrnInfoPtr pScrn, int PowerManagementMode, int flags);
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86SaveScreen(ScreenPtr pScreen, int mode);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86DisableUnusedFunctions(ScrnInfoPtr pScrn);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT DisplayModePtr
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86OutputFindClosestMode(xf86OutputPtr output, DisplayModePtr desired);
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
|
|
|
|
xf86SetSingleMode(ScrnInfoPtr pScrn, DisplayModePtr desired, Rotation rotation);
|
2007-03-04 08:10:31 +01:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Set the EDID information for the specified output
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86OutputSetEDID(xf86OutputPtr output, xf86MonPtr edid_mon);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the list of modes supported by the EDID information
|
|
|
|
* stored in 'output'
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT DisplayModePtr xf86OutputGetEDIDModes(xf86OutputPtr output);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT xf86MonPtr
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86OutputGetEDID(xf86OutputPtr output, I2CBusPtr pDDCBus);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Initialize dga for this screen
|
|
|
|
*/
|
|
|
|
|
2009-01-05 10:23:39 +01:00
|
|
|
#ifdef XFreeXDGA
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86DiDGAInit(ScreenPtr pScreen, unsigned long dga_address);
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2009-09-30 20:40:19 +02:00
|
|
|
/* this is the real function, used only internally */
|
|
|
|
_X_INTERNAL Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
_xf86_di_dga_init_internal(ScreenPtr pScreen);
|
2009-09-30 20:40:19 +02:00
|
|
|
|
2007-02-16 05:36:20 +01:00
|
|
|
/**
|
|
|
|
* Re-initialize dga for this screen (as when the set of modes changes)
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86DiDGAReInit(ScreenPtr pScreen);
|
2009-01-05 10:23:39 +01:00
|
|
|
#endif
|
2007-02-16 05:36:20 +01:00
|
|
|
|
2009-09-30 20:40:19 +02:00
|
|
|
/* This is the real function, used only internally */
|
|
|
|
_X_INTERNAL Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
_xf86_di_dga_reinit_internal(ScreenPtr pScreen);
|
2009-09-30 20:40:19 +02:00
|
|
|
|
2007-02-16 05:13:15 +01:00
|
|
|
/*
|
|
|
|
* Set the subpixel order reported for the screen using
|
|
|
|
* the information from the outputs
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CrtcSetScreenSubpixelOrder(ScreenPtr pScreen);
|
2007-02-16 05:13:15 +01:00
|
|
|
|
2007-03-05 03:46:41 +01:00
|
|
|
/*
|
|
|
|
* Get a standard string name for a connector type
|
|
|
|
*/
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT const char *xf86ConnectorGetName(xf86ConnectorType connector);
|
2007-03-05 03:46:41 +01:00
|
|
|
|
2007-03-06 07:07:01 +01:00
|
|
|
/*
|
|
|
|
* Using the desired mode information in each crtc, set
|
|
|
|
* modes (used in EnterVT functions, or at server startup)
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86SetDesiredModes(ScrnInfoPtr pScrn);
|
2007-03-06 07:07:01 +01:00
|
|
|
|
2007-03-15 07:59:29 +01:00
|
|
|
/**
|
|
|
|
* Initialize the CRTC-based cursor code. CRTC function vectors must
|
|
|
|
* contain relevant cursor setting functions.
|
|
|
|
*
|
|
|
|
* Driver should call this from ScreenInit function
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86_cursors_init(ScreenPtr screen, int max_width, int max_height, int flags);
|
2007-03-15 07:59:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when anything on the screen is reconfigured.
|
|
|
|
*
|
|
|
|
* Reloads cursor images as needed, then adjusts cursor positions.
|
|
|
|
*
|
|
|
|
* Driver should call this from crtc commit function.
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86_reload_cursors(ScreenPtr screen);
|
2007-03-15 07:59:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called from EnterVT to turn the cursors back on
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86_show_cursors(ScrnInfoPtr scrn);
|
2007-03-15 07:59:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called by the driver to turn cursors off
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86_hide_cursors(ScrnInfoPtr scrn);
|
2007-03-15 07:59:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Clean up CRTC-based cursor code. Driver must call this at CloseScreen time.
|
|
|
|
*/
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86_cursors_fini(ScreenPtr screen);
|
2007-08-21 01:46:38 +02:00
|
|
|
|
2011-08-26 00:41:55 +02:00
|
|
|
/**
|
|
|
|
* Transform the cursor's coordinates based on the crtc transform. Normally
|
|
|
|
* this is done by the server, but if crtc->driverIsPerformingTransform is TRUE,
|
|
|
|
* then the server does not transform the cursor position automatically.
|
|
|
|
*/
|
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CrtcTransformCursorPos(xf86CrtcPtr crtc, int *x, int *y);
|
2011-08-26 00:41:55 +02:00
|
|
|
|
2011-10-10 02:06:14 +02:00
|
|
|
#ifdef XV
|
2007-08-21 01:46:38 +02:00
|
|
|
/*
|
|
|
|
* For overlay video, compute the relevant CRTC and
|
|
|
|
* clip video to that.
|
|
|
|
* wraps xf86XVClipVideoHelper()
|
|
|
|
*/
|
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
|
2007-08-21 01:46:38 +02:00
|
|
|
xf86_crtc_clip_video_helper(ScrnInfoPtr pScrn,
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86CrtcPtr * crtc_ret,
|
|
|
|
xf86CrtcPtr desired_crtc,
|
|
|
|
BoxPtr dst,
|
|
|
|
INT32 *xa,
|
|
|
|
INT32 *xb,
|
|
|
|
INT32 *ya,
|
|
|
|
INT32 *yb,
|
|
|
|
RegionPtr reg, INT32 width, INT32 height);
|
2011-10-10 02:06:14 +02:00
|
|
|
#endif
|
2012-03-21 20:55:09 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT xf86_crtc_notify_proc_ptr
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86_wrap_crtc_notify(ScreenPtr pScreen, xf86_crtc_notify_proc_ptr new);
|
2008-11-04 09:10:08 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86_unwrap_crtc_notify(ScreenPtr pScreen, xf86_crtc_notify_proc_ptr old);
|
2008-11-04 09:10:08 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86_crtc_notify(ScreenPtr pScreen);
|
2008-11-04 09:10:08 +01:00
|
|
|
|
2008-12-17 16:56:26 +01:00
|
|
|
/**
|
|
|
|
* Gamma
|
|
|
|
*/
|
|
|
|
|
2009-01-05 19:49:57 +01:00
|
|
|
extern _X_EXPORT Bool
|
2012-03-21 20:55:09 +01:00
|
|
|
xf86_crtc_supports_gamma(ScrnInfoPtr pScrn);
|
2008-12-17 16:56:26 +01:00
|
|
|
|
2012-06-13 15:17:06 +02:00
|
|
|
extern _X_EXPORT void
|
|
|
|
xf86ProviderSetup(ScrnInfoPtr scrn,
|
|
|
|
const xf86ProviderFuncsRec * funcs, const char *name);
|
|
|
|
|
2012-06-18 15:11:24 +02:00
|
|
|
extern _X_EXPORT void
|
|
|
|
xf86DetachAllCrtc(ScrnInfoPtr scrn);
|
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
#endif /* _XF86CRTC_H_ */
|