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

Function ti_pruss_map_write

freebsd/arm/ti/ti_pruss.c:353–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353static __inline void
354ti_pruss_map_write(struct ti_pruss_softc *sc, uint32_t basereg, uint8_t index, uint8_t content)
355{
356 const size_t regadr = basereg + index & ~0x03;
357 const size_t bitpos = (index & 0x03) * 8;
358 uint32_t rmw = ti_pruss_reg_read(sc, regadr);
359 rmw = (rmw & ~( 0xF << bitpos)) | ( (content & 0xF) << bitpos);
360 ti_pruss_reg_write(sc, regadr, rmw);
361}
362
363static int
364ti_pruss_event_map( SYSCTL_HANDLER_ARGS )

Callers 2

ti_pruss_event_mapFunction · 0.85
ti_pruss_channel_mapFunction · 0.85

Calls 2

ti_pruss_reg_readFunction · 0.85
ti_pruss_reg_writeFunction · 0.85

Tested by

no test coverage detected