aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/io/io.h
blob: 22776eebd2e0edbb65ba62914b05a60d6014238c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef MELVIX_IO_H
#define MELVIX_IO_H

#include <stdint.h>

uint8_t receive_b(uint16_t port);

uint16_t receive_w(uint16_t port);

uint32_t receive_l(uint16_t port);

void send_b(uint16_t port, uint8_t data);

void send_w(uint16_t port, uint16_t data);

void send_l(uint16_t port, uint32_t data);

#endif