diff options
Diffstat (limited to 'drivers/char/drm/radeon_drv.h')
-rw-r--r-- | drivers/char/drm/radeon_drv.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/drivers/char/drm/radeon_drv.h b/drivers/char/drm/radeon_drv.h index 173ae620223a..b791420bd3d9 100644 --- a/drivers/char/drm/radeon_drv.h +++ b/drivers/char/drm/radeon_drv.h | |||
@@ -304,6 +304,9 @@ typedef struct drm_radeon_private { | |||
304 | 304 | ||
305 | u32 scratch_ages[5]; | 305 | u32 scratch_ages[5]; |
306 | 306 | ||
307 | unsigned int crtc_last_cnt; | ||
308 | unsigned int crtc2_last_cnt; | ||
309 | |||
307 | /* starting from here on, data is preserved accross an open */ | 310 | /* starting from here on, data is preserved accross an open */ |
308 | uint32_t flags; /* see radeon_chip_flags */ | 311 | uint32_t flags; /* see radeon_chip_flags */ |
309 | unsigned long fb_aper_offset; | 312 | unsigned long fb_aper_offset; |
@@ -374,13 +377,13 @@ extern int radeon_irq_emit(struct drm_device *dev, void *data, struct drm_file * | |||
374 | extern int radeon_irq_wait(struct drm_device *dev, void *data, struct drm_file *file_priv); | 377 | extern int radeon_irq_wait(struct drm_device *dev, void *data, struct drm_file *file_priv); |
375 | 378 | ||
376 | extern void radeon_do_release(struct drm_device * dev); | 379 | extern void radeon_do_release(struct drm_device * dev); |
377 | extern int radeon_driver_vblank_wait(struct drm_device * dev, | 380 | extern u32 radeon_get_vblank_counter(struct drm_device *dev, int crtc); |
378 | unsigned int *sequence); | 381 | extern int radeon_enable_vblank(struct drm_device *dev, int crtc); |
379 | extern int radeon_driver_vblank_wait2(struct drm_device * dev, | 382 | extern void radeon_disable_vblank(struct drm_device *dev, int crtc); |
380 | unsigned int *sequence); | 383 | extern void radeon_do_release(struct drm_device * dev); |
381 | extern irqreturn_t radeon_driver_irq_handler(DRM_IRQ_ARGS); | 384 | extern irqreturn_t radeon_driver_irq_handler(DRM_IRQ_ARGS); |
382 | extern void radeon_driver_irq_preinstall(struct drm_device * dev); | 385 | extern void radeon_driver_irq_preinstall(struct drm_device * dev); |
383 | extern void radeon_driver_irq_postinstall(struct drm_device * dev); | 386 | extern int radeon_driver_irq_postinstall(struct drm_device * dev); |
384 | extern void radeon_driver_irq_uninstall(struct drm_device * dev); | 387 | extern void radeon_driver_irq_uninstall(struct drm_device * dev); |
385 | extern int radeon_vblank_crtc_get(struct drm_device *dev); | 388 | extern int radeon_vblank_crtc_get(struct drm_device *dev); |
386 | extern int radeon_vblank_crtc_set(struct drm_device *dev, int64_t value); | 389 | extern int radeon_vblank_crtc_set(struct drm_device *dev, int64_t value); |
@@ -558,6 +561,12 @@ extern int r300_do_cp_cmdbuf(struct drm_device * dev, | |||
558 | ? DRM_READ32( dev_priv->ring_rptr, RADEON_SCRATCHOFF(x) ) \ | 561 | ? DRM_READ32( dev_priv->ring_rptr, RADEON_SCRATCHOFF(x) ) \ |
559 | : RADEON_READ( RADEON_SCRATCH_REG0 + 4*(x) ) ) | 562 | : RADEON_READ( RADEON_SCRATCH_REG0 + 4*(x) ) ) |
560 | 563 | ||
564 | #define RADEON_CRTC_CRNT_FRAME 0x0214 | ||
565 | #define RADEON_CRTC2_CRNT_FRAME 0x0314 | ||
566 | |||
567 | #define RADEON_CRTC_STATUS 0x005c | ||
568 | #define RADEON_CRTC2_STATUS 0x03fc | ||
569 | |||
561 | #define RADEON_GEN_INT_CNTL 0x0040 | 570 | #define RADEON_GEN_INT_CNTL 0x0040 |
562 | # define RADEON_CRTC_VBLANK_MASK (1 << 0) | 571 | # define RADEON_CRTC_VBLANK_MASK (1 << 0) |
563 | # define RADEON_CRTC2_VBLANK_MASK (1 << 9) | 572 | # define RADEON_CRTC2_VBLANK_MASK (1 << 9) |