vulcanos/kernel/drivers/ports.h
ice-bit 52bb2609ae Now this should be complete
Added basic shell and fixed various bugs...now iceos should be
"complete".
2019-07-08 18:43:45 +02:00

20 lines
398 B
C

#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, uint16_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