blob: 5e7e955100f47dd6dd7b52e49221755dc5df9d24 [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"
21#define FB_CMD_VERIFY "verify"
22#define FB_CMD_FLASH "flash"
23#define FB_CMD_ERASE "erase"
24#define FB_CMD_BOOT "boot"
25#define FB_CMD_SET_ACTIVE "set_active"
26#define FB_CMD_CONTINUE "continue"
27#define FB_CMD_REBOOT "reboot"
28#define FB_CMD_SHUTDOWN "shutdown"
29#define FB_CMD_REBOOT_BOOTLOADER "reboot-bootloader"
30#define FB_CMD_POWERDOWN "powerdown"
31
32#define RESPONSE_OKAY "OKAY"
33#define RESPONSE_FAIL "FAIL"
34#define RESPONSE_DATA "DATA"
35#define RESPONSE_INFO "INFO"
36
37#define FB_COMMAND_SZ 64
38#define FB_RESPONSE_SZ 64
39
40#define FB_VAR_VERSION "version"
41#define FB_VAR_VERSION_BOOTLOADER "version-bootloader"
42#define FB_VAR_VERSION_BASEBAND "version-baseband"
43#define FB_VAR_PRODUCT "product"
44#define FB_VAR_SERIALNO "serialno"
45#define FB_VAR_SECURE "secure"
46#define FB_VAR_UNLOCKED "unlocked"
47#define FB_VAR_CURRENT_SLOT "current-slot"
48#define FB_VAR_MAX_DOWNLOAD_SIZE "max-download-size"
49#define FB_VAR_HAS_SLOT "has-slot"
50#define FB_VAR_SLOT_COUNT "slot-count"
51#define FB_VAR_PARTITION_SIZE "partition-size"