From 62f69cc50fd5174c4202ad7f57138c27422b2b65 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Sat, 15 May 2021 13:51:13 +0300 Subject: Kernel: Use IOAddress instead of direct IO calls in SerialDevice --- Kernel/Devices/SerialDevice.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Kernel/Devices/SerialDevice.h') diff --git a/Kernel/Devices/SerialDevice.h b/Kernel/Devices/SerialDevice.h index 1bd05c944b..5a7182d972 100644 --- a/Kernel/Devices/SerialDevice.h +++ b/Kernel/Devices/SerialDevice.h @@ -7,6 +7,7 @@ #pragma once #include +#include namespace Kernel { @@ -18,7 +19,7 @@ namespace Kernel { class SerialDevice final : public CharacterDevice { AK_MAKE_ETERNAL public: - SerialDevice(u32 base_addr, unsigned minor); + SerialDevice(IOAddress base_addr, unsigned minor); virtual ~SerialDevice() override; // ^CharacterDevice @@ -122,7 +123,7 @@ private: void set_modem_control(u8 modem_control); u8 get_line_status() const; - u32 m_base_addr { 0 }; + IOAddress m_base_addr; bool m_interrupt_enable { false }; u8 m_fifo_control { 0 }; Baud m_baud { Baud38400 }; -- cgit v1.2.3