Deleted Added
full compact
mach64_irq.c (182080) mach64_irq.c (189130)
1/* mach64_irq.c -- IRQ handling for ATI Mach64 -*- linux-c -*-
2 * Created: Tue Feb 25, 2003 by Leif Delgass, based on radeon_irq.c/r128_irq.c
3 */
4/*-
5 * Copyright (C) The Weather Channel, Inc. 2002.
6 * Copyright 2003 Leif Delgass
7 * All Rights Reserved.
8 *

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

31 *
32 * Authors:
33 * Keith Whitwell <keith@tungstengraphics.com>
34 * Eric Anholt <anholt@FreeBSD.org>
35 * Leif Delgass <ldelgass@retinalburn.net>
36 */
37
38#include <sys/cdefs.h>
1/* mach64_irq.c -- IRQ handling for ATI Mach64 -*- linux-c -*-
2 * Created: Tue Feb 25, 2003 by Leif Delgass, based on radeon_irq.c/r128_irq.c
3 */
4/*-
5 * Copyright (C) The Weather Channel, Inc. 2002.
6 * Copyright 2003 Leif Delgass
7 * All Rights Reserved.
8 *

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

31 *
32 * Authors:
33 * Keith Whitwell <keith@tungstengraphics.com>
34 * Eric Anholt <anholt@FreeBSD.org>
35 * Leif Delgass <ldelgass@retinalburn.net>
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/dev/drm/mach64_irq.c 182080 2008-08-23 20:59:12Z rnoland $");
39__FBSDID("$FreeBSD: head/sys/dev/drm/mach64_irq.c 189130 2009-02-28 02:37:55Z rnoland $");
40
41#include "dev/drm/drmP.h"
42#include "dev/drm/drm.h"
43#include "dev/drm/mach64_drm.h"
44#include "dev/drm/mach64_drv.h"
45
46irqreturn_t mach64_driver_irq_handler(DRM_IRQ_ARGS)
47{

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

141
142 DRM_DEBUG("before install CRTC_INT_CTNL: 0x%08x\n", status);
143
144 mach64_disable_vblank_local(dev, 0);
145}
146
147int mach64_driver_irq_postinstall(struct drm_device * dev)
148{
40
41#include "dev/drm/drmP.h"
42#include "dev/drm/drm.h"
43#include "dev/drm/mach64_drm.h"
44#include "dev/drm/mach64_drv.h"
45
46irqreturn_t mach64_driver_irq_handler(DRM_IRQ_ARGS)
47{

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

141
142 DRM_DEBUG("before install CRTC_INT_CTNL: 0x%08x\n", status);
143
144 mach64_disable_vblank_local(dev, 0);
145}
146
147int mach64_driver_irq_postinstall(struct drm_device * dev)
148{
149 return drm_vblank_init(dev, 1);
149 return 0;
150}
151
152void mach64_driver_irq_uninstall(struct drm_device * dev)
153{
154 drm_mach64_private_t *dev_priv = dev->dev_private;
155 if (!dev_priv)
156 return;
157
158 mach64_disable_vblank_local(dev, 0);
159
160 DRM_DEBUG("after uninstall CRTC_INT_CTNL: 0x%08x\n",
161 MACH64_READ(MACH64_CRTC_INT_CNTL));
162}
150}
151
152void mach64_driver_irq_uninstall(struct drm_device * dev)
153{
154 drm_mach64_private_t *dev_priv = dev->dev_private;
155 if (!dev_priv)
156 return;
157
158 mach64_disable_vblank_local(dev, 0);
159
160 DRM_DEBUG("after uninstall CRTC_INT_CTNL: 0x%08x\n",
161 MACH64_READ(MACH64_CRTC_INT_CNTL));
162}