patch-2.4.0-test7 linux/drivers/sound/emu10k1/irqmgr.c

Next file: linux/drivers/sound/emu10k1/irqmgr.h
Previous file: linux/drivers/sound/emu10k1/icardwav.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test6/linux/drivers/sound/emu10k1/irqmgr.c linux/drivers/sound/emu10k1/irqmgr.c
@@ -31,6 +31,7 @@
  */
 
 #include "hwaccess.h"
+#include "8010.h"
 #include "cardmi.h"
 #include "cardmo.h"
 #include "irqmgr.h"
@@ -40,16 +41,13 @@
 void emu10k1_interrupt(int irq, void *dev_id, struct pt_regs *regs)
 {
 	struct emu10k1_card *card = (struct emu10k1_card *) dev_id;
-	u32 irqstatus, ptr, tmp;
+	u32 irqstatus, tmp;
 
-	if (!(irqstatus = sblive_readfn0(card, IPR)))
+	if (!(irqstatus = emu10k1_readfn0(card, IPR)))
 		return;
 
 	DPD(4, "emu10k1_interrupt called, irq =  %u\n", irq);
 
-	/* Preserve PTR register */
-	ptr = sblive_readfn0(card, PTR);
-
 	/*
 	 ** NOTE :
 	 ** We do a 'while loop' here cos on certain machines, with both
@@ -85,43 +83,10 @@
 		if (irqstatus)
 			emu10k1_irq_disable(card, irqstatus);
 
-		sblive_writefn0(card, IPR, tmp);
-
-	} while ((irqstatus = sblive_readfn0(card, IPR)));
+		emu10k1_writefn0(card, IPR, tmp);
 
-	sblive_writefn0(card, PTR, ptr);
+	} while ((irqstatus = emu10k1_readfn0(card, IPR)));
 
 	return;
 }
 
-/* Enables the specified irq service */
-
-int emu10k1_irq_enable(struct emu10k1_card *card, u32 irqtype)
-{
-	/*
-	 * TODO :
-	 * put protection here so that we don't accidentally
-	 * screw-up another cardxxx objects irqs
-	 */
-
-	DPD(4, "emu10k1_irq_enable %x\n", irqtype);
-	sblive_wrtmskfn0(card, INTE, irqtype, ENABLE);
-
-	return CTSTATUS_SUCCESS;
-}
-
-/* Disables the specified irq service */
-
-int emu10k1_irq_disable(struct emu10k1_card *card, u32 irqtype)
-{
-	/*
-	 * TODO :
-	 * put protection here so that we don't accidentally
-	 * screw-up another cardxxx objects irqs
-	 */
-
-	DPD(4, "emu10k1_irq_disable %x\n", irqtype);
-	sblive_wrtmskfn0(card, INTE, irqtype, DISABLE);
-
-	return CTSTATUS_SUCCESS;
-}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)