vga.h 382 B

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