summaryrefslogtreecommitdiff
path: root/Kernel/Devices/SerialDevice.h
diff options
context:
space:
mode:
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 };