summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/io.h
blob: 02009d543d3ef31e86b9aa44fff3ce79cf16022d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef ASM_X86_IO_H
#define ASM_X86_IO_H

#include <stdint.h>

static inline void outb(uint16_t port, uint8_t data)
{
	asm volatile (
		"out %0,%1"
		: /* no output */
		: "a" (data), "d" (port)
	);
}

#endif /* ASM_X86_IO_H */