console.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * GRUB -- GRand Unified Bootloader
  3. * Copyright (C) 2002,2005,2006,2007 Free Software Foundation, Inc.
  4. *
  5. * GRUB is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * GRUB is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef GRUB_EFI_CONSOLE_HEADER
  19. #define GRUB_EFI_CONSOLE_HEADER 1
  20. #include <grub/types.h>
  21. #include <grub/symbol.h>
  22. #define GRUB_EFI_SCAN_NULL 0
  23. #define GRUB_EFI_SCAN_UP 1
  24. #define GRUB_EFI_SCAN_DOWN 2
  25. #define GRUB_EFI_SCAN_RIGHT 3
  26. #define GRUB_EFI_SCAN_LEFT 4
  27. #define GRUB_EFI_SCAN_HOME 5
  28. #define GRUB_EFI_SCAN_END 6
  29. #define GRUB_EFI_SCAN_INSERT 7
  30. #define GRUB_EFI_SCAN_DELETE 8
  31. #define GRUB_EFI_SCAN_PAGE_UP 9
  32. #define GRUB_EFI_SCAN_PAGE_DOWN 0xa
  33. #define GRUB_EFI_SCAN_F1 0xb
  34. #define GRUB_EFI_SCAN_F2 0xc
  35. #define GRUB_EFI_SCAN_F3 0xd
  36. #define GRUB_EFI_SCAN_F4 0xe
  37. #define GRUB_EFI_SCAN_F5 0xf
  38. #define GRUB_EFI_SCAN_F6 0x10
  39. #define GRUB_EFI_SCAN_F7 0x11
  40. #define GRUB_EFI_SCAN_F8 0x12
  41. #define GRUB_EFI_SCAN_F9 0x13
  42. #define GRUB_EFI_SCAN_F10 0x14
  43. #define GRUB_EFI_SCAN_ESC 0x17
  44. /* Initialize the console system. */
  45. void grub_console_init (void);
  46. /* Finish the console system. */
  47. void grub_console_fini (void);
  48. #endif /* ! GRUB_EFI_CONSOLE_HEADER */