summaryrefslogtreecommitdiff
path: root/src/port.h
blob: c7ed4571aa978349d7b14368341e9039f60cddbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

#ifndef __PORT_H
#define __PORT_H

#include <stddef.h>
#include <stdint.h>

struct port
{
	uint16_t port_number;
	enum { port8bit, port8bit_slow,
           port16bit, port32bit} bandwidth;
};

void port_write(struct port p, uint32_t data);
uint32_t port_read(struct port p);


#endif