vga.hpp 413 B

123456789101112131415161718192021
  1. #pragma once
  2. #ifndef _KERNEL_VGA_H_
  3. #define _KERNEL_VGA_H_
  4. #include <stdint.h>
  5. #define VGA_CHAR_COLOR_WHITE (0x0fU)
  6. struct vga_char {
  7. int8_t c;
  8. uint8_t color;
  9. };
  10. #define VGA_MEM ((struct vga_char*)0xb8000)
  11. #define VGA_SCREEN_WIDTH_IN_CHARS (80U)
  12. #define VGA_SCREEN_HEIGHT_IN_CHARS (25U)
  13. void vga_put_char(struct vga_char* c);
  14. void vga_print(const char* str, uint8_t color);
  15. #endif // _KERNEL_VGA_H_