fix: harden ch390 recovery primitives

This commit is contained in:
2026-04-23 18:06:03 +08:00
parent d6a1565503
commit c519f90149
2 changed files with 96 additions and 3 deletions
+15
View File
@@ -657,6 +657,21 @@ int ch390_runtime_link_up_from_status(const struct ch390_runtime_status *status)
*/
void ch390_probe_rx_header(uint8_t *head);
/**
* @name ch390_peek_packet
* @brief Peek current RX header without consuming the packet.
* @param rx_status - Output abnormal status while receiving packet
* @param rx_len - Output packet length from RX header
* @return 0: no packet pending 1: header sampled
*/
int ch390_peek_packet(uint8_t *rx_status, uint16_t *rx_len);
/**
* @name ch390_rx_reset
* @brief Repair RX datapath after overflow/corruption without full chip reset.
*/
void ch390_rx_reset(void);
/**
* @name ch390_runtime_receive_packet
* @brief Runtime RX entry point for packet receive