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