summaryrefslogtreecommitdiff
path: root/io.h
blob: c58c27152ef900c3a28dffcc3d27cc73d5ecc864 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef IO_H
#define IO_H

#include "cia.h"

static inline unsigned long
inb(unsigned long port)
{
  return *(volatile unsigned char *)(CIA_BW_IO + port);
}

static inline void
outb(unsigned char val, unsigned long port)
{
  *(volatile unsigned char *)(CIA_BW_IO + port) = val;
}

#endif