1 /* 2 * (C) Copyright 2008 - 2009 3 * Windriver, <www.windriver.com> 4 * Tom Rix <Tom.Rix@windriver.com> 5 * 6 * Copyright 2011 Sebastian Andrzej Siewior <bigeasy@linutronix.de> 7 * 8 * Copyright 2014 Linaro, Ltd. 9 * Rob Herring <robh@kernel.org> 10 * 11 * SPDX-License-Identifier: GPL-2.0+ 12 */ 13 #ifndef _FASTBOOT_H_ 14 #define _FASTBOOT_H_ 15 16 /* The 64 defined bytes plus \0 */ 17 #define FASTBOOT_RESPONSE_LEN (64 + 1) 18 19 void fastboot_fail(const char *reason, char *response); 20 void fastboot_okay(const char *reason, char *response); 21 22 /** 23 * Send an INFO packet during long commands based on timer. If 24 * CONFIG_UDP_FUNCTION_FASTBOOT is defined, an INFO packet is sent 25 * if the time is 30 seconds after start. Else, noop. 26 * 27 * TODO: Handle the situation where both UDP and USB fastboot are 28 * enabled. 29 * 30 * @param start: Time since last INFO packet was sent. 31 * @param msg: String describing the reason for waiting 32 */ 33 void timed_send_info(ulong *start, const char *msg); 34 35 #endif /* _FASTBOOT_H_ */ 36