1*24b852a7SSimon Glass /* 2*24b852a7SSimon Glass * (C) Copyright 2000-2009 3*24b852a7SSimon Glass * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4*24b852a7SSimon Glass * 5*24b852a7SSimon Glass * SPDX-License-Identifier: GPL-2.0+ 6*24b852a7SSimon Glass */ 7*24b852a7SSimon Glass 8*24b852a7SSimon Glass #ifndef __CONSOLE_H 9*24b852a7SSimon Glass #define __CONSOLE_H 10*24b852a7SSimon Glass 11*24b852a7SSimon Glass extern char console_buffer[]; 12*24b852a7SSimon Glass 13*24b852a7SSimon Glass /* common/console.c */ 14*24b852a7SSimon Glass int console_init_f(void); /* Before relocation; uses the serial stuff */ 15*24b852a7SSimon Glass int console_init_r(void); /* After relocation; uses the console stuff */ 16*24b852a7SSimon Glass int console_assign(int file, const char *devname); /* Assign the console */ 17*24b852a7SSimon Glass int ctrlc(void); 18*24b852a7SSimon Glass int had_ctrlc(void); /* have we had a Control-C since last clear? */ 19*24b852a7SSimon Glass void clear_ctrlc(void); /* clear the Control-C condition */ 20*24b852a7SSimon Glass int disable_ctrlc(int); /* 1 to disable, 0 to enable Control-C detect */ 21*24b852a7SSimon Glass int confirm_yesno(void); /* 1 if input is "y", "Y", "yes" or "YES" */ 22*24b852a7SSimon Glass 23*24b852a7SSimon Glass /* 24*24b852a7SSimon Glass * CONSOLE multiplexing. 25*24b852a7SSimon Glass */ 26*24b852a7SSimon Glass #ifdef CONFIG_CONSOLE_MUX 27*24b852a7SSimon Glass #include <iomux.h> 28*24b852a7SSimon Glass #endif 29*24b852a7SSimon Glass 30*24b852a7SSimon Glass #endif 31