aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso/psp_verstage/include/arch/io.h
blob: efa128b25c99f753bd13f0e01f19eeefda30fa02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __ARCH_IO_H__
#define __ARCH_IO_H__

#include <stdint.h>

u8 io_read8(u16 reg);
void io_write8(u16 reg, u8 value);

static inline void outb(uint8_t value, uint16_t port)
{
	io_write8(port, value);
}

static inline uint8_t inb(uint16_t port)
{
	return io_read8(port);
}

#endif