coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
io.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef __ARCH_IO_H__
4
#define __ARCH_IO_H__
5
6
#include <
stdint.h
>
7
8
u8
io_read8
(
u16
reg);
9
void
io_write8
(
u16
reg,
u8
value
);
10
11
static
inline
void
outb
(
uint8_t
value
,
uint16_t
port
)
12
{
13
io_write8
(
port
,
value
);
14
}
15
16
static
inline
uint8_t
inb
(
uint16_t
port
)
17
{
18
return
io_read8
(
port
);
19
}
20
21
#endif
value
pte_t value
Definition:
mmu.c:91
inb
u8 inb(u16 port)
outb
void outb(u8 val, u16 port)
port
port
Definition:
i915.h:29
io_read8
u8 io_read8(u16 reg)
Definition:
fch.c:56
io_write8
void io_write8(u16 reg, u8 value)
Definition:
fch.c:61
stdint.h
uint16_t
unsigned short uint16_t
Definition:
stdint.h:11
u16
uint16_t u16
Definition:
stdint.h:48
u8
uint8_t u8
Definition:
stdint.h:45
uint8_t
unsigned char uint8_t
Definition:
stdint.h:8
src
soc
amd
common
psp_verstage
include
arch
io.h
Generated by
1.9.1