aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hfa
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2000-12-07 22:19:06 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2000-12-07 22:19:06 +0000
commita3671bc8c8df6fab77be05eb87f515614f04a001 (patch)
tree43ca9afe5b389fd6c1fac54949a5833c10971f84 /sys/dev/hfa
parent8ffced21e870e854784341d3b23fc0f9261bf052 (diff)
Notes
Diffstat (limited to 'sys/dev/hfa')
-rw-r--r--sys/dev/hfa/fore_intr.c7
-rw-r--r--sys/dev/hfa/fore_load.c8
2 files changed, 3 insertions, 12 deletions
diff --git a/sys/dev/hfa/fore_intr.c b/sys/dev/hfa/fore_intr.c
index eebc6ec9fe469..2193a5161b6b5 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 70433453f456b..be586895cc709 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);