Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _PRINTK_BRAILLE_H
0003 #define _PRINTK_BRAILLE_H
0004 
0005 #ifdef CONFIG_A11Y_BRAILLE_CONSOLE
0006 
0007 static inline void
0008 braille_set_options(struct console_cmdline *c, char *brl_options)
0009 {
0010     c->brl_options = brl_options;
0011 }
0012 
0013 /*
0014  * Setup console according to braille options.
0015  * Return -EINVAL on syntax error, 0 on success (or no braille option was
0016  * actually given).
0017  * Modifies str to point to the serial options
0018  * Sets brl_options to the parsed braille options.
0019  */
0020 int
0021 _braille_console_setup(char **str, char **brl_options);
0022 
0023 int
0024 _braille_register_console(struct console *console, struct console_cmdline *c);
0025 
0026 int
0027 _braille_unregister_console(struct console *console);
0028 
0029 #else
0030 
0031 static inline void
0032 braille_set_options(struct console_cmdline *c, char *brl_options)
0033 {
0034 }
0035 
0036 static inline int
0037 _braille_console_setup(char **str, char **brl_options)
0038 {
0039     return 0;
0040 }
0041 
0042 static inline int
0043 _braille_register_console(struct console *console, struct console_cmdline *c)
0044 {
0045     return 0;
0046 }
0047 
0048 static inline int
0049 _braille_unregister_console(struct console *console)
0050 {
0051     return 0;
0052 }
0053 
0054 #endif
0055 
0056 #endif