Deleted Added
full compact
drm_drv.c (189128) drm_drv.c (189130)
1/*-
2 * Copyright 1999, 2000 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, 2000 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_drv.c 189128 2009-02-27 23:50:55Z rnoland $");
32__FBSDID("$FreeBSD: head/sys/dev/drm/drm_drv.c 189130 2009-02-28 02:37:55Z rnoland $");
33
34/** @file drm_drv.c
35 * The catch-all file for DRM device support, including module setup/teardown,
36 * open/close, and ioctl dispatch.
37 */
38
39
40#include <sys/limits.h>

--- 477 unchanged lines hidden (view full) ---

518 if (dev->agp && dev->agp->mtrr) {
519 int __unused retcode;
520
521 retcode = drm_mtrr_del(0, dev->agp->info.ai_aperture_base,
522 dev->agp->info.ai_aperture_size, DRM_MTRR_WC);
523 DRM_DEBUG("mtrr_del = %d", retcode);
524 }
525
33
34/** @file drm_drv.c
35 * The catch-all file for DRM device support, including module setup/teardown,
36 * open/close, and ioctl dispatch.
37 */
38
39
40#include <sys/limits.h>

--- 477 unchanged lines hidden (view full) ---

518 if (dev->agp && dev->agp->mtrr) {
519 int __unused retcode;
520
521 retcode = drm_mtrr_del(0, dev->agp->info.ai_aperture_base,
522 dev->agp->info.ai_aperture_size, DRM_MTRR_WC);
523 DRM_DEBUG("mtrr_del = %d", retcode);
524 }
525
526 drm_vblank_cleanup(dev);
527
526 DRM_LOCK();
527 drm_lastclose(dev);
528 DRM_UNLOCK();
529
530 /* Clean up PCI resources allocated by drm_bufs.c. We're not really
531 * worried about resource consumption while the DRM is inactive (between
532 * lastclose and firstopen or unload) because these aren't actually
533 * taking up KVA, just keeping the PCI resource allocated.

--- 303 unchanged lines hidden ---
528 DRM_LOCK();
529 drm_lastclose(dev);
530 DRM_UNLOCK();
531
532 /* Clean up PCI resources allocated by drm_bufs.c. We're not really
533 * worried about resource consumption while the DRM is inactive (between
534 * lastclose and firstopen or unload) because these aren't actually
535 * taking up KVA, just keeping the PCI resource allocated.

--- 303 unchanged lines hidden ---