constants.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. #define FB_CMD_GETVAR "getvar"
  18. #define FB_CMD_DOWNLOAD "download"
  19. #define FB_CMD_UPLOAD "upload"
  20. #define FB_CMD_FLASH "flash"
  21. #define FB_CMD_ERASE "erase"
  22. #define FB_CMD_BOOT "boot"
  23. #define FB_CMD_SET_ACTIVE "set_active"
  24. #define FB_CMD_CONTINUE "continue"
  25. #define FB_CMD_REBOOT "reboot"
  26. #define FB_CMD_SHUTDOWN "shutdown"
  27. #define FB_CMD_REBOOT_BOOTLOADER "reboot-bootloader"
  28. #define FB_CMD_REBOOT_RECOVERY "reboot-recovery"
  29. #define FB_CMD_REBOOT_FASTBOOT "reboot-fastboot"
  30. #define FB_CMD_CREATE_PARTITION "create-logical-partition"
  31. #define FB_CMD_DELETE_PARTITION "delete-logical-partition"
  32. #define FB_CMD_RESIZE_PARTITION "resize-logical-partition"
  33. #define FB_CMD_UPDATE_SUPER "update-super"
  34. #define FB_CMD_OEM "oem"
  35. #define FB_CMD_GSI "gsi"
  36. #define RESPONSE_OKAY "OKAY"
  37. #define RESPONSE_FAIL "FAIL"
  38. #define RESPONSE_DATA "DATA"
  39. #define RESPONSE_INFO "INFO"
  40. #define FB_COMMAND_SZ 64
  41. #define FB_RESPONSE_SZ 64
  42. #define FB_VAR_VERSION "version"
  43. #define FB_VAR_VERSION_BOOTLOADER "version-bootloader"
  44. #define FB_VAR_VERSION_BASEBAND "version-baseband"
  45. #define FB_VAR_PRODUCT "product"
  46. #define FB_VAR_SERIALNO "serialno"
  47. #define FB_VAR_SECURE "secure"
  48. #define FB_VAR_UNLOCKED "unlocked"
  49. #define FB_VAR_CURRENT_SLOT "current-slot"
  50. #define FB_VAR_MAX_DOWNLOAD_SIZE "max-download-size"
  51. #define FB_VAR_HAS_SLOT "has-slot"
  52. #define FB_VAR_SLOT_COUNT "slot-count"
  53. #define FB_VAR_PARTITION_SIZE "partition-size"
  54. #define FB_VAR_PARTITION_TYPE "partition-type"
  55. #define FB_VAR_SLOT_SUCCESSFUL "slot-successful"
  56. #define FB_VAR_SLOT_UNBOOTABLE "slot-unbootable"
  57. #define FB_VAR_IS_LOGICAL "is-logical"
  58. #define FB_VAR_IS_USERSPACE "is-userspace"
  59. #define FB_VAR_HW_REVISION "hw-revision"
  60. #define FB_VAR_VARIANT "variant"
  61. #define FB_VAR_OFF_MODE_CHARGE_STATE "off-mode-charge"
  62. #define FB_VAR_BATTERY_VOLTAGE "battery-voltage"
  63. #define FB_VAR_BATTERY_SOC_OK "battery-soc-ok"
  64. #define FB_VAR_SUPER_PARTITION_NAME "super-partition-name"