diff --git a/src/soc/intel/common/block/cse/cse.c b/src/soc/intel/common/block/cse/cse.c index 25a04ed304..9902094180 100644 --- a/src/soc/intel/common/block/cse/cse.c +++ b/src/soc/intel/common/block/cse/cse.c @@ -422,12 +422,7 @@ send_one_message(uint32_t hdr, const void *buff) return pend_len; } -/* - * Send message msg of size len to host from host_addr to cse_addr. - * Returns CSE_TX_RX_SUCCESS on success and other enum values on failure scenarios. - * Also, in case of errors, heci_reset() is triggered. - */ -static enum cse_tx_rx_status +enum cse_tx_rx_status heci_send(const void *msg, size_t len, uint8_t host_addr, uint8_t client_addr) { uint8_t retry; @@ -532,15 +527,7 @@ recv_one_message(uint32_t *hdr, void *buff, size_t maxlen, size_t *recv_len) return CSE_TX_RX_SUCCESS; } -/* - * Receive message into buff not exceeding maxlen. Message is considered - * successfully received if a 'complete' indication is read from ME side - * and there was enough space in the buffer to fit that message. maxlen - * is updated with size of message that was received. - * Returns CSE_TX_RX_SUCCESS on success and other enum values on failure scenarios. - * Also, in case of errors, heci_reset() is triggered. - */ -static enum cse_tx_rx_status heci_receive(void *buff, size_t *maxlen) +enum cse_tx_rx_status heci_receive(void *buff, size_t *maxlen) { uint8_t retry; size_t left, received; diff --git a/src/soc/intel/common/block/include/intelblocks/cse.h b/src/soc/intel/common/block/include/intelblocks/cse.h index 4634984756..c87946ffec 100644 --- a/src/soc/intel/common/block/include/intelblocks/cse.h +++ b/src/soc/intel/common/block/include/intelblocks/cse.h @@ -344,6 +344,24 @@ void cse_init(uintptr_t bar); /* Initialize the HECI devices. */ void heci_init(void); +/* + * Send message msg of size len to host from host_addr to cse_addr. + * Returns CSE_TX_RX_SUCCESS on success and other enum values on failure scenarios. + * Also, in case of errors, heci_reset() is triggered. + */ +enum cse_tx_rx_status heci_send(const void *msg, size_t len, uint8_t host_addr, + uint8_t client_addr); + +/* + * Receive message into buff not exceeding maxlen. Message is considered + * successfully received if a 'complete' indication is read from ME side + * and there was enough space in the buffer to fit that message. maxlen + * is updated with size of message that was received. + * Returns CSE_TX_RX_SUCCESS on success and other enum values on failure scenarios. + * Also, in case of errors, heci_reset() is triggered. + */ +enum cse_tx_rx_status heci_receive(void *buff, size_t *maxlen); + /* * Send message from BIOS_HOST_ADDR to cse_addr. * Sends snd_msg of size snd_sz, and reads message into buffer pointed by