Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / nouveau / core / engine / graph / nv40.h
1 #ifndef __NV40_GRAPH_H__
2 #define __NV40_GRAPH_H__
3
4 /* returns 1 if device is one of the nv4x using the 0x4497 object class,
5  * helpful to determine a number of other hardware features
6  */
7 static inline int
8 nv44_graph_class(void *priv)
9 {
10         struct nouveau_device *device = nv_device(priv);
11
12         if ((device->chipset & 0xf0) == 0x60)
13                 return 1;
14
15         return !(0x0baf & (1 << (device->chipset & 0x0f)));
16 }
17
18 int  nv40_grctx_init(struct nouveau_device *, u32 *size);
19 void nv40_grctx_fill(struct nouveau_device *, struct nouveau_gpuobj *);
20
21 #endif