blob: d4ec4282dd4ed8288c4079bb03d696958b39eac8 [file] [log] [blame] [edit]
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* (C) Copyright 2008 - 2009
* Windriver, <www.windriver.com>
* Tom Rix <Tom.Rix@windriver.com>
*
* Copyright 2011 Sebastian Andrzej Siewior <bigeasy@linutronix.de>
*
* Copyright 2014 Linaro, Ltd.
* Rob Herring <robh@kernel.org>
*/
#ifndef _FASTBOOT_H_
#define _FASTBOOT_H_
/* The 64 defined bytes plus \0 */
#define FASTBOOT_RESPONSE_LEN (64 + 1)
void fastboot_fail(const char *reason);
void fastboot_okay(const char *reason);
void fastboot_info(const char *reason);
/* Will be set to true once fastboot detects a host USB connection.
* Does not currently detect disconnections, so will stay true even if the
* USB cable is unplugged afterwards. */
extern bool fastboot_host_connected;
#endif /* _FASTBOOT_H_ */