26 static std::map<uint16_t, uint8_t>
g_ports;
41 serial_ut::test_serial_null_intrinsics()
47 serial_ut::test_serial_success()
66 serial_ut::test_serial_set_baud_rate_success()
68 auto serial = std::make_unique<serial_port_intel_x64>();
109 serial_ut::test_serial_set_data_bits_success()
111 auto serial = std::make_unique<serial_port_intel_x64>();
124 serial_ut::test_serial_set_data_bits_success_extra_bits()
126 auto serial = std::make_unique<serial_port_intel_x64>();
129 serial->set_data_bits(static_cast<serial_port_intel_x64::data_bits_t>(bits));
137 serial_ut::test_serial_set_stop_bits_success()
139 auto serial = std::make_unique<serial_port_intel_x64>();
148 serial_ut::test_serial_set_stop_bits_success_extra_bits()
150 auto serial = std::make_unique<serial_port_intel_x64>();
153 serial->set_stop_bits(static_cast<serial_port_intel_x64::stop_bits_t>(bits));
161 serial_ut::test_serial_set_parity_bits_success()
163 auto serial = std::make_unique<serial_port_intel_x64>();
178 serial_ut::test_serial_set_parity_bits_success_extra_bits()
180 auto serial = std::make_unique<serial_port_intel_x64>();
183 serial->set_parity_bits(static_cast<serial_port_intel_x64::parity_bits_t>(bits));
191 serial_ut::test_serial_write_character()
195 auto serial = std::make_unique<serial_port_intel_x64>();
200 serial_ut::test_serial_write_string()
204 auto serial = std::make_unique<serial_port_intel_x64>();
205 serial->write(
"hello world");
void __outb(uint16_t port, uint8_t val) noexcept
constexpr const x64::portio::port_8bit_type line_control_parity_mask
#define expect_no_exception(f)
constexpr const x64::portio::port_8bit_type line_control_stop_mask
#define DEFAULT_BAUD_RATE
constexpr const x64::portio::port_8bit_type fifo_control_clear_transmit_fifo
constexpr const x64::portio::port_addr_type line_status_reg
constexpr const x64::portio::port_8bit_type line_control_data_mask
void uint64_t uint64_t uint64_t *rdx noexcept
constexpr const x64::portio::port_addr_type baud_rate_lo_reg
std::map< portio::port_addr_type, portio::port_32bit_type > g_ports
static serial_port_intel_x64 * instance() noexcept
constexpr const x64::portio::port_addr_type line_control_reg
#define DEFAULT_STOP_BITS
constexpr const x64::portio::port_addr_type baud_rate_hi_reg
#define DEFAULT_PARITY_BITS
#define DEFAULT_DATA_BITS
uint8_t __inb(uint16_t port) noexcept
constexpr const x64::portio::port_8bit_type fifo_control_enable_fifos
constexpr const x64::portio::port_addr_type fifo_control_reg
constexpr const x64::portio::port_8bit_type fifo_control_clear_recieve_fifo