Back to home page

OSCL-LXR

 
 

    


0001 #ifndef __NVIF_MEM_H__
0002 #define __NVIF_MEM_H__
0003 #include "mmu.h"
0004 
0005 struct nvif_mem {
0006     struct nvif_object object;
0007     u8  type;
0008     u8  page;
0009     u64 addr;
0010     u64 size;
0011 };
0012 
0013 int nvif_mem_ctor_type(struct nvif_mmu *mmu, const char *name, s32 oclass,
0014                int type, u8 page, u64 size, void *argv, u32 argc,
0015                struct nvif_mem *);
0016 int nvif_mem_ctor(struct nvif_mmu *mmu, const char *name, s32 oclass, u8 type,
0017           u8 page, u64 size, void *argv, u32 argc, struct nvif_mem *);
0018 void nvif_mem_dtor(struct nvif_mem *);
0019 
0020 int nvif_mem_ctor_map(struct nvif_mmu *, const char *name, u8 type, u64 size,
0021               struct nvif_mem *);
0022 #endif