30 std::map<portio::port_addr_type, portio::port_32bit_type>
g_ports;
50 { (void) port; __builtin_memcpy(reinterpret_cast<void *>(m8), static_cast<void *>(
g_buf_8bit), 1); }
54 { (void) port; __builtin_memcpy(reinterpret_cast<void *>(m16), static_cast<void *>(
g_buf_16bit), 2); }
58 { (void) port; __builtin_memcpy(reinterpret_cast<void *>(m32), static_cast<void *>(
g_buf_32bit), 4); }
62 { (void) port; __builtin_memcpy(reinterpret_cast<void *>(m8), static_cast<void *>(
g_buf_8bit), count * 1); }
66 { (void) port; __builtin_memcpy(reinterpret_cast<void *>(m16), static_cast<void *>(
g_buf_16bit), count * 2); }
70 { (void) port; __builtin_memcpy(reinterpret_cast<void *>(m32), static_cast<void *>(
g_buf_32bit), count * 4); }
86 { (void) port; __builtin_memcpy(static_cast<void *>(
g_buf_8bit), reinterpret_cast<void *>(m8), 1); }
90 { (void) port; __builtin_memcpy(static_cast<void *>(
g_buf_16bit), reinterpret_cast<void *>(m16), 2); }
94 { (void) port; __builtin_memcpy(static_cast<void *>(
g_buf_32bit), reinterpret_cast<void *>(m32), 4); }
98 { (void) port; __builtin_memcpy(static_cast<void *>(
g_buf_8bit), reinterpret_cast<void *>(m8), count * 1); }
102 { (void) port; __builtin_memcpy(static_cast<void *>(
g_buf_16bit), reinterpret_cast<void *>(m16), count * 2); }
106 { (void) port; __builtin_memcpy(static_cast<void *>(
g_buf_32bit), reinterpret_cast<void *>(m32), count * 4); }
109 intrinsics_ut::test_portio_x64_byte()
111 std::vector<uint8_t> buf1 = {0, 1, 2, 3};
112 std::vector<uint8_t> buf2 = {42, 42, 42, 42};
113 std::vector<uint8_t> buf3 = {42, 42, 42, 42};
122 portio::outsb(10, reinterpret_cast<portio::integer_pointer>(buf1.data()));
123 portio::insb(10, reinterpret_cast<portio::integer_pointer>(buf2.data()));
142 intrinsics_ut::test_portio_x64_word()
144 std::vector<uint16_t> buf1 = {0, 1, 2, 3};
145 std::vector<uint16_t> buf2 = {42, 42, 42, 42};
146 std::vector<uint16_t> buf3 = {42, 42, 42, 42};
155 portio::outsw(10, reinterpret_cast<portio::integer_pointer>(buf1.data()));
156 portio::insw(10, reinterpret_cast<portio::integer_pointer>(buf2.data()));
175 intrinsics_ut::test_portio_x64_doubleword()
177 std::vector<uint32_t> buf1 = {0, 1, 2, 3};
178 std::vector<uint32_t> buf2 = {42, 42, 42, 42};
179 std::vector<uint32_t> buf3 = {42, 42, 42, 42};
188 portio::outsd(10, reinterpret_cast<portio::integer_pointer>(buf1.data()));
189 portio::insd(10, reinterpret_cast<portio::integer_pointer>(buf2.data()));
void __insd(uint16_t port, uint64_t m32) noexcept
auto inb(P port) noexcept
void __outsbrep(uint16_t port, uint64_t m8, uint32_t count) noexcept
void outsb(P port, integer_pointer m8) noexcept
void __outsw(uint16_t port, uint64_t m16) noexcept
void __outd(uint16_t port, uint32_t val) noexcept
auto insbrep(P port, integer_pointer m8, size_type count) noexcept
void outw(P port, T val) noexcept
void outswrep(P port, integer_pointer m16, size_type count) noexcept
void outsbrep(P port, integer_pointer m8, size_type count) noexcept
uint16_t g_buf_16bit[buf_size]
void __outsd(uint16_t port, uint64_t m32) noexcept
uint8_t __inb(uint16_t port) noexcept
void outb(P port, T val) noexcept
void __inswrep(uint16_t port, uint64_t m16, uint32_t count) noexcept
auto insb(P port, integer_pointer m8) noexcept
void outd(P port, T val) noexcept
auto insw(P port, integer_pointer m16) noexcept
void outsw(P port, integer_pointer m16) noexcept
void __outb(uint16_t port, uint8_t val) noexcept
void uint64_t uint64_t uint64_t *rdx noexcept
auto inswrep(P port, integer_pointer m16, size_type count) noexcept
void __outswrep(uint16_t port, uint64_t m16, uint32_t count) noexcept
void __outsb(uint16_t port, uint64_t m8) noexcept
constexpr const auto buf_size
uint8_t g_buf_8bit[buf_size]
void outsdrep(P port, integer_pointer m32, size_type count) noexcept
uint32_t __ind(uint16_t port) noexcept
void __insb(uint16_t port, uint64_t m8) noexcept
std::map< portio::port_addr_type, portio::port_32bit_type > g_ports
auto insdrep(P port, integer_pointer m32, size_type count) noexcept
uint32_t g_buf_32bit[buf_size]
void __insw(uint16_t port, uint64_t m16) noexcept
void outsd(P port, integer_pointer m32) noexcept
auto insd(P port, integer_pointer m32) noexcept
void __insdrep(uint16_t port, uint64_t m32, uint32_t count) noexcept
uint16_t __inw(uint16_t port) noexcept
auto inw(P port) noexcept
auto ind(P port) noexcept
void __outsdrep(uint16_t port, uint64_t m32, uint32_t count) noexcept
void __outw(uint16_t port, uint16_t val) noexcept
void __insbrep(uint16_t port, uint64_t m8, uint32_t count) noexcept