summaryrefslogtreecommitdiff
path: root/src/port.h
blob: a5e8bd8013c8d620d37ad415ed38dd94e20dfd19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef PORT_H
#define PORT_H

#include <stdint.h>

typedef struct port8_t {
	uint16_t number; // port number, e.g. 0x3d4 VGA index register
} port8_t;

void port8_init( port8_t *port, uint16_t number );
void port8_write( port8_t *port, uint8_t data );
uint8_t port8_read( port8_t *port );

#endif //