From ed165a25292740d5d3ef7e78dc04a6a3402562aa Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Sat, 1 Jan 2005 20:03:15 +0000 Subject: Added a new DRM map type _DRM_CONSISTENT for consistent PCI memory. It uses drm_pci_alloc/free for allocating/freeing the memory. Only implemented in the Linux DRM so far. --- linux-core/drm_proc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'linux-core/drm_proc.c') diff --git a/linux-core/drm_proc.c b/linux-core/drm_proc.c index 5a92fb30..b385df5f 100644 --- a/linux-core/drm_proc.c +++ b/linux-core/drm_proc.c @@ -211,9 +211,9 @@ static int drm__vm_info(char *buf, char **start, off_t offset, int request, struct list_head *list; /* Hardcoded from _DRM_FRAME_BUFFER, - _DRM_REGISTERS, _DRM_SHM, _DRM_AGP, and - _DRM_SCATTER_GATHER. */ - const char *types[] = { "FB", "REG", "SHM", "AGP", "SG" }; + _DRM_REGISTERS, _DRM_SHM, _DRM_AGP, + _DRM_SCATTER_GATHER, and _DRM_CONSISTENT. */ + const char *types[] = { "FB", "REG", "SHM", "AGP", "SG", "PCI" }; const char *type; int i; @@ -234,7 +234,7 @@ static int drm__vm_info(char *buf, char **start, off_t offset, int request, map = r_list->map; if (!map) continue; - if (map->type < 0 || map->type > 4) + if (map->type < 0 || map->type > 5) type = "??"; else type = types[map->type]; -- cgit v1.2.3