Lines Matching refs:pxa_icu_softc
43 struct pxa_icu_softc {
54 static struct pxa_icu_softc *pxa_icu_softc = NULL;
85 struct pxa_icu_softc *sc;
87 sc = (struct pxa_icu_softc *)device_get_softc(dev);
89 if (pxa_icu_softc != NULL)
91 pxa_icu_softc = sc;
124 sizeof(struct pxa_icu_softc),
177 return (bus_space_read_4(pxa_icu_softc->pi_bst,
178 pxa_icu_softc->pi_bsh, ICU_IP));
185 bus_space_write_4(pxa_icu_softc->pi_bst,
186 pxa_icu_softc->pi_bsh, ICU_IP, (1 << irq));
193 return (bus_space_read_4(pxa_icu_softc->pi_bst,
194 pxa_icu_softc->pi_bsh, ICU_FP));
201 bus_space_write_4(pxa_icu_softc->pi_bst,
202 pxa_icu_softc->pi_bsh, ICU_FP, (1 << irq));
209 return (bus_space_read_4(pxa_icu_softc->pi_bst,
210 pxa_icu_softc->pi_bsh, ICU_MR));
217 bus_space_write_4(pxa_icu_softc->pi_bst,
218 pxa_icu_softc->pi_bsh, ICU_MR, val);
225 return (bus_space_read_4(pxa_icu_softc->pi_bst,
226 pxa_icu_softc->pi_bsh, ICU_LR));
233 bus_space_write_4(pxa_icu_softc->pi_bst,
234 pxa_icu_softc->pi_bsh, ICU_LR, val);
241 return (bus_space_read_4(pxa_icu_softc->pi_bst,
242 pxa_icu_softc->pi_bsh, ICU_PR));
249 bus_space_write_4(pxa_icu_softc->pi_bst,
250 pxa_icu_softc->pi_bsh, ICU_CR, 0x0);
257 bus_space_write_4(pxa_icu_softc->pi_bst,
258 pxa_icu_softc->pi_bsh, ICU_CR, 0x1);