Joe Perches | bbeddf5 | 2013-07-31 13:53:45 -0700 | [diff] [blame] | 1 | #ifndef _PRINTK_BRAILLE_H |
| 2 | #define _PRINTK_BRAILLE_H |
| 3 | |
| 4 | #ifdef CONFIG_A11Y_BRAILLE_CONSOLE |
| 5 | |
| 6 | static inline void |
| 7 | braille_set_options(struct console_cmdline *c, char *brl_options) |
| 8 | { |
| 9 | c->brl_options = brl_options; |
| 10 | } |
| 11 | |
Samuel Thibault | 2ed2b86 | 2017-03-26 22:47:36 +0200 | [diff] [blame] | 12 | /* |
| 13 | * Setup console according to braille options. |
| 14 | * Return -EINVAL on syntax error, 0 on success (or no braille option was |
| 15 | * actually given). |
| 16 | * Modifies str to point to the serial options |
| 17 | * Sets brl_options to the parsed braille options. |
| 18 | */ |
| 19 | int |
Joe Perches | bbeddf5 | 2013-07-31 13:53:45 -0700 | [diff] [blame] | 20 | _braille_console_setup(char **str, char **brl_options); |
| 21 | |
| 22 | int |
| 23 | _braille_register_console(struct console *console, struct console_cmdline *c); |
| 24 | |
| 25 | int |
| 26 | _braille_unregister_console(struct console *console); |
| 27 | |
| 28 | #else |
| 29 | |
| 30 | static inline void |
| 31 | braille_set_options(struct console_cmdline *c, char *brl_options) |
| 32 | { |
| 33 | } |
| 34 | |
Samuel Thibault | 2ed2b86 | 2017-03-26 22:47:36 +0200 | [diff] [blame] | 35 | static inline int |
Joe Perches | bbeddf5 | 2013-07-31 13:53:45 -0700 | [diff] [blame] | 36 | _braille_console_setup(char **str, char **brl_options) |
| 37 | { |
Samuel Thibault | 2ed2b86 | 2017-03-26 22:47:36 +0200 | [diff] [blame] | 38 | return 0; |
Joe Perches | bbeddf5 | 2013-07-31 13:53:45 -0700 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | static inline int |
| 42 | _braille_register_console(struct console *console, struct console_cmdline *c) |
| 43 | { |
| 44 | return 0; |
| 45 | } |
| 46 | |
| 47 | static inline int |
| 48 | _braille_unregister_console(struct console *console) |
| 49 | { |
| 50 | return 0; |
| 51 | } |
| 52 | |
| 53 | #endif |
| 54 | |
| 55 | #endif |