drm_memory.c (183833) | drm_memory.c (203287) |
---|---|
1/*- 2 *Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. 3 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. 4 * All Rights Reserved. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 15 unchanged lines hidden (view full) --- 24 * 25 * Authors: 26 * Rickard E. (Rik) Faith <faith@valinux.com> 27 * Gareth Hughes <gareth@valinux.com> 28 * 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 *Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. 3 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. 4 * All Rights Reserved. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 15 unchanged lines hidden (view full) --- 24 * 25 * Authors: 26 * Rickard E. (Rik) Faith <faith@valinux.com> 27 * Gareth Hughes <gareth@valinux.com> 28 * 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/drm/drm_memory.c 183833 2008-10-13 18:03:27Z rnoland $"); | 32__FBSDID("$FreeBSD: head/sys/dev/drm/drm_memory.c 203287 2010-01-31 14:25:29Z rnoland $"); |
33 34/** @file drm_memory.c 35 * Wrappers for kernel memory allocation routines, and MTRR management support. 36 * 37 * This file previously implemented a memory consumption tracking system using 38 * the "area" argument for various different types of allocations, but that 39 * has been stripped out for now. 40 */ --- 14 unchanged lines hidden (view full) --- 55MALLOC_DEFINE(DRM_MEM_CMDS, "drm_cmds", "DRM COMMAND Data Structures"); 56MALLOC_DEFINE(DRM_MEM_MAPPINGS, "drm_mapping", "DRM MAPPING Data Structures"); 57MALLOC_DEFINE(DRM_MEM_BUFLISTS, "drm_buflists", "DRM BUFLISTS Data Structures"); 58MALLOC_DEFINE(DRM_MEM_AGPLISTS, "drm_agplists", "DRM AGPLISTS Data Structures"); 59MALLOC_DEFINE(DRM_MEM_CTXBITMAP, "drm_ctxbitmap", 60 "DRM CTXBITMAP Data Structures"); 61MALLOC_DEFINE(DRM_MEM_SGLISTS, "drm_sglists", "DRM SGLISTS Data Structures"); 62MALLOC_DEFINE(DRM_MEM_DRAWABLE, "drm_drawable", "DRM DRAWABLE Data Structures"); | 33 34/** @file drm_memory.c 35 * Wrappers for kernel memory allocation routines, and MTRR management support. 36 * 37 * This file previously implemented a memory consumption tracking system using 38 * the "area" argument for various different types of allocations, but that 39 * has been stripped out for now. 40 */ --- 14 unchanged lines hidden (view full) --- 55MALLOC_DEFINE(DRM_MEM_CMDS, "drm_cmds", "DRM COMMAND Data Structures"); 56MALLOC_DEFINE(DRM_MEM_MAPPINGS, "drm_mapping", "DRM MAPPING Data Structures"); 57MALLOC_DEFINE(DRM_MEM_BUFLISTS, "drm_buflists", "DRM BUFLISTS Data Structures"); 58MALLOC_DEFINE(DRM_MEM_AGPLISTS, "drm_agplists", "DRM AGPLISTS Data Structures"); 59MALLOC_DEFINE(DRM_MEM_CTXBITMAP, "drm_ctxbitmap", 60 "DRM CTXBITMAP Data Structures"); 61MALLOC_DEFINE(DRM_MEM_SGLISTS, "drm_sglists", "DRM SGLISTS Data Structures"); 62MALLOC_DEFINE(DRM_MEM_DRAWABLE, "drm_drawable", "DRM DRAWABLE Data Structures"); |
63MALLOC_DEFINE(DRM_MEM_MM, "drm_sman", "DRM MEMORY MANAGER Data Structures"); 64MALLOC_DEFINE(DRM_MEM_HASHTAB, "drm_hashtab", "DRM HASHTABLE Data Structures"); |
|
63 64void drm_mem_init(void) 65{ 66} 67 68void drm_mem_uninit(void) 69{ 70} --- 43 unchanged lines hidden --- | 65 66void drm_mem_init(void) 67{ 68} 69 70void drm_mem_uninit(void) 71{ 72} --- 43 unchanged lines hidden --- |