summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-11-16 15:22:34 +1000
committerBen Skeggs <bskeggs@redhat.com>2011-12-21 19:01:38 +1000
commita63a97eb6684b280a11161c28ed5f4bbb14a5ffa (patch)
treee5c25e21f331cf232c6a8316abc8de6c615ff236 /drivers
parent84e052e626d88c04c03f79dd95708e556d018d97 (diff)
drm/nvd0/disp: rename sync channel to flip channel
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/nouveau/nvd0_display.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/drm/nouveau/nvd0_display.c b/drivers/gpu/drm/nouveau/nvd0_display.c
index 51e07382847..4002e9f82af 100644
--- a/drivers/gpu/drm/nouveau/nvd0_display.c
+++ b/drivers/gpu/drm/nouveau/nvd0_display.c
@@ -38,7 +38,7 @@
#define EVO_DMA_NR 9
#define EVO_MASTER (0x00)
-#define EVO_SYNC(c) (0x01 + (c))
+#define EVO_FLIP(c) (0x01 + (c))
#define EVO_OVLY(c) (0x05 + (c))
#define EVO_OIMM(c) (0x09 + (c))
#define EVO_CURS(c) (0x0d + (c))
@@ -240,13 +240,13 @@ evo_sync(struct drm_device *dev, int ch)
}
/******************************************************************************
- * Sync channel (aka. page flipping)
+ * Page flipping channel
*****************************************************************************/
struct nouveau_bo *
nvd0_display_crtc_sema(struct drm_device *dev, int crtc)
{
struct nvd0_display *disp = nvd0_display(dev);
- struct evo *evo = &disp->evo[EVO_SYNC(crtc)];
+ struct evo *evo = &disp->evo[EVO_FLIP(crtc)];
return evo->sem.bo;
}
@@ -255,7 +255,7 @@ nvd0_display_flip_stop(struct drm_crtc *crtc)
{
struct nvd0_display *disp = nvd0_display(crtc->dev);
struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
- struct evo *evo = &disp->evo[EVO_SYNC(nv_crtc->index)];
+ struct evo *evo = &disp->evo[EVO_FLIP(nv_crtc->index)];
u32 *push;
push = evo_wait(crtc->dev, evo->idx, 8);
@@ -279,7 +279,7 @@ nvd0_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
struct nouveau_framebuffer *nv_fb = nouveau_framebuffer(fb);
struct nvd0_display *disp = nvd0_display(crtc->dev);
struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
- struct evo *evo = &disp->evo[EVO_SYNC(nv_crtc->index)];
+ struct evo *evo = &disp->evo[EVO_FLIP(nv_crtc->index)];
u64 offset;
u32 *push;
int ret;
@@ -1652,12 +1652,12 @@ nvd0_display_fini(struct drm_device *dev)
{
int i;
- /* fini cursors + overlays + syncs */
+ /* fini cursors + overlays + flips */
for (i = 1; i >= 0; i--) {
evo_fini_pio(dev, EVO_CURS(i));
evo_fini_pio(dev, EVO_OIMM(i));
evo_fini_dma(dev, EVO_OVLY(i));
- evo_fini_dma(dev, EVO_SYNC(i));
+ evo_fini_dma(dev, EVO_FLIP(i));
}
/* fini master */
@@ -1712,9 +1712,9 @@ nvd0_display_init(struct drm_device *dev)
if (ret)
goto error;
- /* init syncs + overlays + cursors */
+ /* init flips + overlays + cursors */
for (i = 0; i < dev->mode_config.num_crtc; i++) {
- if ((ret = evo_init_dma(dev, EVO_SYNC(i))) ||
+ if ((ret = evo_init_dma(dev, EVO_FLIP(i))) ||
(ret = evo_init_dma(dev, EVO_OVLY(i))) ||
(ret = evo_init_pio(dev, EVO_OIMM(i))) ||
(ret = evo_init_pio(dev, EVO_CURS(i))))