diff options
Diffstat (limited to 'include/usb_mux.h')
-rw-r--r-- | include/usb_mux.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/usb_mux.h b/include/usb_mux.h index 90edbb98d7..8d3dbc2f7e 100644 --- a/include/usb_mux.h +++ b/include/usb_mux.h @@ -121,6 +121,30 @@ struct usb_mux_driver { * @return EC_SUCCESS on success, non-zero error code on failure. */ int (*set_idle_mode)(const struct usb_mux *me, bool idle); + +#ifdef CONFIG_CMD_RETIMER + /** + * Console command to read the retimer registers + * + * @param me usb_mux + * @param offset Register offset + * @param data Data to be read + * @return EC_SUCCESS on success, non-zero error code on failure. + */ + int (*retimer_read)(const struct usb_mux *me, const uint32_t offset, + uint32_t *data); + + /** + * Console command to write to the retimer registers + * + * @param me usb_mux + * @param offset Register offset + * @param data Data to be written + * @return EC_SUCCESS on success, non-zero error code on failure. + */ + int (*retimer_write)(const struct usb_mux *me, const uint32_t offset, + uint32_t data); +#endif /* CONFIG_CMD_RETIMER */ }; /* Describes a USB mux present in the system */ |