aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvd0_display.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-11-16 00:22:34 -0500
committerBen Skeggs <bskeggs@redhat.com>2011-12-21 04:01:38 -0500
commita63a97eb6684b280a11161c28ed5f4bbb14a5ffa (patch)
treee5c25e21f331cf232c6a8316abc8de6c615ff236 /drivers/gpu/drm/nouveau/nvd0_display.c
parent84e052e626d88c04c03f79dd95708e556d018d97 (diff)
drm/nvd0/disp: rename sync channel to flip channel
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvd0_display.c')
-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 51e073828471..4002e9f82af8 100644
--- a/drivers/gpu/drm/nouveau/nvd0_display.c
+++ b/drivers/gpu/drm/nouveau/nvd0_display.c
@@ -38,7 +38,7 @@
38#define EVO_DMA_NR 9 38#define EVO_DMA_NR 9
39 39
40#define EVO_MASTER (0x00) 40#define EVO_MASTER (0x00)
41#define EVO_SYNC(c) (0x01 + (c)) 41#define EVO_FLIP(c) (0x01 + (c))
42#define EVO_OVLY(c) (0x05 + (c)) 42#define EVO_OVLY(c) (0x05 + (c))
43#define EVO_OIMM(c) (0x09 + (c)) 43#define EVO_OIMM(c) (0x09 + (c))
44#define EVO_CURS(c) (0x0d + (c)) 44#define EVO_CURS(c) (0x0d + (c))
@@ -240,13 +240,13 @@ evo_sync(struct drm_device *dev, int ch)
240} 240}
241 241
242/****************************************************************************** 242/******************************************************************************
243 * Sync channel (aka. page flipping) 243 * Page flipping channel
244 *****************************************************************************/ 244 *****************************************************************************/
245struct nouveau_bo * 245struct nouveau_bo *
246nvd0_display_crtc_sema(struct drm_device *dev, int crtc) 246nvd0_display_crtc_sema(struct drm_device *dev, int crtc)
247{ 247{
248 struct nvd0_display *disp = nvd0_display(dev); 248 struct nvd0_display *disp = nvd0_display(dev);
249 struct evo *evo = &disp->evo[EVO_SYNC(crtc)]; 249 struct evo *evo = &disp->evo[EVO_FLIP(crtc)];
250 return evo->sem.bo; 250 return evo->sem.bo;
251} 251}
252 252
@@ -255,7 +255,7 @@ nvd0_display_flip_stop(struct drm_crtc *crtc)
255{ 255{
256 struct nvd0_display *disp = nvd0_display(crtc->dev); 256 struct nvd0_display *disp = nvd0_display(crtc->dev);
257 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); 257 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
258 struct evo *evo = &disp->evo[EVO_SYNC(nv_crtc->index)]; 258 struct evo *evo = &disp->evo[EVO_FLIP(nv_crtc->index)];
259 u32 *push; 259 u32 *push;
260 260
261 push = evo_wait(crtc->dev, evo->idx, 8); 261 push = evo_wait(crtc->dev, evo->idx, 8);
@@ -279,7 +279,7 @@ nvd0_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
279 struct nouveau_framebuffer *nv_fb = nouveau_framebuffer(fb); 279 struct nouveau_framebuffer *nv_fb = nouveau_framebuffer(fb);
280 struct nvd0_display *disp = nvd0_display(crtc->dev); 280 struct nvd0_display *disp = nvd0_display(crtc->dev);
281 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); 281 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
282 struct evo *evo = &disp->evo[EVO_SYNC(nv_crtc->index)]; 282 struct evo *evo = &disp->evo[EVO_FLIP(nv_crtc->index)];
283 u64 offset; 283 u64 offset;
284 u32 *push; 284 u32 *push;
285 int ret; 285 int ret;
@@ -1652,12 +1652,12 @@ nvd0_display_fini(struct drm_device *dev)
1652{ 1652{
1653 int i; 1653 int i;
1654 1654
1655 /* fini cursors + overlays + syncs */ 1655 /* fini cursors + overlays + flips */
1656 for (i = 1; i >= 0; i--) { 1656 for (i = 1; i >= 0; i--) {
1657 evo_fini_pio(dev, EVO_CURS(i)); 1657 evo_fini_pio(dev, EVO_CURS(i));
1658 evo_fini_pio(dev, EVO_OIMM(i)); 1658 evo_fini_pio(dev, EVO_OIMM(i));
1659 evo_fini_dma(dev, EVO_OVLY(i)); 1659 evo_fini_dma(dev, EVO_OVLY(i));
1660 evo_fini_dma(dev, EVO_SYNC(i)); 1660 evo_fini_dma(dev, EVO_FLIP(i));
1661 } 1661 }
1662 1662
1663 /* fini master */ 1663 /* fini master */
@@ -1712,9 +1712,9 @@ nvd0_display_init(struct drm_device *dev)
1712 if (ret) 1712 if (ret)
1713 goto error; 1713 goto error;
1714 1714
1715 /* init syncs + overlays + cursors */ 1715 /* init flips + overlays + cursors */
1716 for (i = 0; i < dev->mode_config.num_crtc; i++) { 1716 for (i = 0; i < dev->mode_config.num_crtc; i++) {
1717 if ((ret = evo_init_dma(dev, EVO_SYNC(i))) || 1717 if ((ret = evo_init_dma(dev, EVO_FLIP(i))) ||
1718 (ret = evo_init_dma(dev, EVO_OVLY(i))) || 1718 (ret = evo_init_dma(dev, EVO_OVLY(i))) ||
1719 (ret = evo_init_pio(dev, EVO_OIMM(i))) || 1719 (ret = evo_init_pio(dev, EVO_OIMM(i))) ||
1720 (ret = evo_init_pio(dev, EVO_CURS(i)))) 1720 (ret = evo_init_pio(dev, EVO_CURS(i))))