1 /*
2  * Copyright (C) 2015-2020 Alibaba Group Holding Limited
3  */
4 
5 #ifndef AMP_BOOT_CMD_H
6 #define AMP_BOOT_CMD_H
7 
8 enum {
9     AMP_BOOT_CMD_NULL,
10     AMP_BOOT_CMD_EXIT,
11     AMP_BOOT_CMD_QUERY_IMEI,
12     AMP_BOOT_CMD_QUERY_SEC,
13     AMP_BOOT_CMD_FLASH_SEC,
14     AMP_BOOT_CMD_FLASH_JS,
15     AMP_BOOT_CMD_FLASH_KV,
16     AMP_BOOT_CMD_MAX,
17     AMP_BOOT_CMD_ERROR = 127,
18 };
19 
20 typedef struct {
21     char cmd_str[32];
22 } amp_boot_cmd_t;
23 
24 int amp_boot_get_cmd(int timeout_ms);
25 void amp_boot_cmd_begin(int cmd);
26 void amp_boot_cmd_end(int cmd);
27 
28 #endif