1 #ifndef __NVKM_RAMHT_H__
2 #define __NVKM_RAMHT_H__
3 #include <core/gpuobj.h>
4 
5 struct nvkm_ramht {
6 	struct nvkm_gpuobj gpuobj;
7 	int bits;
8 };
9 
10 int  nvkm_ramht_insert(struct nvkm_ramht *, int chid, u32 handle, u32 context);
11 void nvkm_ramht_remove(struct nvkm_ramht *, int cookie);
12 int  nvkm_ramht_new(struct nvkm_object *, struct nvkm_object *, u32 size,
13 		    u32 align, struct nvkm_ramht **);
14 
15 static inline void
nvkm_ramht_ref(struct nvkm_ramht * obj,struct nvkm_ramht ** ref)16 nvkm_ramht_ref(struct nvkm_ramht *obj, struct nvkm_ramht **ref)
17 {
18 	nvkm_gpuobj_ref(&obj->gpuobj, (struct nvkm_gpuobj **)ref);
19 }
20 #endif
21