Displaying 1 result from an estimated 1 matches for "_drm_agp".
2008 Mar 09
0
[PATCH 1/4] nouveau: add nouveau_addmap_{agp, fb, pci} functions
...SCATTER_GATHER);
+}
+
+static int nouveau_addmap_agp(struct drm_device *dev, struct mem_block *block)
+{
+ struct drm_nouveau_private *dev_priv = dev->dev_private;
+ enum drm_map_type type;
+
+ if (dev_priv->gart_info.type == NOUVEAU_GART_SGDMA)
+ type = _DRM_SCATTER_GATHER;
+ else
+ type = _DRM_AGP;
+
+ return nouveau_addmap(dev, block, block->start, type);
+}
+
struct mem_block* nouveau_mem_alloc(struct drm_device *dev, int alignment,
uint64_t size, int flags,
struct drm_file *file_priv)
@@ -590,21 +623,12 @@ alloc_ok:
int ret = 0;
block->flags|=NOUVEAU_MEM_MAP...