1#ifndef __NOUVEAU_RAMHT_H__ 2#define __NOUVEAU_RAMHT_H__ 3 4#include <core/gpuobj.h> 5 6struct nouveau_ramht { 7 struct nouveau_gpuobj base; 8 int bits; 9}; 10 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 **); 16 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} 22 23#endif 24