aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/fhc/fhc.c
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2010-03-31 22:19:00 +0000
committerMarius Strobl <marius@FreeBSD.org>2010-03-31 22:19:00 +0000
commit4a717bcedc4d6950e51cc52c25f4a30f329b26a1 (patch)
tree25e9eda34fe3a4f814c3122261908ec0ecbcfac6 /sys/sparc64/fhc/fhc.c
parent5c100aeaadc551f41df52ff64010a98652b800a5 (diff)
downloadsrc-4a717bcedc4d6950e51cc52c25f4a30f329b26a1.tar.gz
src-4a717bcedc4d6950e51cc52c25f4a30f329b26a1.zip
- Take advantage of the INTCLR_* macros.
- Right-justify the backslashes as per style(9).
Notes
Notes: svn path=/head/; revision=206018
Diffstat (limited to 'sys/sparc64/fhc/fhc.c')
-rw-r--r--sys/sparc64/fhc/fhc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/fhc/fhc.c b/sys/sparc64/fhc/fhc.c
index 6aefffa1a6f9..2b15e5e3adc5 100644
--- a/sys/sparc64/fhc/fhc.c
+++ b/sys/sparc64/fhc/fhc.c
@@ -208,7 +208,7 @@ fhc_attach(device_t dev)
printf("model unknown\n");
for (i = FHC_FANFAIL; i <= FHC_TOD; i++) {
- bus_write_4(sc->sc_memres[i], FHC_ICLR, 0x0);
+ bus_write_4(sc->sc_memres[i], FHC_ICLR, INTCLR_IDLE);
(void)bus_read_4(sc->sc_memres[i], FHC_ICLR);
}
@@ -391,7 +391,7 @@ fhc_intr_clear(void *arg)
struct intr_vector *iv = arg;
struct fhc_icarg *fica = iv->iv_icarg;
- bus_write_4(fica->fica_memres, FHC_ICLR, 0x0);
+ bus_write_4(fica->fica_memres, FHC_ICLR, INTCLR_IDLE);
(void)bus_read_4(fica->fica_memres, FHC_ICLR);
}