drm_drv.c (814aaaa7da4dab462d90e12e7b48b75f2093ccfd) | drm_drv.c (b4b4b5304bd22eab265c9c049cb7fc6b55c4ef3f) |
---|---|
1/** 2 * \file drm_drv.c 3 * Generic driver template 4 * 5 * \author Rickard E. (Rik) Faith <faith@valinux.com> 6 * \author Gareth Hughes <gareth@valinux.com> 7 * 8 * To use this template, you must at least define the following (samples --- 37 unchanged lines hidden (view full) --- 46 * OTHER DEALINGS IN THE SOFTWARE. 47 */ 48 49#include <sys/cdefs.h> 50__FBSDID("$FreeBSD$"); 51 52#include <sys/sysent.h> 53 | 1/** 2 * \file drm_drv.c 3 * Generic driver template 4 * 5 * \author Rickard E. (Rik) Faith <faith@valinux.com> 6 * \author Gareth Hughes <gareth@valinux.com> 7 * 8 * To use this template, you must at least define the following (samples --- 37 unchanged lines hidden (view full) --- 46 * OTHER DEALINGS IN THE SOFTWARE. 47 */ 48 49#include <sys/cdefs.h> 50__FBSDID("$FreeBSD$"); 51 52#include <sys/sysent.h> 53 |
54#include <linux/slab.h> |
|
54#include <dev/drm2/drmP.h> 55#include <dev/drm2/drm_core.h> 56#include <dev/drm2/drm_global.h> 57 58struct sx drm_global_mutex; 59 60/** Ioctl table */ 61static struct drm_ioctl_desc drm_ioctls[] = { --- 144 unchanged lines hidden (view full) --- 206 struct drm_agp_mem *entry, *tempe; 207 208 /* Remove AGP resources, but leave dev->agp 209 intact until drv_cleanup is called. */ 210 list_for_each_entry_safe(entry, tempe, &dev->agp->memory, head) { 211 if (entry->bound) 212 drm_unbind_agp(entry->memory); 213 drm_free_agp(entry->memory, entry->pages); | 55#include <dev/drm2/drmP.h> 56#include <dev/drm2/drm_core.h> 57#include <dev/drm2/drm_global.h> 58 59struct sx drm_global_mutex; 60 61/** Ioctl table */ 62static struct drm_ioctl_desc drm_ioctls[] = { --- 144 unchanged lines hidden (view full) --- 207 struct drm_agp_mem *entry, *tempe; 208 209 /* Remove AGP resources, but leave dev->agp 210 intact until drv_cleanup is called. */ 211 list_for_each_entry_safe(entry, tempe, &dev->agp->memory, head) { 212 if (entry->bound) 213 drm_unbind_agp(entry->memory); 214 drm_free_agp(entry->memory, entry->pages); |
214 free(entry, DRM_MEM_AGPLISTS); | 215 kfree(entry); |
215 } 216 INIT_LIST_HEAD(&dev->agp->memory); 217 218 if (dev->agp->acquired) 219 drm_agp_release(dev); 220 221 dev->agp->acquired = 0; 222 dev->agp->enabled = 0; --- 289 unchanged lines hidden --- | 216 } 217 INIT_LIST_HEAD(&dev->agp->memory); 218 219 if (dev->agp->acquired) 220 drm_agp_release(dev); 221 222 dev->agp->acquired = 0; 223 dev->agp->enabled = 0; --- 289 unchanged lines hidden --- |