diff options
author | Egbert Eich <eich@suse.de> | 2004-08-02 19:35:07 +0000 |
---|---|---|
committer | Egbert Eich <eich@suse.de> | 2004-08-02 19:35:07 +0000 |
commit | e6b9cc79c204420117a1f7b23d131ec24923d612 (patch) | |
tree | dcad834ba765331887e89ca14bce058538a42d2f /hw/xfree86/common/xf86str.h | |
parent | b759da83ae62a897b7727d9180a68b962b571286 (diff) |
Removed distro specific stuff.
Fixed FreeType module to build with FreeType versions older than 2.1.7.
Fixed typo.
Added vtSema to protect call of driver DPMS function.
removed unneeded variable
Modified RandR driver hook to reduce the number of function calls to one.
Function is sufficiently generic to be extended in the future.
Diffstat (limited to 'hw/xfree86/common/xf86str.h')
-rw-r--r-- | hw/xfree86/common/xf86str.h | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/hw/xfree86/common/xf86str.h b/hw/xfree86/common/xf86str.h index f2394aa10..770233033 100644 --- a/hw/xfree86/common/xf86str.h +++ b/hw/xfree86/common/xf86str.h @@ -476,7 +476,7 @@ typedef struct _confdrirec { /* These values should be adjusted when new fields are added to ScrnInfoRec */ #define NUM_RESERVED_INTS 16 #define NUM_RESERVED_POINTERS 15 -#define NUM_RESERVED_FUNCS 10 +#define NUM_RESERVED_FUNCS 11 typedef pointer (*funcPointer)(void); @@ -737,6 +737,24 @@ typedef struct { PixmapPtr pPix; } DGADeviceRec, *DGADevicePtr; +typedef enum { + RR_GET_INFO, + RR_SET_CONFIG +} xorgRRFuncFlags; + +typedef struct { + int rotation; + int rate; + int width; + int height; +} xorgRRConfig; + +typedef union { + short RRRotations; + xorgRRConfig RRConfig; +} xorgRRRotation, *xorgRRRotationPtr; + + /* * Flags for driver Probe() functions. */ @@ -767,8 +785,9 @@ typedef int xf86HandleMessageProc (int, const char*, const char*, char**); typedef void xf86DPMSSetProc (ScrnInfoPtr, int, int); typedef void xf86LoadPaletteProc (ScrnInfoPtr, int, int *, LOCO *, VisualPtr); typedef void xf86SetOverscanProc (ScrnInfoPtr, int); -typedef Bool xf86RRGetInfoProc (ScrnInfoPtr, unsigned short *); -typedef Bool xf86RRSetConfigProc (ScrnInfoPtr, int, int, int, int); +typedef Bool xorgRRFuncProc (ScrnInfoPtr, xorgRRFuncFlags, + xorgRRRotationPtr); + /* * ScrnInfoRec @@ -923,8 +942,7 @@ typedef struct _ScrnInfoRec { xf86DPMSSetProc *DPMSSet; xf86LoadPaletteProc *LoadPalette; xf86SetOverscanProc *SetOverscan; - xf86RRGetInfoProc *RRGetInfo; - xf86RRSetConfigProc *RRSetConfig; + xorgRRFuncProc *RRFunc; /* * This can be used when the minor ABI version is incremented. |