MFC: r206018
- Take advantage of the INTCLR_* macros. - Right-justify the backslashes as per style(9).
This commit is contained in:
parent
29f7dafb4c
commit
ceb8e6f350
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=206188
@ -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);
|
||||
}
|
||||
|
||||
|
@ -523,7 +523,7 @@ psycho_attach(device_t dev)
|
||||
(u_long)intrmap, (u_long)PSYCHO_READ8(sc,
|
||||
intrmap), (u_long)intrclr);
|
||||
PSYCHO_WRITE8(sc, intrmap, INTMAP_VEC(sc->sc_ign, i));
|
||||
PSYCHO_WRITE8(sc, intrclr, 0);
|
||||
PSYCHO_WRITE8(sc, intrclr, INTCLR_IDLE);
|
||||
PSYCHO_WRITE8(sc, intrmap,
|
||||
INTMAP_ENABLE(INTMAP_VEC(sc->sc_ign, i),
|
||||
PCPU_GET(mid)));
|
||||
@ -1137,7 +1137,7 @@ psycho_intr_clear(void *arg)
|
||||
struct intr_vector *iv = arg;
|
||||
struct psycho_icarg *pica = iv->iv_icarg;
|
||||
|
||||
PSYCHO_WRITE8(pica->pica_sc, pica->pica_clr, 0);
|
||||
PSYCHO_WRITE8(pica->pica_sc, pica->pica_clr, INTCLR_IDLE);
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -1054,7 +1054,7 @@ schizo_dma_sync_stub(void *arg)
|
||||
for (; atomic_cmpset_acq_32(&sc->sc_cdma_state,
|
||||
SCHIZO_CDMA_STATE_DONE, SCHIZO_CDMA_STATE_PENDING) == 0;)
|
||||
;
|
||||
SCHIZO_PCI_WRITE_8(sc, sc->sc_cdma_clr, 1);
|
||||
SCHIZO_PCI_WRITE_8(sc, sc->sc_cdma_clr, INTCLR_RECEIVED);
|
||||
microuptime(&cur);
|
||||
end.tv_sec = 1;
|
||||
end.tv_usec = 0;
|
||||
@ -1139,7 +1139,7 @@ schizo_intr_clear(void *arg)
|
||||
struct intr_vector *iv = arg;
|
||||
struct schizo_icarg *sica = iv->iv_icarg;
|
||||
|
||||
SCHIZO_PCI_WRITE_8(sica->sica_sc, sica->sica_clr, 0);
|
||||
SCHIZO_PCI_WRITE_8(sica->sica_sc, sica->sica_clr, INTCLR_IDLE);
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -697,7 +697,7 @@ sbus_intr_clear(void *arg)
|
||||
struct intr_vector *iv = arg;
|
||||
struct sbus_icarg *sica = iv->iv_icarg;
|
||||
|
||||
SYSIO_WRITE8(sica->sica_sc, sica->sica_clr, 0);
|
||||
SYSIO_WRITE8(sica->sica_sc, sica->sica_clr, INTCLR_IDLE);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user