kernel/inc/utils/io.h

16 lines
394 B
C
Raw Permalink Normal View History

// This file is part of noxos and licensed under the MIT open source license
2023-01-25 21:36:34 +00:00
#ifndef NOX_IO_H
#define NOX_IO_H
#include "stdtypes.h"
// sends one byte to a port
void io_out_byte (uint16_t port, uint8_t data);
uint8_t io_in_byte (uint16_t port);
2023-04-22 08:48:15 +00:00
void io_out_word (uint16_t port, uint32_t data);
uint32_t io_in_word (uint16_t port);
void io_wait ();
2023-01-25 21:36:34 +00:00
#endif //NOX_IO_H