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

Function ti_mbox_read

freebsd/arm/ti/ti_mbox.c:233–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233static int
234ti_mbox_read(device_t dev, int chan, uint32_t *data)
235{
236 struct ti_mbox_softc *sc;
237
238 if (chan < 0 || chan > 7)
239 return (EINVAL);
240 sc = device_get_softc(dev);
241
242 return (ti_mbox_reg_read(sc, TI_MBOX_MESSAGE(chan)));
243}
244
245static int
246ti_mbox_write(device_t dev, int chan, uint32_t data)

Callers

nothing calls this directly

Calls 2

device_get_softcFunction · 0.85
ti_mbox_reg_readFunction · 0.85

Tested by

no test coverage detected