cowos moves to 64bit! and framebuffers too ig

This commit is contained in:
cowmonk 2025-05-23 17:24:25 -07:00
parent b78e4fc24d
commit babc65305d
32 changed files with 4074 additions and 146 deletions

22
kernel/include/fb.h Normal file
View file

@ -0,0 +1,22 @@
#ifndef FB_H
#define FB_H
/* *pixel = vram + y*pitch + x*pixelwidth */
/*
| width | how many pixels you have on a horizontal line |
|===========================================================================|
| height | how many horizontal lines of pixels are present |
|===========================================================================|
| pitch | how many bytes of VRAM you should skip to go one pixel down |
|===========================================================================|
| depth | how many bits of color you have |
|===========================================================================|
| pixelwidth | how many bytes of VRAM you should skip to go one pixel right |
*/
#include <klibc/types.h>
void putpixel(int pos_x, int pos_y, unsigned char VGA_COLOR);
#endif /* FB_H */