diff options
author | Dave Airlie <airlied@redhat.com> | 2012-06-06 11:22:29 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-06-06 11:22:29 +0100 |
commit | a2714fb09e1e0badbb3e98e24d4b1ed92003bdb9 (patch) | |
tree | 80a4688783ad46e33fc90e8c014f6a32f41e8c42 /src/savage_driver.h | |
parent | de22eab9a21df80fe965dc37d21ba3ac2b9f5fd0 (diff) |
savage: port to new compat API
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/savage_driver.h')
-rw-r--r-- | src/savage_driver.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/savage_driver.h b/src/savage_driver.h index 338cfac..d51b2a1 100644 --- a/src/savage_driver.h +++ b/src/savage_driver.h @@ -82,6 +82,8 @@ #include "GL/glxint.h" #include "xf86drm.h" +#include "compat-api.h" + /* Totals 2 Mbytes which equals 2^16 32-byte vertices divided among up * to 32 clients. */ #define SAVAGE_NUM_BUFFERS 32 @@ -407,7 +409,7 @@ typedef struct _Savage { /* Support for shadowFB and rotation */ unsigned char * ShadowPtr; int ShadowPitch; - void (*PointerMoved)(int index, int x, int y); + void (*PointerMoved)(SCRN_ARG_TYPE arg, int x, int y); /* support for EXA */ ExaDriverPtr EXADriverPtr; @@ -578,9 +580,9 @@ extern void SavageCommonCalcClock(long freq, int min_m, int min_n1, int max_n1, int min_n2, int max_n2, long freq_min, long freq_max, unsigned char *mdiv, unsigned char *ndiv); -void SavageAdjustFrame(int scrnIndex, int y, int x, int flags); +void SavageAdjustFrame(ADJUST_FRAME_ARGS_DECL); void SavageDoAdjustFrame(ScrnInfoPtr pScrn, int y, int x, int crtc2); -Bool SavageSwitchMode(int scrnIndex, DisplayModePtr mode, int flags); +Bool SavageSwitchMode(SWITCH_MODE_ARGS_DECL); /* In savage_cursor.c. */ @@ -606,7 +608,7 @@ Bool SavageI2CInit(ScrnInfoPtr pScrn); /* In savage_shadow.c */ -void SavagePointerMoved(int index, int x, int y); +void SavagePointerMoved(SCRN_ARG_TYPE arg, int x, int y); void SavageRefreshArea(ScrnInfoPtr pScrn, int num, BoxPtr pbox); void SavageRefreshArea8(ScrnInfoPtr pScrn, int num, BoxPtr pbox); void SavageRefreshArea16(ScrnInfoPtr pScrn, int num, BoxPtr pbox); |