Reenabled interrupts in the radeon driver.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17279 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-04-30 13:57:47 +00:00
parent 77a08c68e8
commit 26f4e1eba8
@@ -65,7 +65,6 @@ Radeon_ThreadInterruptWork(vuint8 *regs, device_info *di, uint32 int_status)
} }
#ifndef __HAIKU__
/** Capture interrupt handler */ /** Capture interrupt handler */
static int32 static int32
@@ -143,7 +142,6 @@ Radeon_Interrupt(void *data)
return handled; return handled;
} }
#endif
static int32 static int32
@@ -281,16 +279,12 @@ Radeon_SetupIRQ(device_info *di, char *buffer)
goto err5; goto err5;
} else { } else {
/* otherwise install our interrupt handler */ /* otherwise install our interrupt handler */
#ifdef __HAIKU__
dprintf("radeon: real interrupt handling disabled\n");
#else
result = install_io_interrupt_handler(di->pcii.u.h0.interrupt_line, result = install_io_interrupt_handler(di->pcii.u.h0.interrupt_line,
Radeon_Interrupt, (void *)di, 0); Radeon_Interrupt, (void *)di, 0);
if (result != B_OK) if (result != B_OK)
goto err5; goto err5;
SHOW_INFO(3, "installed IRQ @ %d", di->pcii.u.h0.interrupt_line); SHOW_INFO(3, "installed IRQ @ %d", di->pcii.u.h0.interrupt_line);
#endif
} }
return B_OK; return B_OK;
@@ -327,10 +321,8 @@ Radeon_CleanupIRQ(device_info *di)
cancel_timer((timer *)&di->ti_a); cancel_timer((timer *)&di->ti_a);
cancel_timer((timer *)&di->ti_b); cancel_timer((timer *)&di->ti_b);
} else { } else {
#ifndef __HAIKU__
/* remove interrupt handler */ /* remove interrupt handler */
remove_io_interrupt_handler(di->pcii.u.h0.interrupt_line, Radeon_Interrupt, di); remove_io_interrupt_handler(di->pcii.u.h0.interrupt_line, Radeon_Interrupt, di);
#endif
} }
delete_sem(si->crtc[0].vblank); delete_sem(si->crtc[0].vblank);