Jerry Zhang | 769a9c1 | 2018-05-15 17:02:50 -0700 | [diff] [blame] | 1 | /* |
| 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 Zhang | 769a9c1 | 2018-05-15 17:02:50 -0700 | [diff] [blame] | 21 | #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 Valsaraju | dea91b4 | 2018-07-17 11:14:01 -0700 | [diff] [blame] | 29 | #define FB_CMD_REBOOT_RECOVERY "reboot-recovery" |
| 30 | #define FB_CMD_REBOOT_FASTBOOT "reboot-fastboot" |
David Anderson | 0d4277d | 2018-07-31 13:27:37 -0700 | [diff] [blame] | 31 | #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 Anderson | 38b3c7a | 2018-08-15 16:27:42 -0700 | [diff] [blame] | 34 | #define FB_CMD_UPDATE_SUPER "update-super" |
Hridya Valsaraju | a15fe31 | 2018-09-14 13:58:21 -0700 | [diff] [blame] | 35 | #define FB_CMD_OEM "oem" |
David Anderson | 1d504e3 | 2019-01-15 14:38:20 -0800 | [diff] [blame] | 36 | #define FB_CMD_GSI "gsi" |
David Anderson | ab8f466 | 2019-10-21 16:45:59 -0700 | [diff] [blame] | 37 | #define FB_CMD_SNAPSHOT_UPDATE "snapshot-update" |
Yifan Hong | a4eb475 | 2021-02-16 19:37:21 -0800 | [diff] [blame] | 38 | #define FB_CMD_FETCH "fetch" |
Jerry Zhang | 769a9c1 | 2018-05-15 17:02:50 -0700 | [diff] [blame] | 39 | |
| 40 | #define RESPONSE_OKAY "OKAY" |
| 41 | #define RESPONSE_FAIL "FAIL" |
| 42 | #define RESPONSE_DATA "DATA" |
| 43 | #define RESPONSE_INFO "INFO" |
| 44 | |
| 45 | #define FB_COMMAND_SZ 64 |
Bowgo Tsai | 27d5fb3 | 2020-02-05 10:16:21 +0800 | [diff] [blame] | 46 | #define FB_RESPONSE_SZ 256 |
Jerry Zhang | 769a9c1 | 2018-05-15 17:02:50 -0700 | [diff] [blame] | 47 | |
| 48 | #define FB_VAR_VERSION "version" |
| 49 | #define FB_VAR_VERSION_BOOTLOADER "version-bootloader" |
| 50 | #define FB_VAR_VERSION_BASEBAND "version-baseband" |
Bowgo Tsai | 99f9a38 | 2020-01-21 18:31:23 +0800 | [diff] [blame] | 51 | #define FB_VAR_VERSION_OS "version-os" |
| 52 | #define FB_VAR_VERSION_VNDK "version-vndk" |
Jerry Zhang | 769a9c1 | 2018-05-15 17:02:50 -0700 | [diff] [blame] | 53 | #define FB_VAR_PRODUCT "product" |
| 54 | #define FB_VAR_SERIALNO "serialno" |
| 55 | #define FB_VAR_SECURE "secure" |
| 56 | #define FB_VAR_UNLOCKED "unlocked" |
| 57 | #define FB_VAR_CURRENT_SLOT "current-slot" |
| 58 | #define FB_VAR_MAX_DOWNLOAD_SIZE "max-download-size" |
| 59 | #define FB_VAR_HAS_SLOT "has-slot" |
| 60 | #define FB_VAR_SLOT_COUNT "slot-count" |
| 61 | #define FB_VAR_PARTITION_SIZE "partition-size" |
Hridya Valsaraju | bf9f8d1 | 2018-09-05 16:57:24 -0700 | [diff] [blame] | 62 | #define FB_VAR_PARTITION_TYPE "partition-type" |
Hridya Valsaraju | 31d2c26 | 2018-07-20 13:35:50 -0700 | [diff] [blame] | 63 | #define FB_VAR_SLOT_SUCCESSFUL "slot-successful" |
| 64 | #define FB_VAR_SLOT_UNBOOTABLE "slot-unbootable" |
David Anderson | 0d4277d | 2018-07-31 13:27:37 -0700 | [diff] [blame] | 65 | #define FB_VAR_IS_LOGICAL "is-logical" |
David Anderson | d9ba061 | 2018-08-02 11:05:00 -0700 | [diff] [blame] | 66 | #define FB_VAR_IS_USERSPACE "is-userspace" |
David Anderson | c091c17 | 2018-09-04 18:11:03 -0700 | [diff] [blame] | 67 | #define FB_VAR_HW_REVISION "hw-revision" |
Hridya Valsaraju | 4af8090 | 2018-09-26 13:08:16 -0700 | [diff] [blame] | 68 | #define FB_VAR_VARIANT "variant" |
Hridya Valsaraju | 7c9bbe9 | 2018-09-27 10:41:01 -0700 | [diff] [blame] | 69 | #define FB_VAR_OFF_MODE_CHARGE_STATE "off-mode-charge" |
Hridya Valsaraju | 47658ca | 2018-09-28 11:41:22 -0700 | [diff] [blame] | 70 | #define FB_VAR_BATTERY_VOLTAGE "battery-voltage" |
Hridya Valsaraju | a534a5a | 2018-10-03 15:53:22 -0700 | [diff] [blame] | 71 | #define FB_VAR_BATTERY_SOC_OK "battery-soc-ok" |
David Anderson | 90fe0a4 | 2018-11-05 18:01:32 -0800 | [diff] [blame] | 72 | #define FB_VAR_SUPER_PARTITION_NAME "super-partition-name" |
David Anderson | ab8f466 | 2019-10-21 16:45:59 -0700 | [diff] [blame] | 73 | #define FB_VAR_SNAPSHOT_UPDATE_STATUS "snapshot-update-status" |
Bowgo Tsai | 33da5c9 | 2019-11-13 17:13:49 +0800 | [diff] [blame] | 74 | #define FB_VAR_CPU_ABI "cpu-abi" |
Bowgo Tsai | 99f9a38 | 2020-01-21 18:31:23 +0800 | [diff] [blame] | 75 | #define FB_VAR_SYSTEM_FINGERPRINT "system-fingerprint" |
| 76 | #define FB_VAR_VENDOR_FINGERPRINT "vendor-fingerprint" |
| 77 | #define FB_VAR_DYNAMIC_PARTITION "dynamic-partition" |
| 78 | #define FB_VAR_FIRST_API_LEVEL "first-api-level" |
| 79 | #define FB_VAR_SECURITY_PATCH_LEVEL "security-patch-level" |
| 80 | #define FB_VAR_TREBLE_ENABLED "treble-enabled" |
Yifan Hong | b299cb7 | 2021-02-17 13:44:49 -0800 | [diff] [blame] | 81 | #define FB_VAR_MAX_FETCH_SIZE "max-fetch-size" |