basickernel/kernel/ports.h

19 lines
402 B
C
Raw Normal View History

2018-02-24 09:00:00 +00:00
#pragma once
/*
* return a byte from a port.
*/
2018-02-26 14:02:25 +00:00
unsigned char port_byte_in(unsigned short port);
2018-02-24 09:00:00 +00:00
/*
* write a byte of data to a port.
*/
2018-02-26 14:02:25 +00:00
void port_byte_out(unsigned short port, unsigned char data);
2018-02-24 09:00:00 +00:00
/*
* return a word of data from a port.
*/
unsigned short port_word_in(unsigned short port);
/*
* write a word of data to a port.
*/
void port_word_out(unsigned short port, unsigned short data);