1#ifndef __NVKM_RAMHT_H__
2#define __NVKM_RAMHT_H__
3#include <core/gpuobj.h>
4
5struct nvkm_ramht {
6	struct nvkm_gpuobj gpuobj;
7	int bits;
8};
9
10int  nvkm_ramht_insert(struct nvkm_ramht *, int chid, u32 handle, u32 context);
11void nvkm_ramht_remove(struct nvkm_ramht *, int cookie);
12int  nvkm_ramht_new(struct nvkm_object *, struct nvkm_object *, u32 size,
13		    u32 align, struct nvkm_ramht **);
14
15static inline void
16nvkm_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