Home | History | Annotate | Download | only in obio

Lines Matching defs:rambo

1 /*	$NetBSD: rambo.c,v 1.15 2025/05/01 05:36:02 tsutsui Exp $	*/
33 __KERNEL_RCSID(0, "$NetBSD: rambo.c,v 1.15 2025/05/01 05:36:02 tsutsui Exp $");
47 #include <mipsco/obio/rambo.h>
50 * Timer & Interrupt manipulation routines for the Rambo Custom ASIC
66 static struct rambo_softc *rambo;
68 CFATTACH_DECL_NEW(rambo, sizeof(struct rambo_softc),
94 /* Setup RAMBO Timer to generate timer interrupts */
104 rambo = sc;
114 rambo->sc_intrcnt.ev_count++;
115 tbreak = bus_space_read_4(rambo->sc_bst, rambo->sc_bsh, RB_TBREAK);
116 tcount = bus_space_read_4(rambo->sc_bst, rambo->sc_bsh, RB_TCOUNT);
119 if (delta > (rambo->sc_hzticks>>1)) {
127 tbreak += rambo->sc_hzticks;
132 tbreak += rambo->sc_hzticks;
135 bus_space_write_4(rambo->sc_bst, rambo->sc_bsh, RB_TBREAK, tbreak);
142 return (bus_space_read_4(rambo->sc_bst, rambo->sc_bsh, RB_TCOUNT));