r128_irq.c (182080) | r128_irq.c (189130) |
---|---|
1/* r128_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 * Eric Anholt <anholt@FreeBSD.org> 31 */ 32 33#include <sys/cdefs.h> | 1/* r128_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 * Eric Anholt <anholt@FreeBSD.org> 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/dev/drm/r128_irq.c 182080 2008-08-23 20:59:12Z rnoland $"); | 34__FBSDID("$FreeBSD: head/sys/dev/drm/r128_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/r128_drm.h" 39#include "dev/drm/r128_drv.h" 40 41u32 r128_get_vblank_counter(struct drm_device *dev, int crtc) 42{ --- 57 unchanged lines hidden (view full) --- 100 /* Disable *all* interrupts */ 101 R128_WRITE(R128_GEN_INT_CNTL, 0); 102 /* Clear vblank bit if it's already high */ 103 R128_WRITE(R128_GEN_INT_STATUS, R128_CRTC_VBLANK_INT_AK); 104} 105 106int r128_driver_irq_postinstall(struct drm_device * dev) 107{ | 35 36#include "dev/drm/drmP.h" 37#include "dev/drm/drm.h" 38#include "dev/drm/r128_drm.h" 39#include "dev/drm/r128_drv.h" 40 41u32 r128_get_vblank_counter(struct drm_device *dev, int crtc) 42{ --- 57 unchanged lines hidden (view full) --- 100 /* Disable *all* interrupts */ 101 R128_WRITE(R128_GEN_INT_CNTL, 0); 102 /* Clear vblank bit if it's already high */ 103 R128_WRITE(R128_GEN_INT_STATUS, R128_CRTC_VBLANK_INT_AK); 104} 105 106int r128_driver_irq_postinstall(struct drm_device * dev) 107{ |
108 return drm_vblank_init(dev, 1); | 108 return 0; |
109} 110 111void r128_driver_irq_uninstall(struct drm_device * dev) 112{ 113 drm_r128_private_t *dev_priv = (drm_r128_private_t *) dev->dev_private; 114 if (!dev_priv) 115 return; 116 117 /* Disable *all* interrupts */ 118 R128_WRITE(R128_GEN_INT_CNTL, 0); 119} | 109} 110 111void r128_driver_irq_uninstall(struct drm_device * dev) 112{ 113 drm_r128_private_t *dev_priv = (drm_r128_private_t *) dev->dev_private; 114 if (!dev_priv) 115 return; 116 117 /* Disable *all* interrupts */ 118 R128_WRITE(R128_GEN_INT_CNTL, 0); 119} |