mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-18 17:23:25 +08:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
59 lines
1.3 KiB
C
59 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2000
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
*/
|
|
|
|
#ifndef __BOOTRETRY_H
|
|
#define __BOOTRETRY_H
|
|
|
|
#ifdef CONFIG_BOOT_RETRY_TIME
|
|
/**
|
|
* bootretry_tstc_timeout() - ensure we get a keypress before timeout
|
|
*
|
|
* Check for a keypress repeatedly, resetting the watchdog each time. If a
|
|
* keypress is not received within the command timeout, return an error.
|
|
*
|
|
* @return 0 if a key is received in time, -ETIMEDOUT if not
|
|
*/
|
|
int bootretry_tstc_timeout(void);
|
|
|
|
/**
|
|
* bootretry_init_cmd_timeout() - set up command timeout
|
|
*
|
|
* Get the required command timeout from the environment.
|
|
*/
|
|
void bootretry_init_cmd_timeout(void);
|
|
|
|
/**
|
|
* bootretry_reset_cmd_timeout() - reset command timeout
|
|
*
|
|
* Reset the command timeout so that the user has a fresh start. This is
|
|
* typically used when input is received from the user.
|
|
*/
|
|
void bootretry_reset_cmd_timeout(void);
|
|
|
|
/** bootretry_dont_retry() - Indicate that we should not retry the boot */
|
|
void bootretry_dont_retry(void);
|
|
#else
|
|
static inline int bootretry_tstc_timeout(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void bootretry_init_cmd_timeout(void)
|
|
{
|
|
}
|
|
|
|
static inline void bootretry_reset_cmd_timeout(void)
|
|
{
|
|
}
|
|
|
|
static inline void bootretry_dont_retry(void)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|