mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-22 03:03:05 +00: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>
63 lines
1.8 KiB
C
63 lines
1.8 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2000-2009
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
*/
|
|
|
|
#ifndef __CONSOLE_H
|
|
#define __CONSOLE_H
|
|
|
|
extern char console_buffer[];
|
|
|
|
/* common/console.c */
|
|
int console_init_f(void); /* Before relocation; uses the serial stuff */
|
|
int console_init_r(void); /* After relocation; uses the console stuff */
|
|
int console_assign(int file, const char *devname); /* Assign the console */
|
|
int ctrlc(void);
|
|
int had_ctrlc(void); /* have we had a Control-C since last clear? */
|
|
void clear_ctrlc(void); /* clear the Control-C condition */
|
|
int disable_ctrlc(int); /* 1 to disable, 0 to enable Control-C detect */
|
|
int confirm_yesno(void); /* 1 if input is "y", "Y", "yes" or "YES" */
|
|
|
|
/**
|
|
* console_record_init() - set up the console recording buffers
|
|
*
|
|
* This should be called as soon as malloc() is available so that the maximum
|
|
* amount of console output can be recorded.
|
|
*/
|
|
int console_record_init(void);
|
|
|
|
/**
|
|
* console_record_reset() - reset the console recording buffers
|
|
*
|
|
* Removes any data in the buffers
|
|
*/
|
|
void console_record_reset(void);
|
|
|
|
/**
|
|
* console_record_reset_enable() - reset and enable the console buffers
|
|
*
|
|
* This should be called to enable the console buffer.
|
|
*/
|
|
void console_record_reset_enable(void);
|
|
|
|
/**
|
|
* console_announce_r() - print a U-Boot console on non-serial consoles
|
|
*
|
|
* When U-Boot starts up with a display it generally does not announce itself
|
|
* on the display. The banner is instead emitted on the UART before relocation.
|
|
* This function prints a banner on devices which (we assume) did not receive
|
|
* it before relocation.
|
|
*
|
|
* @return 0 (meaning no errors)
|
|
*/
|
|
int console_announce_r(void);
|
|
|
|
/*
|
|
* CONSOLE multiplexing.
|
|
*/
|
|
#ifdef CONFIG_CONSOLE_MUX
|
|
#include <iomux.h>
|
|
#endif
|
|
|
|
#endif
|