diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-09-01 10:37:21 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-01 21:19:50 +0000 |
commit | 76789c78aff4a73c2dc0aca526267714fffb075b (patch) | |
tree | b77fe1c76c3a025c50c6d1b6bb3ab7f1c8c3ad27 | |
parent | 651fec28a7312c5aa9c7af42de3e955f735fed20 (diff) | |
download | chrome-ec-76789c78aff4a73c2dc0aca526267714fffb075b.tar.gz |
zephyr: emul: tcpci: Remove unused API
Remove API that is left after refactoring of TCPCI emulator and has no
implementation.
BUG=None
TEST=./twister -T zephyr/test
BRANCH=None
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Ic45f7b883825d9eb380389ce7742fd66636856e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3866183
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Tomasz Michalec <tmichalec@google.com>
Auto-Submit: Tomasz Michalec <tmichalec@google.com>
-rw-r--r-- | zephyr/include/emul/tcpc/emul_tcpci.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/zephyr/include/emul/tcpc/emul_tcpci.h b/zephyr/include/emul/tcpc/emul_tcpci.h index 378967355e..1c683880a8 100644 --- a/zephyr/include/emul/tcpc/emul_tcpci.h +++ b/zephyr/include/emul/tcpc/emul_tcpci.h @@ -85,7 +85,6 @@ struct tcpci_ctx { /** Run-time data used by the emulator */ struct tcpc_emul_data { - struct i2c_common_emul_data common; /** Pointer to the common TCPCI emulator context */ struct tcpci_ctx *tcpci_ctx; @@ -148,67 +147,6 @@ enum tcpci_emul_tx_status { TCPCI_EMUL_TX_UNKNOWN }; -/** TCPCI specific device operations. Not all of them need to be implemented. */ -struct tcpci_emul_dev_ops { - /** - * @brief Function called for each byte of read message - * - * @param emul Pointer to TCPCI emulator - * @param ops Pointer to device operations structure - * @param reg First byte of last write message - * @param val Pointer where byte to read should be stored - * @param bytes Number of bytes already readded - * - * @return TCPCI_EMUL_CONTINUE to continue with default handler - * @return TCPCI_EMUL_DONE to immedietly return success - * @return TCPCI_EMUL_ERROR to immedietly return error - */ - enum tcpci_emul_ops_resp (*read_byte)( - const struct emul *emul, const struct tcpci_emul_dev_ops *ops, - int reg, uint8_t *val, int bytes); - - /** - * @brief Function called for each byte of write message - * - * @param emul Pointer to TCPCI emulator - * @param ops Pointer to device operations structure - * @param reg First byte of write message - * @param val Received byte of write message - * @param bytes Number of bytes already received - * - * @return TCPCI_EMUL_CONTINUE to continue with default handler - * @return TCPCI_EMUL_DONE to immedietly return success - * @return TCPCI_EMUL_ERROR to immedietly return error - */ - enum tcpci_emul_ops_resp (*write_byte)( - const struct emul *emul, const struct tcpci_emul_dev_ops *ops, - int reg, uint8_t val, int bytes); - - /** - * @brief Function called on the end of write message - * - * @param emul Pointer to TCPCI emulator - * @param ops Pointer to device operations structure - * @param reg Register which is written - * @param msg_len Length of handled I2C message - * - * @return TCPCI_EMUL_CONTINUE to continue with default handler - * @return TCPCI_EMUL_DONE to immedietly return success - * @return TCPCI_EMUL_ERROR to immedietly return error - */ - enum tcpci_emul_ops_resp (*handle_write)( - const struct emul *emul, const struct tcpci_emul_dev_ops *ops, - int reg, int msg_len); - - /** - * @brief Function called on reset - * - * @param emul Pointer to TCPCI emulator - * @param ops Pointer to device operations structure - */ - void (*reset)(const struct emul *emul, struct tcpci_emul_dev_ops *ops); -}; - /** TCPCI partner operations. Not all of them need to be implemented. */ struct tcpci_emul_partner_ops { /** @@ -380,15 +318,6 @@ struct tcpci_emul_msg *tcpci_emul_get_tx_msg(const struct emul *emul); void tcpci_emul_set_rev(const struct emul *emul, enum tcpci_emul_rev rev); /** - * @brief Set callbacks for specific TCPC device emulator - * - * @param emul Pointer to TCPCI emulator - * @param dev_ops Pointer to callbacks - */ -void tcpci_emul_set_dev_ops(const struct emul *emul, - struct tcpci_emul_dev_ops *dev_ops); - -/** * @brief Set callback which is called when alert register is changed * * @param emul Pointer to TCPC emulator |