brintos

brintos / linux-shallow public Read only

0
0
Text · 480 B · d56a594 Raw
26 lines · c
1#ifndef __NVKM_UMEM_H__2#define __NVKM_UMEM_H__3#define nvkm_umem(p) container_of((p), struct nvkm_umem, object)4#include <core/object.h>5#include "mem.h"6 7struct nvkm_umem {8	struct nvkm_object object;9	struct nvkm_mmu *mmu;10	u8 type:8;11	bool mappable:1;12	bool io:1;13 14	struct nvkm_memory *memory;15	struct list_head head;16 17	union {18		struct nvkm_vma *bar;19		void *map;20	};21};22 23int nvkm_umem_new(const struct nvkm_oclass *, void *argv, u32 argc,24		  struct nvkm_object **);25#endif26