Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345408
b: refs/heads/master
c: 94e5c39
h: refs/heads/master
v: v3
  • Loading branch information
Ben Skeggs committed Nov 28, 2012
1 parent 08977de commit a08c155
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd0e3d53f06710e008507ce97f21d9420b245ce7
refs/heads/master: 94e5c39bad56a7b097d3b168b90a72cc1633c8f1
30 changes: 15 additions & 15 deletions trunk/drivers/gpu/drm/nouveau/nvd0_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct evo {
} sem;
};

struct nvd0_display {
struct nvd0_disp {
struct nouveau_gpuobj *mem;
struct nouveau_bo *sync;
struct evo evo[9];
Expand All @@ -79,8 +79,8 @@ struct nvd0_head {
struct nouveau_crtc base;
};

static struct nvd0_display *
nvd0_display(struct drm_device *dev)
static struct nvd0_disp *
nvd0_disp(struct drm_device *dev)
{
return nouveau_display(dev)->priv;
}
Expand Down Expand Up @@ -113,7 +113,7 @@ evo_wait(struct drm_device *dev, int id, int nr)
{
struct nouveau_device *device = nouveau_dev(dev);
struct nouveau_drm *drm = nouveau_drm(dev);
struct nvd0_display *disp = nvd0_display(dev);
struct nvd0_disp *disp = nvd0_disp(dev);
u32 put = nv_rd32(device, 0x640000 + (id * 0x1000)) / 4;

if (put + nr >= (PAGE_SIZE / 4)) {
Expand All @@ -135,7 +135,7 @@ static void
evo_kick(u32 *push, struct drm_device *dev, int id)
{
struct nouveau_device *device = nouveau_dev(dev);
struct nvd0_display *disp = nvd0_display(dev);
struct nvd0_disp *disp = nvd0_disp(dev);

nv_wr32(device, 0x640000 + (id * 0x1000), (push - disp->evo[id].ptr) << 2);
}
Expand All @@ -148,7 +148,7 @@ evo_init_dma(struct drm_device *dev, int ch)
{
struct nouveau_device *device = nouveau_dev(dev);
struct nouveau_drm *drm = nouveau_drm(dev);
struct nvd0_display *disp = nvd0_display(dev);
struct nvd0_disp *disp = nvd0_disp(dev);
u32 flags;

flags = 0x00000000;
Expand Down Expand Up @@ -237,7 +237,7 @@ static int
evo_sync(struct drm_device *dev, int ch)
{
struct nouveau_device *device = nouveau_dev(dev);
struct nvd0_display *disp = nvd0_display(dev);
struct nvd0_disp *disp = nvd0_disp(dev);
u32 *push = evo_wait(dev, ch, 8);
if (push) {
nouveau_bo_wr32(disp->sync, EVO_MAST_NTFY, 0x00000000);
Expand All @@ -260,13 +260,13 @@ evo_sync(struct drm_device *dev, int ch)
struct nouveau_bo *
nvd0_display_crtc_sema(struct drm_device *dev, int crtc)
{
return nvd0_display(dev)->sync;
return nvd0_disp(dev)->sync;
}

void
nvd0_display_flip_stop(struct drm_crtc *crtc)
{
struct nvd0_display *disp = nvd0_display(crtc->dev);
struct nvd0_disp *disp = nvd0_disp(crtc->dev);
struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
struct evo *evo = &disp->evo[EVO_FLIP(nv_crtc->index)];
u32 *push;
Expand All @@ -290,7 +290,7 @@ nvd0_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
struct nouveau_channel *chan, u32 swap_interval)
{
struct nouveau_framebuffer *nv_fb = nouveau_framebuffer(fb);
struct nvd0_display *disp = nvd0_display(crtc->dev);
struct nvd0_disp *disp = nvd0_disp(crtc->dev);
struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
struct evo *evo = &disp->evo[EVO_FLIP(nv_crtc->index)];
u64 offset;
Expand Down Expand Up @@ -1784,7 +1784,7 @@ nvd0_display_bh(unsigned long data)
struct drm_device *dev = (struct drm_device *)data;
struct nouveau_device *device = nouveau_dev(dev);
struct nouveau_drm *drm = nouveau_drm(dev);
struct nvd0_display *disp = nvd0_display(dev);
struct nvd0_disp *disp = nvd0_disp(dev);
u32 mask = 0, crtc = ~0;
int i;

Expand Down Expand Up @@ -1815,7 +1815,7 @@ nvd0_display_bh(unsigned long data)
void
nvd0_display_intr(struct drm_device *dev)
{
struct nvd0_display *disp = nvd0_display(dev);
struct nvd0_disp *disp = nvd0_disp(dev);
struct nouveau_device *device = nouveau_dev(dev);
struct nouveau_drm *drm = nouveau_drm(dev);
u32 intr = nv_rd32(device, 0x610088);
Expand Down Expand Up @@ -1891,7 +1891,7 @@ nvd0_display_fini(struct drm_device *dev)
int
nvd0_display_init(struct drm_device *dev)
{
struct nvd0_display *disp = nvd0_display(dev);
struct nvd0_disp *disp = nvd0_disp(dev);
struct nouveau_device *device = nouveau_dev(dev);
struct nouveau_drm *drm = nouveau_drm(dev);
int ret, i;
Expand Down Expand Up @@ -1971,7 +1971,7 @@ nvd0_display_init(struct drm_device *dev)
void
nvd0_display_destroy(struct drm_device *dev)
{
struct nvd0_display *disp = nvd0_display(dev);
struct nvd0_disp *disp = nvd0_disp(dev);
struct pci_dev *pdev = dev->pdev;
int i;

Expand All @@ -1998,7 +1998,7 @@ nvd0_display_create(struct drm_device *dev)
struct dcb_table *dcb = &drm->vbios.dcb;
struct drm_connector *connector, *tmp;
struct pci_dev *pdev = dev->pdev;
struct nvd0_display *disp;
struct nvd0_disp *disp;
struct dcb_output *dcbe;
int crtcs, ret, i;

Expand Down

0 comments on commit a08c155

Please sign in to comment.