diff options
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/hea/eni_intr.c | 1 | ||||
-rw-r--r-- | sys/dev/hea/eni_vcm.c | 1 | ||||
-rw-r--r-- | sys/dev/hfa/fore_intr.c | 7 | ||||
-rw-r--r-- | sys/dev/hfa/fore_load.c | 8 |
4 files changed, 5 insertions, 12 deletions
diff --git a/sys/dev/hea/eni_intr.c b/sys/dev/hea/eni_intr.c index 4450627..f5f2f58 100644 --- a/sys/dev/hea/eni_intr.c +++ b/sys/dev/hea/eni_intr.c @@ -36,6 +36,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/socket.h> #include <sys/syslog.h> #include <net/if.h> diff --git a/sys/dev/hea/eni_vcm.c b/sys/dev/hea/eni_vcm.c index ec3cd55..0af1f32 100644 --- a/sys/dev/hea/eni_vcm.c +++ b/sys/dev/hea/eni_vcm.c @@ -37,6 +37,7 @@ #include <sys/param.h> +#include <sys/systm.h> #include <sys/socket.h> #include <net/if.h> #include <netatm/port.h> diff --git a/sys/dev/hfa/fore_intr.c b/sys/dev/hfa/fore_intr.c index eebc6ec..2193a51 100644 --- a/sys/dev/hfa/fore_intr.c +++ b/sys/dev/hfa/fore_intr.c @@ -157,13 +157,8 @@ fore_intr(arg) /* * Clear the device interrupt */ - switch (fup->fu_config.ac_device) { - - case DEV_FORE_PCA200E: + if (fup->fu_config.ac_device == DEV_FORE_PCA200E) PCA200E_HCR_SET(*fup->fu_ctlreg, PCA200E_CLR_HBUS_INT); - break; - - } aap->aali_intr_sent = CP_WRITE(0); /* diff --git a/sys/dev/hfa/fore_load.c b/sys/dev/hfa/fore_load.c index 7043345..be58689 100644 --- a/sys/dev/hfa/fore_load.c +++ b/sys/dev/hfa/fore_load.c @@ -499,18 +499,14 @@ fore_reset(fup) if (fup->fu_ctlreg) { - switch (fup->fu_config.ac_device) { - - case DEV_FORE_PCA200E: + if (fup->fu_config.ac_device == DEV_FORE_PCA200E) { /* * Reset i960 by setting and clearing RESET */ PCA200E_HCR_INIT(*fup->fu_ctlreg, PCA200E_RESET); DELAY(10000); PCA200E_HCR_CLR(*fup->fu_ctlreg, PCA200E_RESET); - break; - - } + } } (void) splx(s); |