summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_revcompat.c
blob: d5c3390503dbbe4e919ad0ae5eb343b9ccb7fc55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "nouveau_revcompat.h"
#include "nouveau_drv.h"
#include "nv50_display.h"

struct nouveau_drm *
nouveau_newpriv(struct drm_device *dev)
{
	struct drm_nouveau_private *dev_priv = dev->dev_private;
	return dev_priv->newpriv;
}

struct nouveau_bo *
nv50sema(struct drm_device *dev, int crtc)
{
	return nv50_display(dev)->crtc[crtc].sem.bo;
}

struct nouveau_bo *
nvd0sema(struct drm_device *dev, int crtc)
{
	return nvd0_display_crtc_sema(dev, crtc);
}