First commit: add folder structure, make process, kernel main function, base for framebuffer driver
This commit is contained in:
16
stdio.h
Normal file
16
stdio.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef INCLUDE_STDIO_H
|
||||
#define INCLUDE_STDIO_H
|
||||
|
||||
#define FB_GREEN 2
|
||||
#define FB_DARK_GREY 8
|
||||
|
||||
#define FB_CMD_PORT 0x3D4
|
||||
#define FB_DATA_PORT 0x3D5
|
||||
#define FB_HIGH_BYTE_CMD 14
|
||||
#define FB_LOW_BYTE_CMD 15
|
||||
|
||||
void move_cursor(unsigned short pos);
|
||||
void putchar(unsigned int i, char c, unsigned char fg, unsigned char bg);
|
||||
int write(char *buf, unsigned int len);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user