MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ti_prcm_modify_4

Function ti_prcm_modify_4

freebsd/arm/ti/ti_prcm.c:226–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226int
227ti_prcm_modify_4(device_t dev, bus_addr_t addr, uint32_t clr, uint32_t set)
228{
229 struct ti_prcm_softc *sc;
230 uint32_t reg;
231
232 sc = device_get_softc(dev);
233
234 reg = bus_space_read_4(sc->bst, sc->bsh, addr);
235 reg &= ~clr;
236 reg |= set;
237 bus_space_write_4(sc->bst, sc->bsh, addr, reg);
238 DPRINTF(sc->dev, "offset=%lx reg: %x (clr %x set %x)\n", addr, reg, clr, set);
239
240 return (0);
241}
242
243void
244ti_prcm_device_lock(device_t dev)

Callers 1

ti_prm_modify_4Function · 0.85

Calls 3

device_get_softcFunction · 0.85
bus_space_read_4Function · 0.85
bus_space_write_4Function · 0.85

Tested by

no test coverage detected