add 'SG' map type identifier string (pci scatter/gather) to /proc vm info
authorLeif Delgass <ldelgass@users.sourceforge.net>
Sat, 5 Apr 2003 19:49:16 +0000 (19:49 +0000)
committerLeif Delgass <ldelgass@users.sourceforge.net>
Sat, 5 Apr 2003 19:49:16 +0000 (19:49 +0000)
linux-core/drm_proc.c
linux/drm_proc.h

index 510df67..8524d20 100644 (file)
@@ -169,9 +169,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, and
-                                   _DRM_AGP. */
-       const char   *types[] = { "FB", "REG", "SHM", "AGP" };
+                                   _DRM_REGISTERS, _DRM_SHM, _DRM_AGP, and
+                                   _DRM_SCATTER_GATHER. */
+       const char   *types[] = { "FB", "REG", "SHM", "AGP", "SG" };
        const char   *type;
        int          i;
 
@@ -190,7 +190,7 @@ static int DRM(_vm_info)(char *buf, char **start, off_t offset, int request,
                r_list = (drm_map_list_t *)list;
                map = r_list->map;
                if(!map) continue;
-               if (map->type < 0 || map->type > 3) type = "??";
+               if (map->type < 0 || map->type > 4) type = "??";
                else                                type = types[map->type];
                DRM_PROC_PRINT("%4d 0x%08lx 0x%08lx %4.4s  0x%02x 0x%08lx ",
                               i,
index 510df67..8524d20 100644 (file)
@@ -169,9 +169,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, and
-                                   _DRM_AGP. */
-       const char   *types[] = { "FB", "REG", "SHM", "AGP" };
+                                   _DRM_REGISTERS, _DRM_SHM, _DRM_AGP, and
+                                   _DRM_SCATTER_GATHER. */
+       const char   *types[] = { "FB", "REG", "SHM", "AGP", "SG" };
        const char   *type;
        int          i;
 
@@ -190,7 +190,7 @@ static int DRM(_vm_info)(char *buf, char **start, off_t offset, int request,
                r_list = (drm_map_list_t *)list;
                map = r_list->map;
                if(!map) continue;
-               if (map->type < 0 || map->type > 3) type = "??";
+               if (map->type < 0 || map->type > 4) type = "??";
                else                                type = types[map->type];
                DRM_PROC_PRINT("%4d 0x%08lx 0x%08lx %4.4s  0x%02x 0x%08lx ",
                               i,