aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-04-02 15:49:14 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-04-02 15:49:14 +0200
commit21489576381d827871e7cdf060929c5d7f3d4e9f (patch)
treea6be5285e475ba1e51eb78d312077c522aefd6e0 /arch/x86_64/include
parent33b43603936ed0108d67853727a17d6b3740b445 (diff)
downloadteachos-21489576381d827871e7cdf060929c5d7f3d4e9f.tar.xz
teachos-21489576381d827871e7cdf060929c5d7f3d4e9f.zip
devices: don't automatically allocate major numbers in ctors
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/bus/isa.hpp4
-rw-r--r--arch/x86_64/include/arch/devices/legacy_pit.hpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86_64/include/arch/bus/isa.hpp b/arch/x86_64/include/arch/bus/isa.hpp
index bd92b2e..5deed25 100644
--- a/arch/x86_64/include/arch/bus/isa.hpp
+++ b/arch/x86_64/include/arch/bus/isa.hpp
@@ -3,12 +3,14 @@
#include "kapi/devices/bus.hpp"
+#include <cstddef>
+
namespace arch::bus
{
struct isa final : public kapi::devices::bus
{
- isa();
+ isa(std::size_t major);
};
} // namespace arch::bus
diff --git a/arch/x86_64/include/arch/devices/legacy_pit.hpp b/arch/x86_64/include/arch/devices/legacy_pit.hpp
index d28e4d6..de742ae 100644
--- a/arch/x86_64/include/arch/devices/legacy_pit.hpp
+++ b/arch/x86_64/include/arch/devices/legacy_pit.hpp
@@ -4,6 +4,7 @@
#include "kapi/devices/device.hpp"
#include "kapi/interrupts.hpp"
+#include <cstddef>
#include <cstdint>
namespace arch::devices
@@ -11,7 +12,7 @@ namespace arch::devices
struct legacy_pit : kapi::devices::device, kapi::interrupts::handler
{
- explicit legacy_pit(std::uint32_t frequency_in_hz);
+ legacy_pit(std::size_t major, std::uint32_t frequency_in_hz);
auto init() -> bool override;