85 io() noexcept = default;
87 ~
io() noexcept = default;
90 io(const
io &other) = delete;
92 auto operator=(const
io &other) ->
io & = delete;
96 auto operator=(
io &&other) ->
io & = delete;
161 return ::portRead8(addr);
167 return ::portRead16(addr);
173 return ::portRead32(addr);
io() noexcept=default
Default c-tor.
static void writeMemory8(igros_byte_t *const addr, const igros_byte_t value) noexcept
Write byte to memory.
static void writePort32(const port_t addr, const igros_dword_t value) noexcept
Write long to port.
static void writeMemory32(igros_dword_t *const addr, const igros_dword_t value) noexcept
Write long to memory.
static auto readPort16(const port_t addr) noexcept -> igros_word_t
Read word from port.
io() noexcept=default
Default c-tor.
static auto readMemory8(const igros_byte_t *const addr) noexcept -> igros_byte_t
Read byte from memory.
static auto readPort32(const port_t addr) noexcept -> igros_dword_t
Read long from port.
static auto readMemory16(const igros_word_t *const addr) noexcept -> igros_word_t
Read word from memory.
static auto readMemory32(const igros_dword_t *const addr) noexcept -> igros_dword_t
Read long from memory.
static void writePort16(const port_t addr, const igros_word_t value) noexcept
Write word to port.
static auto readPort8(const port_t addr) noexcept -> igros_byte_t
Read byte from port.
static void writeMemory16(igros_word_t *const addr, const igros_word_t value) noexcept
Write word to memory.
static void writePort8(const port_t addr, const igros_byte_t value) noexcept
Write byte to port.
std::uint16_t igros_word_t
16-bit unsigned integer
std::uint8_t igros_byte_t
8-bit unsigned integer
std::uint32_t igros_dword_t
32-bit unsigned integer
Code shared by i386 and x86_64: ports, interrupts, exceptions, paging.
igros_word_t port_t
Define port data type which is 16bit word.
Common C++ types redefinition.
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 portWrite32(const igros::x86::port_t addr, const igros::igros_dword_t value) noexcept
Write long to port.
void portWrite16(const igros::x86::port_t addr, const igros::igros_word_t value) noexcept
Write word to port.
void portWrite8(const igros::x86::port_t addr, const igros::igros_byte_t value) noexcept
Write byte to port.