Lines Matching defs:timer_softc
63 static struct pxa_timer_softc *timer_softc = NULL;
108 if (timer_softc != NULL)
120 timer_softc = sc;
209 if (timer_softc == NULL) {
225 return (bus_space_read_4(timer_softc->pt_bst,
226 timer_softc->pt_bsh, which * 0x4));
233 bus_space_write_4(timer_softc->pt_bst,
234 timer_softc->pt_bsh, which * 0x4, val);
241 return (bus_space_read_4(timer_softc->pt_bst,
242 timer_softc->pt_bsh, OST_CR));
249 bus_space_write_4(timer_softc->pt_bst,
250 timer_softc->pt_bsh, OST_CR, val);
257 return (bus_space_read_4(timer_softc->pt_bst,
258 timer_softc->pt_bsh, OST_SR));
265 bus_space_write_4(timer_softc->pt_bst,
266 timer_softc->pt_bsh, OST_SR, val);
273 bus_space_write_4(timer_softc->pt_bst,
274 timer_softc->pt_bsh, OST_WR, 0x1);
281 bus_space_write_4(timer_softc->pt_bst,
282 timer_softc->pt_bsh, OST_WR, 0x0);
291 bus_space_write_4(timer_softc->pt_bst,
292 timer_softc->pt_bsh, OST_IR, 0xf);
296 oier = bus_space_read_4(timer_softc->pt_bst,
297 timer_softc->pt_bsh, OST_IR);
299 bus_space_write_4(timer_softc->pt_bst,
300 timer_softc->pt_bsh, OST_IR, oier);
309 bus_space_write_4(timer_softc->pt_bst,
310 timer_softc->pt_bsh, OST_IR, 0);
313 oier = bus_space_read_4(timer_softc->pt_bst,
314 timer_softc->pt_bsh, OST_IR);
316 bus_space_write_4(timer_softc->pt_bst,
317 timer_softc->pt_bsh, OST_IR, oier);