aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/include/nvkm/core/ramht.h
blob: cc132eaa10cca05ba96e015ee3beeba32d8459ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __NVKM_RAMHT_H__
#define __NVKM_RAMHT_H__
#include <core/gpuobj.h>

struct nvkm_ramht {
	struct nvkm_gpuobj gpuobj;
	int bits;
};

int  nvkm_ramht_insert(struct nvkm_ramht *, int chid, u32 handle, u32 context);
void nvkm_ramht_remove(struct nvkm_ramht *, int cookie);
int  nvkm_ramht_new(struct nvkm_object *, struct nvkm_object *, u32 size,
		    u32 align, struct nvkm_ramht **);

static inline void
nvkm_ramht_ref(struct nvkm_ramht *obj, struct nvkm_ramht **ref)
{
	nvkm_gpuobj_ref(&obj->gpuobj, (struct nvkm_gpuobj **)ref);
}
#endif