braille.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _PRINTK_BRAILLE_H
  3. #define _PRINTK_BRAILLE_H
  4. #ifdef CONFIG_A11Y_BRAILLE_CONSOLE
  5. static inline void
  6. braille_set_options(struct console_cmdline *c, char *brl_options)
  7. {
  8. c->brl_options = brl_options;
  9. }
  10. /*
  11. * Setup console according to braille options.
  12. * Return -EINVAL on syntax error, 0 on success (or no braille option was
  13. * actually given).
  14. * Modifies str to point to the serial options
  15. * Sets brl_options to the parsed braille options.
  16. */
  17. int
  18. _braille_console_setup(char **str, char **brl_options);
  19. int
  20. _braille_register_console(struct console *console, struct console_cmdline *c);
  21. int
  22. _braille_unregister_console(struct console *console);
  23. #else
  24. static inline void
  25. braille_set_options(struct console_cmdline *c, char *brl_options)
  26. {
  27. }
  28. static inline int
  29. _braille_console_setup(char **str, char **brl_options)
  30. {
  31. return 0;
  32. }
  33. static inline int
  34. _braille_register_console(struct console *console, struct console_cmdline *c)
  35. {
  36. return 0;
  37. }
  38. static inline int
  39. _braille_unregister_console(struct console *console)
  40. {
  41. return 0;
  42. }
  43. #endif
  44. #endif