1fb726d48Sopenharmony_ci/*
2fb726d48Sopenharmony_ci * Copyright (C) 2022 Huawei Device Co., Ltd.
3fb726d48Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4fb726d48Sopenharmony_ci * you may not use this file except in compliance with the License.
5fb726d48Sopenharmony_ci * You may obtain a copy of the License at
6fb726d48Sopenharmony_ci *
7fb726d48Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8fb726d48Sopenharmony_ci *
9fb726d48Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10fb726d48Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11fb726d48Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12fb726d48Sopenharmony_ci * See the License for the specific language governing permissions and
13fb726d48Sopenharmony_ci * limitations under the License.
14fb726d48Sopenharmony_ci */
15fb726d48Sopenharmony_ci
16fb726d48Sopenharmony_ciexport enum HdcCommand {
17fb726d48Sopenharmony_ci  // core commands types
18fb726d48Sopenharmony_ci  CMD_KERNEL_HELP = 0,
19fb726d48Sopenharmony_ci  CMD_KERNEL_HANDSHAKE = 1,
20fb726d48Sopenharmony_ci  CMD_KERNEL_CHANNEL_CLOSE = 2,
21fb726d48Sopenharmony_ci  CMD_KERNEL_SERVER_KILL = 3,
22fb726d48Sopenharmony_ci  CMD_KERNEL_TARGET_DISCOVER = 4,
23fb726d48Sopenharmony_ci  CMD_KERNEL_TARGET_LIST = 5,
24fb726d48Sopenharmony_ci  CMD_KERNEL_TARGET_ANY = 6,
25fb726d48Sopenharmony_ci  CMD_KERNEL_TARGET_CONNECT = 7,
26fb726d48Sopenharmony_ci  CMD_KERNEL_TARGET_DISCONNECT = 8,
27fb726d48Sopenharmony_ci  CMD_KERNEL_ECHO = 9,
28fb726d48Sopenharmony_ci  CMD_KERNEL_ECHO_RAW = 10,
29fb726d48Sopenharmony_ci  CMD_KERNEL_ENABLE_KEEPALIVE = 11,
30fb726d48Sopenharmony_ci  CMD_KERNEL_WAKEUP_SLAVETASK = 12,
31fb726d48Sopenharmony_ci  // One-pass simple commands
32fb726d48Sopenharmony_ci  CMD_UNITY_COMMAND_HEAD = 1000, // not use
33fb726d48Sopenharmony_ci  CMD_UNITY_EXECUTE = 1001,
34fb726d48Sopenharmony_ci  CMD_UNITY_REMOUNT = 1002,
35fb726d48Sopenharmony_ci  CMD_UNITY_REBOOT = 1003,
36fb726d48Sopenharmony_ci  CMD_UNITY_RUNMODE = 1004,
37fb726d48Sopenharmony_ci  CMD_UNITY_HILOG = 1005,
38fb726d48Sopenharmony_ci  CMD_UNITY_TERMINATE = 1006,
39fb726d48Sopenharmony_ci  CMD_UNITY_ROOTRUN = 1007,
40fb726d48Sopenharmony_ci  CMD_JDWP_LIST = 1008,
41fb726d48Sopenharmony_ci  CMD_JDWP_TRACK = 1009,
42fb726d48Sopenharmony_ci  CMD_UNITY_COMMAND_TAIL = 1010, // not use
43fb726d48Sopenharmony_ci  // It will be separated from unity in the near future
44fb726d48Sopenharmony_ci  CMD_UNITY_BUGREPORT_INIT = 1011,
45fb726d48Sopenharmony_ci  CMD_UNITY_BUGREPORT_DATA = 1012,
46fb726d48Sopenharmony_ci  // Shell commands types
47fb726d48Sopenharmony_ci  CMD_SHELL_INIT = 2000,
48fb726d48Sopenharmony_ci  CMD_SHELL_DATA = 2001,
49fb726d48Sopenharmony_ci  // File commands
50fb726d48Sopenharmony_ci  CMD_FILE_INIT = 3000,
51fb726d48Sopenharmony_ci  CMD_FILE_CHECK = 3001,
52fb726d48Sopenharmony_ci  CMD_FILE_BEGIN = 3002,
53fb726d48Sopenharmony_ci  CMD_FILE_DATA = 3003,
54fb726d48Sopenharmony_ci  CMD_FILE_FINISH = 3004,
55fb726d48Sopenharmony_ci  // App commands
56fb726d48Sopenharmony_ci  CMD_APP_SIDELOAD = 3005,
57fb726d48Sopenharmony_ci  CMD_APP_INIT = 3500,
58fb726d48Sopenharmony_ci  CMD_APP_CHECK = 3501,
59fb726d48Sopenharmony_ci  CMD_APP_BEGIN = 3502,
60fb726d48Sopenharmony_ci  CMD_APP_DATA = 3503,
61fb726d48Sopenharmony_ci  CMD_APP_FINISH = 3504,
62fb726d48Sopenharmony_ci  CMD_APP_UNINSTALL = 3505,
63fb726d48Sopenharmony_ci}
64