Deleted Added
full compact
radeon_irq.c (189051) radeon_irq.c (189130)
1/* radeon_irq.c -- IRQ handling for radeon -*- linux-c -*- */
2/*-
3 * Copyright (C) The Weather Channel, Inc. 2002. All Rights Reserved.
4 *
5 * The Weather Channel (TM) funded Tungsten Graphics to develop the
6 * initial release of the Radeon 8500 driver under the XFree86 license.
7 * This notice must be preserved.
8 *

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

26 * DEALINGS IN THE SOFTWARE.
27 *
28 * Authors:
29 * Keith Whitwell <keith@tungstengraphics.com>
30 * Michel D���zer <michel@daenzer.net>
31 */
32
33#include <sys/cdefs.h>
1/* radeon_irq.c -- IRQ handling for radeon -*- linux-c -*- */
2/*-
3 * Copyright (C) The Weather Channel, Inc. 2002. All Rights Reserved.
4 *
5 * The Weather Channel (TM) funded Tungsten Graphics to develop the
6 * initial release of the Radeon 8500 driver under the XFree86 license.
7 * This notice must be preserved.
8 *

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

26 * DEALINGS IN THE SOFTWARE.
27 *
28 * Authors:
29 * Keith Whitwell <keith@tungstengraphics.com>
30 * Michel D���zer <michel@daenzer.net>
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/dev/drm/radeon_irq.c 189051 2009-02-25 18:50:35Z rnoland $");
34__FBSDID("$FreeBSD: head/sys/dev/drm/radeon_irq.c 189130 2009-02-28 02:37:55Z rnoland $");
35
36#include "dev/drm/drmP.h"
37#include "dev/drm/drm.h"
38#include "dev/drm/radeon_drm.h"
39#include "dev/drm/radeon_drv.h"
40
41void radeon_irq_set_state(struct drm_device *dev, u32 mask, int state)
42{

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

367 /* Clear bits if they're already high */
368 radeon_acknowledge_irqs(dev_priv, &dummy);
369}
370
371int radeon_driver_irq_postinstall(struct drm_device * dev)
372{
373 drm_radeon_private_t *dev_priv =
374 (drm_radeon_private_t *) dev->dev_private;
35
36#include "dev/drm/drmP.h"
37#include "dev/drm/drm.h"
38#include "dev/drm/radeon_drm.h"
39#include "dev/drm/radeon_drv.h"
40
41void radeon_irq_set_state(struct drm_device *dev, u32 mask, int state)
42{

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

367 /* Clear bits if they're already high */
368 radeon_acknowledge_irqs(dev_priv, &dummy);
369}
370
371int radeon_driver_irq_postinstall(struct drm_device * dev)
372{
373 drm_radeon_private_t *dev_priv =
374 (drm_radeon_private_t *) dev->dev_private;
375 int ret;
376
377 atomic_set(&dev_priv->swi_emitted, 0);
378 DRM_INIT_WAITQUEUE(&dev_priv->swi_queue);
379
375
376 atomic_set(&dev_priv->swi_emitted, 0);
377 DRM_INIT_WAITQUEUE(&dev_priv->swi_queue);
378
380 ret = drm_vblank_init(dev, 2);
381 if (ret)
382 return ret;
383
384 dev->max_vblank_count = 0x001fffff;
385
386 radeon_irq_set_state(dev, RADEON_SW_INT_ENABLE, 1);
387
388 return 0;
389}
390
391void radeon_driver_irq_uninstall(struct drm_device * dev)

--- 32 unchanged lines hidden ---
379 dev->max_vblank_count = 0x001fffff;
380
381 radeon_irq_set_state(dev, RADEON_SW_INT_ENABLE, 1);
382
383 return 0;
384}
385
386void radeon_driver_irq_uninstall(struct drm_device * dev)

--- 32 unchanged lines hidden ---