diff options
author | Evan Benn <evanbenn@chromium.org> | 2022-12-01 16:28:10 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-12-14 06:47:55 +0000 |
commit | d8ec9a3bf7800db1ba1b3cba0d3b29ab27e0f8a4 (patch) | |
tree | cd3ee697ddb93098ab9c30c340c7daedc3cb568b /futility/updater_utils.h | |
parent | 6dc378ebd7eba33e560e1f2561e2e92c8690e326 (diff) | |
download | vboot-d8ec9a3bf7800db1ba1b3cba0d3b29ab27e0f8a4.tar.gz |
futility: Move prepare_servo_control to updater_utils.c
BUG=b:260531154
BRANCH=None
TEST=FEATURES=test emerge-grunt vboot_reference
TEST=futility gbb -s --flags 0x0 /tmp/bios /tmp/bios2
Change-Id: Ib3bd54c81a66da8839bd46b7b4cd57277af4d0f9
Signed-off-by: Evan Benn <evanbenn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4075309
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Diffstat (limited to 'futility/updater_utils.h')
-rw-r--r-- | futility/updater_utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/futility/updater_utils.h b/futility/updater_utils.h index 43e23a1e..953b91f0 100644 --- a/futility/updater_utils.h +++ b/futility/updater_utils.h @@ -194,6 +194,13 @@ char *host_shell(const char *command); char *host_detect_servo(const char **prepare_ctrl_name); /* + * Makes a dut-control request for control_name. + * Sets control_name to "on" if on is non zero, else "off". + * Does not check for failure. + */ +void prepare_servo_control(const char *control_name, int on); + +/* * Returns 1 if a given file (cbfs_entry_name) exists inside a particular CBFS * section of an image file, otherwise 0. */ |