29 #define NV04_PDMA_SIZE (128 * 1024 * 1024)
30 #define NV04_PDMA_PAGE ( 4 * 1024)
40 pte = 0x00008 + (pte * 4);
44 while (cnt && page--) {
45 nv_wo32(pgt, pte, phys | 3);
56 pte = 0x00008 + (pte * 4);
58 nv_wo32(pgt, pte, 0x00000000);
94 *pobject = nv_object(priv);
100 priv->
base.dma_bits = 32;
101 priv->
base.pgt_bits = 32 - 12;
102 priv->
base.spg_shift = 12;
103 priv->
base.lpg_shift = 12;
104 priv->
base.map_sg = nv04_vm_map_sg;
105 priv->
base.unmap = nv04_vm_unmap;
106 priv->
base.flush = nv04_vm_flush;
116 &priv->
vm->pgt[0].obj[0]);
117 dma = priv->
vm->pgt[0].obj[0];
118 priv->
vm->pgt[0].refcount[0] = 1;
122 nv_wo32(dma, 0x00000, 0x0002103d);
132 nouveau_gpuobj_ref(
NULL, &priv->
vm->pgt[0].obj[0]);
146 .ctor = nv04_vmmgr_ctor,