|
IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
|
IO low-level port operations. More...
#include <arch/types.hpp>

Go to the source code of this file.
Classes | |
| class | igros::x86::io |
| I/O structure. More... | |
Namespaces | |
| namespace | igros |
| IgrOS kernel: common types and literals. | |
| namespace | igros::x86 |
| Code shared by i386 and x86_64: ports, interrupts, exceptions, paging. | |
Typedefs | |
| using | igros::x86::port_t = igros_word_t |
| Define port data type which is 16bit word. | |
Functions | |
| auto | portRead8 (const igros::x86::port_t addr) noexcept -> igros::igros_byte_t |
| Read byte from port. | |
| auto | portRead16 (const igros::x86::port_t addr) noexcept -> igros::igros_word_t |
| Read word from port. | |
| auto | portRead32 (const igros::x86::port_t addr) noexcept -> igros::igros_dword_t |
| Read long from port. | |
| void | portWrite8 (const igros::x86::port_t addr, const igros::igros_byte_t value) noexcept |
| Write byte to port. | |
| void | portWrite16 (const igros::x86::port_t addr, const igros::igros_word_t value) noexcept |
| Write word to port. | |
| void | portWrite32 (const igros::x86::port_t addr, const igros::igros_dword_t value) noexcept |
| Write long to port. | |
IO low-level port operations.
Definition in file io.hpp.
|
nodiscardnoexcept |
Read word from port.
| addr | Port |
|
nodiscardnoexcept |
Read long from port.
| addr | Port |
|
nodiscardnoexcept |
Read byte from port.
| addr | Port |
|
noexcept |
Write word to port.
| addr | Port |
| value | Written word |
|
noexcept |
Write long to port.
| addr | Port |
| value | Written long |
|
noexcept |
Write byte to port.
| addr | Port |
| value | Written byte |