console.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* include/modules/console.h
  2. *
  3. * Copyright (C) 2021, 2022 intirain.
  4. *
  5. * This file is part of evx.
  6. *
  7. * evx is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * evx is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with evx. If not, see <https://www.gnu.org/licenses/>
  19. */
  20. #ifndef __MOD_CONSOLE_H
  21. #define __MOD_CONSOLE_H
  22. #ifndef __ASSEMBLER__
  23. #include <sys/types.h>
  24. #define TABSIZE 8
  25. /* for vga 80x25 display */
  26. #define CMD_POS_LO 0x0f
  27. #define CMD_POS_HI 0x0e
  28. #define VGA_INDEX 0x03d4
  29. #define VGA_DATA 0x03d5
  30. #define FB_ADDR ((__uint16_t *) 0xb8000)
  31. #define COLMS 80
  32. #define LINES 25
  33. #endif
  34. #endif