diff options
Diffstat (limited to 'sys/arch/macppc/dev/macintr.c')
-rw-r--r-- | sys/arch/macppc/dev/macintr.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/arch/macppc/dev/macintr.c b/sys/arch/macppc/dev/macintr.c index 7175a8b85bd..f3e57118e1e 100644 --- a/sys/arch/macppc/dev/macintr.c +++ b/sys/arch/macppc/dev/macintr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macintr.c,v 1.13 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: macintr.c,v 1.14 2002/09/15 02:02:43 deraadt Exp $ */ /*- * Copyright (c) 1995 Per Fogelstrom @@ -101,7 +101,7 @@ void macintr_attach(struct device *, struct device *, void *); void mac_do_pending_int(void); void mac_ext_intr(void); -struct cfattach macintr_ca = { +struct cfattach macintr_ca = { sizeof(struct macintr_softc), macintr_match, macintr_attach @@ -112,7 +112,7 @@ struct cfdriver macintr_cd = { }; int -macintr_match(parent, cf, aux) +macintr_match(parent, cf, aux) struct device *parent; void *cf; void *aux; @@ -125,7 +125,7 @@ macintr_match(parent, cf, aux) */ if (strcmp(ca->ca_name, "interrupt-controller") == 0 ) { OF_getprop(ca->ca_node, "device_type", type, sizeof(type)); - if (strcmp(type, "interrupt-controller") == 0) { + if (strcmp(type, "interrupt-controller") == 0) { return 1; } } @@ -353,13 +353,13 @@ intr_typename(type) { switch (type) { - case IST_NONE : + case IST_NONE : return ("none"); - case IST_PULSE: + case IST_PULSE: return ("pulsed"); - case IST_EDGE: + case IST_EDGE: return ("edge-triggered"); - case IST_LEVEL: + case IST_LEVEL: return ("level-triggered"); default: panic("intr_typename: invalid type %d", type); @@ -592,7 +592,7 @@ mac_intr_do_pending_int() irq = 31 - cntlzw(hwpend); hwpend &= ~(1L << irq); ih = m_intrhand[irq]; - while(ih) { + while (ih) { (*ih->ih_fun)(ih->ih_arg); ih = ih->ih_next; } @@ -603,18 +603,18 @@ mac_intr_do_pending_int() /*out32rb(INT_ENABLE_REG, ~imen_m);*/ do { - if((ipending & SINT_CLOCK) & ~pcpl) { + if ((ipending & SINT_CLOCK) & ~pcpl) { ipending &= ~SINT_CLOCK; softclock(); } - if((ipending & SINT_NET) & ~pcpl) { + if ((ipending & SINT_NET) & ~pcpl) { extern int netisr; int pisr = netisr; netisr = 0; ipending &= ~SINT_NET; softnet(pisr); } - if((ipending & SINT_TTY) & ~pcpl) { + if ((ipending & SINT_TTY) & ~pcpl) { ipending &= ~SINT_TTY; softtty(); } |