| 231 | } |
| 232 | |
| 233 | static int |
| 234 | ti_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 | |
| 245 | static int |
| 246 | ti_mbox_write(device_t dev, int chan, uint32_t data) |
nothing calls this directly
no test coverage detected