Deleted Added
full compact
drm_drv.c (191274) drm_drv.c (194749)
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 191274 2009-04-19 16:54:33Z rnoland $");
32__FBSDID("$FreeBSD: head/sys/dev/drm/drm_drv.c 194749 2009-06-23 18:24:09Z 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>

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

268int drm_detach(device_t kdev)
269{
270 struct drm_device *dev;
271
272 dev = device_get_softc(kdev);
273
274 drm_unload(dev);
275
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>

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

268int drm_detach(device_t kdev)
269{
270 struct drm_device *dev;
271
272 dev = device_get_softc(kdev);
273
274 drm_unload(dev);
275
276 bus_release_resource(dev->device, SYS_RES_IRQ, dev->irqrid, dev->irqr);
276 if (dev->irqr) {
277 bus_release_resource(dev->device, SYS_RES_IRQ, dev->irqrid,
278 dev->irqr);
277
279
278 if (dev->msi_enabled) {
279 pci_release_msi(dev->device);
280 DRM_INFO("MSI released\n");
280 if (dev->msi_enabled) {
281 pci_release_msi(dev->device);
282 DRM_INFO("MSI released\n");
283 }
281 }
282
283 return 0;
284}
285
286#ifndef DRM_DEV_NAME
287#define DRM_DEV_NAME "drm"
288#endif

--- 557 unchanged lines hidden ---
284 }
285
286 return 0;
287}
288
289#ifndef DRM_DEV_NAME
290#define DRM_DEV_NAME "drm"
291#endif

--- 557 unchanged lines hidden ---