]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/gpu/drm/nouveau/nouveau_revcompat.c
d5c3390503dbbe4e919ad0ae5eb343b9ccb7fc55
[karo-tx-linux.git] / drivers / gpu / drm / nouveau / nouveau_revcompat.c
1 #include "nouveau_revcompat.h"
2 #include "nouveau_drv.h"
3 #include "nv50_display.h"
4
5 struct nouveau_drm *
6 nouveau_newpriv(struct drm_device *dev)
7 {
8         struct drm_nouveau_private *dev_priv = dev->dev_private;
9         return dev_priv->newpriv;
10 }
11
12 struct nouveau_bo *
13 nv50sema(struct drm_device *dev, int crtc)
14 {
15         return nv50_display(dev)->crtc[crtc].sem.bo;
16 }
17
18 struct nouveau_bo *
19 nvd0sema(struct drm_device *dev, int crtc)
20 {
21         return nvd0_display_crtc_sema(dev, crtc);
22 }