109 /**< unknown state */ |
109 /**< unknown state */ |
110 EC_SLAVE_STATE_INIT = 0x01, |
110 EC_SLAVE_STATE_INIT = 0x01, |
111 /**< INIT state (no mailbox communication, no IO) */ |
111 /**< INIT state (no mailbox communication, no IO) */ |
112 EC_SLAVE_STATE_PREOP = 0x02, |
112 EC_SLAVE_STATE_PREOP = 0x02, |
113 /**< PREOP state (mailbox communication, no IO) */ |
113 /**< PREOP state (mailbox communication, no IO) */ |
|
114 EC_SLAVE_STATE_BOOT = 0x03, |
|
115 /**< Bootstrap state (mailbox communication, firmware update) */ |
114 EC_SLAVE_STATE_SAFEOP = 0x04, |
116 EC_SLAVE_STATE_SAFEOP = 0x04, |
115 /**< SAFEOP (mailbox communication and input update) */ |
117 /**< SAFEOP (mailbox communication and input update) */ |
116 EC_SLAVE_STATE_OP = 0x08, |
118 EC_SLAVE_STATE_OP = 0x08, |
117 /**< OP (mailbox communication and input/output update) */ |
119 /**< OP (mailbox communication and input/output update) */ |
118 EC_SLAVE_STATE_ACK_ERR = 0x10 |
120 EC_SLAVE_STATE_ACK_ERR = 0x10 |
220 |
222 |
221 /*****************************************************************************/ |
223 /*****************************************************************************/ |
222 |
224 |
223 void ec_print_data(const uint8_t *, size_t); |
225 void ec_print_data(const uint8_t *, size_t); |
224 void ec_print_data_diff(const uint8_t *, const uint8_t *, size_t); |
226 void ec_print_data_diff(const uint8_t *, const uint8_t *, size_t); |
225 size_t ec_state_string(uint8_t, char *); |
227 size_t ec_state_string(uint8_t, char *, uint8_t); |
226 ssize_t ec_mac_print(const uint8_t *, char *); |
228 ssize_t ec_mac_print(const uint8_t *, char *); |
227 int ec_mac_is_zero(const uint8_t *); |
229 int ec_mac_is_zero(const uint8_t *); |
228 |
230 |
229 /*****************************************************************************/ |
231 /*****************************************************************************/ |
230 |
232 |