summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2005-01-14 00:56:23 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2005-01-14 00:56:23 +0000
commitaa862c90c54caa99b06cae7299a0e62bb9bab620 (patch)
treef7d6b4c8a222ec180bc5a907e8040563113173c9 /sys/arch
parent6dbafd0712597c253142f4809bc41b8b94774f4f (diff)
commit this #if 0 del now.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm/xscale/pxa2x0_intr.h67
1 files changed, 1 insertions, 66 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_intr.h b/sys/arch/arm/xscale/pxa2x0_intr.h
index 0fbc5ac1005..7fdef20de0d 100644
--- a/sys/arch/arm/xscale/pxa2x0_intr.h
+++ b/sys/arch/arm/xscale/pxa2x0_intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pxa2x0_intr.h,v 1.4 2005/01/04 23:37:13 drahn Exp $ */
+/* $OpenBSD: pxa2x0_intr.h,v 1.5 2005/01/14 00:56:22 drahn Exp $ */
/* $NetBSD: pxa2x0_intr.h,v 1.4 2003/07/05 06:53:08 dogcow Exp $ */
/* Derived from i80321_intr.h */
@@ -64,71 +64,6 @@ extern int pxa2x0_imask[];
void pxa2x0_do_pending(void);
#define SI_TO_IRQBIT(si) (1U<<(si))
-#if 0
-/*
- * Cotulla's integrated ICU doesn't have IRQ0..7, so
- * we map software interrupts to bit 0..3
- */
-
-static __inline void
-pxa2x0_setipl(int new)
-{
- current_spl_level = new;
- intr_mask = pxa2x0_imask[current_spl_level];
- write_icu( SAIPIC_MR, intr_mask );
-}
-
-
-static __inline void
-pxa2x0_splx(int new)
-{
- int psw;
-
- psw = disable_interrupts(I32_bit);
- pxa2x0_setipl(new);
- restore_interrupts(psw);
-
- /* If there are software interrupts to process, do it. */
- if (softint_pending & intr_mask)
- pxa2x0_do_pending();
-}
-
-
-static __inline int
-pxa2x0_splraise(int ipl)
-{
- int old, psw;
-
- old = current_spl_level;
- if( ipl > current_spl_level ){
- psw = disable_interrupts(I32_bit);
- pxa2x0_setipl(ipl);
- restore_interrupts(psw);
- }
-
- return (old);
-}
-
-static __inline int
-pxa2x0_spllower(int ipl)
-{
- int old = current_spl_level;
- int psw = disable_interrupts(I32_bit);
- pxa2x0_splx(ipl);
- restore_interrupts(psw);
- return(old);
-}
-
-static __inline void
-pxa2x0_setsoftintr(int si)
-{
- atomic_set_bit( (u_int *)&softint_pending, SI_TO_IRQBIT(si) );
-
- /* Process unmasked pending soft interrupts. */
- if ( softint_pending & intr_mask )
- pxa2x0_do_pending();
-}
-#endif
void pxa2x0_setipl(int new);
void pxa2x0_splx(int new);
int pxa2x0_splraise(int ipl);