1 #ifndef __NVIF_IF000C_H__
2 #define __NVIF_IF000C_H__
13 #define NVIF_VMM_V0_PAGE 0x00
14 #define NVIF_VMM_V0_GET 0x01
15 #define NVIF_VMM_V0_PUT 0x02
16 #define NVIF_VMM_V0_MAP 0x03
17 #define NVIF_VMM_V0_UNMAP 0x04
18 #define NVIF_VMM_V0_PFNMAP 0x05
19 #define NVIF_VMM_V0_PFNCLR 0x06
20 #define NVIF_VMM_V0_MTHD(i) ((i) + 0x80)
22 struct nvif_vmm_page_v0
{
33 struct nvif_vmm_get_v0
{
35 #define NVIF_VMM_GET_V0_ADDR 0x00
36 #define NVIF_VMM_GET_V0_PTES 0x01
37 #define NVIF_VMM_GET_V0_LAZY 0x02
47 struct nvif_vmm_put_v0
{
53 struct nvif_vmm_map_v0
{
63 struct nvif_vmm_unmap_v0
{
69 struct nvif_vmm_pfnmap_v0
{
75 #define NVIF_VMM_PFNMAP_V0_ADDR 0xfffffffffffff000ULL
76 #define NVIF_VMM_PFNMAP_V0_ADDR_SHIFT 12
77 #define NVIF_VMM_PFNMAP_V0_APER 0x00000000000000f0ULL
78 #define NVIF_VMM_PFNMAP_V0_HOST 0x0000000000000000ULL
79 #define NVIF_VMM_PFNMAP_V0_VRAM 0x0000000000000010ULL
80 #define NVIF_VMM_PFNMAP_V0_W 0x0000000000000002ULL
81 #define NVIF_VMM_PFNMAP_V0_V 0x0000000000000001ULL
82 #define NVIF_VMM_PFNMAP_V0_NONE 0x0000000000000000ULL
86 struct nvif_vmm_pfnclr_v0
{