drm_stub.c (814aaaa7da4dab462d90e12e7b48b75f2093ccfd) | drm_stub.c (b4b4b5304bd22eab265c9c049cb7fc6b55c4ef3f) |
---|---|
1/** 2 * \file drm_stub.h 3 * Stub support 4 * 5 * \author Rickard E. (Rik) Faith <faith@valinux.com> 6 */ 7 8/* --- 22 unchanged lines hidden (view full) --- 31 * DEALINGS IN THE SOFTWARE. 32 */ 33 34#include <sys/cdefs.h> 35__FBSDID("$FreeBSD$"); 36 37#include <dev/drm2/drmP.h> 38#include <dev/drm2/drm_core.h> | 1/** 2 * \file drm_stub.h 3 * Stub support 4 * 5 * \author Rickard E. (Rik) Faith <faith@valinux.com> 6 */ 7 8/* --- 22 unchanged lines hidden (view full) --- 31 * DEALINGS IN THE SOFTWARE. 32 */ 33 34#include <sys/cdefs.h> 35__FBSDID("$FreeBSD$"); 36 37#include <dev/drm2/drmP.h> 38#include <dev/drm2/drm_core.h> |
39#include <linux/slab.h> |
|
39 40#ifdef DRM_DEBUG_DEFAULT_ON 41unsigned int drm_debug = (DRM_DEBUGBITS_DEBUG | DRM_DEBUGBITS_KMS | 42 DRM_DEBUGBITS_FAILED_IOCTL); 43#else 44unsigned int drm_debug = 0; /* 1 to enable debug output */ 45#endif 46EXPORT_SYMBOL(drm_debug); --- 263 unchanged lines hidden (view full) --- 310 dev->agp && dev->agp->agp_mtrr >= 0) { 311 int retval; 312 retval = drm_mtrr_del(dev->agp->agp_mtrr, 313 dev->agp->agp_info.ai_aperture_base, 314 dev->agp->agp_info.ai_aperture_size, 315 DRM_MTRR_WC); 316 DRM_DEBUG("mtrr_del=%d\n", retval); 317 } | 40 41#ifdef DRM_DEBUG_DEFAULT_ON 42unsigned int drm_debug = (DRM_DEBUGBITS_DEBUG | DRM_DEBUGBITS_KMS | 43 DRM_DEBUGBITS_FAILED_IOCTL); 44#else 45unsigned int drm_debug = 0; /* 1 to enable debug output */ 46#endif 47EXPORT_SYMBOL(drm_debug); --- 263 unchanged lines hidden (view full) --- 311 dev->agp && dev->agp->agp_mtrr >= 0) { 312 int retval; 313 retval = drm_mtrr_del(dev->agp->agp_mtrr, 314 dev->agp->agp_info.ai_aperture_base, 315 dev->agp->agp_info.ai_aperture_size, 316 DRM_MTRR_WC); 317 DRM_DEBUG("mtrr_del=%d\n", retval); 318 } |
318 free(dev->agp, DRM_MEM_AGPLISTS); | 319 kfree(dev->agp); |
319 dev->agp = NULL; 320 321 drm_ht_remove(&dev->map_hash); 322 323 mtx_destroy(&dev->irq_lock); 324 mtx_destroy(&dev->count_lock); 325 mtx_destroy(&dev->event_lock); 326 sx_destroy(&dev->dev_struct_lock); --- 135 unchanged lines hidden (view full) --- 462 drm_mode_group_free(&dev->primary->mode_group); 463 464 if (dev->driver->unload) 465 dev->driver->unload(dev); 466 467 drm_sysctl_cleanup(dev); 468 469 if (drm_core_has_AGP(dev) && dev->agp) { | 320 dev->agp = NULL; 321 322 drm_ht_remove(&dev->map_hash); 323 324 mtx_destroy(&dev->irq_lock); 325 mtx_destroy(&dev->count_lock); 326 mtx_destroy(&dev->event_lock); 327 sx_destroy(&dev->dev_struct_lock); --- 135 unchanged lines hidden (view full) --- 463 drm_mode_group_free(&dev->primary->mode_group); 464 465 if (dev->driver->unload) 466 dev->driver->unload(dev); 467 468 drm_sysctl_cleanup(dev); 469 470 if (drm_core_has_AGP(dev) && dev->agp) { |
470 free(dev->agp, DRM_MEM_AGPLISTS); | 471 kfree(dev->agp); |
471 dev->agp = NULL; 472 } 473 474 drm_vblank_cleanup(dev); 475 476 list_for_each_entry_safe(r_list, list_temp, &dev->maplist, head) 477 drm_rmmap(dev, r_list->map); 478 drm_ht_remove(&dev->map_hash); --- 23 unchanged lines hidden --- | 472 dev->agp = NULL; 473 } 474 475 drm_vblank_cleanup(dev); 476 477 list_for_each_entry_safe(r_list, list_temp, &dev->maplist, head) 478 drm_rmmap(dev, r_list->map); 479 drm_ht_remove(&dev->map_hash); --- 23 unchanged lines hidden --- |