ARM: pmu: add support for interrupt-affinity property
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / nvkm / engine / gr / nv40.h
blobd852bd6de57139a4bb2b4c8896ed986bdacbaa95
1 #ifndef __NV40_GR_H__
2 #define __NV40_GR_H__
3 #include <engine/gr.h>
5 #include <core/device.h>
6 struct nvkm_gpuobj;
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
11 static inline int
12 nv44_gr_class(void *priv)
14 struct nvkm_device *device = nv_device(priv);
16 if ((device->chipset & 0xf0) == 0x60)
17 return 1;
19 return !(0x0baf & (1 << (device->chipset & 0x0f)));
22 int nv40_grctx_init(struct nvkm_device *, u32 *size);
23 void nv40_grctx_fill(struct nvkm_device *, struct nvkm_gpuobj *);
24 #endif