summaryrefslogtreecommitdiff
path: root/Kernel/Devices/SerialDevice.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-05-15 13:51:13 +0300
committerAndreas Kling <kling@serenityos.org>2021-05-17 18:15:25 +0200
commit62f69cc50fd5174c4202ad7f57138c27422b2b65 (patch)
treed3ab2f18626d59da0430c400c57c9de1904bda3e /Kernel/Devices/SerialDevice.h
parenta5699a141dcfaa3c1c605d70316ce5b08dfcf0c2 (diff)
downloadserenity-62f69cc50fd5174c4202ad7f57138c27422b2b65.zip
Kernel: Use IOAddress instead of direct IO calls in SerialDevice
Diffstat (limited to 'Kernel/Devices/SerialDevice.h')
-rw-r--r--Kernel/Devices/SerialDevice.h5
1 files changed, 3 insertions, 2 deletions
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 <Kernel/Devices/CharacterDevice.h>
+#include <Kernel/IO.h>
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 };