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 {
14 }
15 
16 static inline uint8_t inb(uint16_t port)
17 {
18  return io_read8(port);
19 }
20 
21 #endif
pte_t value
Definition: mmu.c:91
u8 inb(u16 port)
void outb(u8 val, u16 port)
port
Definition: i915.h:29
u8 io_read8(u16 reg)
Definition: fch.c:56
void io_write8(u16 reg, u8 value)
Definition: fch.c:61
unsigned short uint16_t
Definition: stdint.h:11
uint16_t u16
Definition: stdint.h:48
uint8_t u8
Definition: stdint.h:45
unsigned char uint8_t
Definition: stdint.h:8