braille.h 823 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. char *
  10. _braille_console_setup(char **str, char **brl_options);
  11. int
  12. _braille_register_console(struct console *console, struct console_cmdline *c);
  13. int
  14. _braille_unregister_console(struct console *console);
  15. #else
  16. static inline void
  17. braille_set_options(struct console_cmdline *c, char *brl_options)
  18. {
  19. }
  20. static inline char *
  21. _braille_console_setup(char **str, char **brl_options)
  22. {
  23. return NULL;
  24. }
  25. static inline int
  26. _braille_register_console(struct console *console, struct console_cmdline *c)
  27. {
  28. return 0;
  29. }
  30. static inline int
  31. _braille_unregister_console(struct console *console)
  32. {
  33. return 0;
  34. }
  35. #endif
  36. #endif