blob: ad2e1a17370688a3f3777cba56c9919d49d6dd63 [file] [log] [blame]
Jerry Zhang769a9c12018-05-15 17:02:50 -07001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
18#define FB_CMD_GETVAR "getvar"
19#define FB_CMD_DOWNLOAD "download"
20#define FB_CMD_UPLOAD "upload"
Jerry Zhang769a9c12018-05-15 17:02:50 -070021#define FB_CMD_FLASH "flash"
22#define FB_CMD_ERASE "erase"
23#define FB_CMD_BOOT "boot"
24#define FB_CMD_SET_ACTIVE "set_active"
25#define FB_CMD_CONTINUE "continue"
26#define FB_CMD_REBOOT "reboot"
27#define FB_CMD_SHUTDOWN "shutdown"
28#define FB_CMD_REBOOT_BOOTLOADER "reboot-bootloader"
Hridya Valsarajudea91b42018-07-17 11:14:01 -070029#define FB_CMD_REBOOT_RECOVERY "reboot-recovery"
30#define FB_CMD_REBOOT_FASTBOOT "reboot-fastboot"
David Anderson0d4277d2018-07-31 13:27:37 -070031#define FB_CMD_CREATE_PARTITION "create-logical-partition"
32#define FB_CMD_DELETE_PARTITION "delete-logical-partition"
33#define FB_CMD_RESIZE_PARTITION "resize-logical-partition"
David Anderson38b3c7a2018-08-15 16:27:42 -070034#define FB_CMD_UPDATE_SUPER "update-super"
Hridya Valsarajua15fe312018-09-14 13:58:21 -070035#define FB_CMD_OEM "oem"
Jerry Zhang769a9c12018-05-15 17:02:50 -070036
37#define RESPONSE_OKAY "OKAY"
38#define RESPONSE_FAIL "FAIL"
39#define RESPONSE_DATA "DATA"
40#define RESPONSE_INFO "INFO"
41
42#define FB_COMMAND_SZ 64
43#define FB_RESPONSE_SZ 64
44
45#define FB_VAR_VERSION "version"
46#define FB_VAR_VERSION_BOOTLOADER "version-bootloader"
47#define FB_VAR_VERSION_BASEBAND "version-baseband"
48#define FB_VAR_PRODUCT "product"
49#define FB_VAR_SERIALNO "serialno"
50#define FB_VAR_SECURE "secure"
51#define FB_VAR_UNLOCKED "unlocked"
52#define FB_VAR_CURRENT_SLOT "current-slot"
53#define FB_VAR_MAX_DOWNLOAD_SIZE "max-download-size"
54#define FB_VAR_HAS_SLOT "has-slot"
55#define FB_VAR_SLOT_COUNT "slot-count"
56#define FB_VAR_PARTITION_SIZE "partition-size"
Hridya Valsarajubf9f8d12018-09-05 16:57:24 -070057#define FB_VAR_PARTITION_TYPE "partition-type"
Hridya Valsaraju31d2c262018-07-20 13:35:50 -070058#define FB_VAR_SLOT_SUCCESSFUL "slot-successful"
59#define FB_VAR_SLOT_UNBOOTABLE "slot-unbootable"
David Anderson0d4277d2018-07-31 13:27:37 -070060#define FB_VAR_IS_LOGICAL "is-logical"
David Andersond9ba0612018-08-02 11:05:00 -070061#define FB_VAR_IS_USERSPACE "is-userspace"
David Andersonc091c172018-09-04 18:11:03 -070062#define FB_VAR_HW_REVISION "hw-revision"
Hridya Valsaraju4af80902018-09-26 13:08:16 -070063#define FB_VAR_VARIANT "variant"