- TTY driver
- VGA driver
- kernel's main function
- Makefiles

*NOTE*: iceOS not works at this stage.
This commit is contained in:
ice-bit
2019-07-03 18:12:57 +02:00
parent bb59c7532f
commit bec03e3d1b
13 changed files with 328 additions and 13 deletions

20
kernel/drivers/ports.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef _PORTS_H
#define _PORTS_H
#include <stdint.h>
/* outb:
* Redirect data to port(high level interface for ports.asm)
* @param port: Output port to send data to.
* @param data: The actual data to send to port
*/
void outb(uint16_t port, uint8_t data);
/* inb:
* Fetch data from a port, return a char
* @param port: Input port to read data from.
*/
uint8_t inb(uint16_t port);
#endif