Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / drivers / gpu / drm / nouveau / nvkm / engine / gr / nv40.h
1 #ifndef __NV40_GR_H__
2 #define __NV40_GR_H__
3 #include <engine/gr.h>
4
5 #include <core/device.h>
6 struct nvkm_gpuobj;
7
8 /* returns 1 if device is one of the nv4x using the 0x4497 object class,
9  * helpful to determine a number of other hardware features
10  */
11 static inline int
12 nv44_gr_class(void *priv)
13 {
14         struct nvkm_device *device = nv_device(priv);
15
16         if ((device->chipset & 0xf0) == 0x60)
17                 return 1;
18
19         return !(0x0baf & (1 << (device->chipset & 0x0f)));
20 }
21
22 int  nv40_grctx_init(struct nvkm_device *, u32 *size);
23 void nv40_grctx_fill(struct nvkm_device *, struct nvkm_gpuobj *);
24 #endif