xref: /linux/kernel/printk/console_cmdline.h (revision 3710578d2d580d42abe27f17bab9a4cafb6aad67)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _CONSOLE_CMDLINE_H
3 #define _CONSOLE_CMDLINE_H
4 
5 #define MAX_CMDLINECONSOLES 8
6 
7 int console_opt_save(const char *str, const char *brl_opt);
8 int console_opt_add_preferred_console(const char *name, const short idx,
9 				      char *options, char *brl_options);
10 
11 struct console_cmdline
12 {
13 	char	name[16];			/* Name of the driver	    */
14 	int	index;				/* Minor dev. to use	    */
15 	bool	user_specified;			/* Specified by command line vs. platform */
16 	char	*options;			/* Options for the driver   */
17 #ifdef CONFIG_A11Y_BRAILLE_CONSOLE
18 	char	*brl_options;			/* Options for braille driver */
19 #endif
20 };
21 
22 #endif
23