drm/nouveau: port all engines to new engine module format
[deliverable/linux.git] / drivers / gpu / drm / nouveau / core / include / core / ramht.h
CommitLineData
479dcaea
BS
1#ifndef __NOUVEAU_RAMHT_H__
2#define __NOUVEAU_RAMHT_H__
3
ebb945a9 4#include <core/gpuobj.h>
a8eaebc6
BS
5
6struct nouveau_ramht {
ebb945a9 7 struct nouveau_gpuobj base;
e05c5a31 8 int bits;
a8eaebc6
BS
9};
10
ebb945a9
BS
11int nouveau_ramht_insert(struct nouveau_ramht *, int chid,
12 u32 handle, u32 context);
13void nouveau_ramht_remove(struct nouveau_ramht *, int cookie);
14int nouveau_ramht_new(struct nouveau_object *, struct nouveau_object *,
15 u32 size, u32 align, struct nouveau_ramht **);
a8eaebc6 16
ebb945a9
BS
17static inline void
18nouveau_ramht_ref(struct nouveau_ramht *obj, struct nouveau_ramht **ref)
19{
20 nouveau_gpuobj_ref(&obj->base, (struct nouveau_gpuobj **)ref);
21}
479dcaea
BS
22
23#endif
This page took 0.196168 seconds and 5 git commands to generate.