summaryrefslogtreecommitdiffhomepage
path: root/src/loader/inc/cpu.h
blob: 4fa7d0c87fa792fc2f97e99ab9de97c1de721329 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// MIT License, Copyright (c) 2021 Marvin Borner

#ifndef CPU_H
#define CPU_H

#include <def.h>

u8 inb(u16 port);
u16 inw(u16 port);
u32 inl(u16 port);

void outb(u16 port, u8 data);
void outw(u16 port, u16 data);
void outl(u16 port, u32 data);

u16 mminw(u32 addr);
void mmoutw(u32 addr, u16 value);

#endif