2021-01-02 17:49:15 +01:00
|
|
|
/**************************************
|
|
|
|
* VulcanOS Kernel *
|
|
|
|
* Developed by Marco 'icebit' Cetica *
|
|
|
|
* (c) 2019-2021 *
|
|
|
|
* Released under GPLv3 *
|
|
|
|
* https://github.com/ice-bit/iceOS *
|
|
|
|
***************************************/
|
2019-07-03 18:12:57 +02:00
|
|
|
#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
|
|
|
|
*/
|
2019-07-08 18:43:45 +02:00
|
|
|
void outb(uint16_t port, uint16_t data);
|
2019-07-03 18:12:57 +02:00
|
|
|
|
|
|
|
/* inb:
|
|
|
|
* Fetch data from a port, return a char
|
|
|
|
* @param port: Input port to read data from.
|
|
|
|
*/
|
|
|
|
uint8_t inb(uint16_t port);
|
|
|
|
|
|
|
|
|
2021-01-02 17:49:15 +01:00
|
|
|
#endif
|