braille.h 1.0 KB

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