aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-04-02 13:59:27 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-04-02 14:02:13 +0200
commitb84c4c9d8c90f3d3fd5a60de282278912fad2f04 (patch)
treeac283ed18407a8e97bcd14b2cfca3da74f60547b /arch/x86_64/include
parentd0c532af74d8d486d734904fd330d5dae7f49754 (diff)
downloadteachos-b84c4c9d8c90f3d3fd5a60de282278912fad2f04.tar.xz
teachos-b84c4c9d8c90f3d3fd5a60de282278912fad2f04.zip
x86_64/devices: implement ISA bus stub
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/bus/isa.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/x86_64/include/arch/bus/isa.hpp b/arch/x86_64/include/arch/bus/isa.hpp
new file mode 100644
index 0000000..41dda93
--- /dev/null
+++ b/arch/x86_64/include/arch/bus/isa.hpp
@@ -0,0 +1,31 @@
+#ifndef TEACHOS_X86_64_BUS_ISA_HPP
+#define TEACHOS_X86_64_BUS_ISA_HPP
+
+#include "kapi/devices/bus.hpp"
+#include "kapi/devices/device.hpp"
+
+#include <kstd/memory>
+#include <kstd/vector>
+
+namespace arch::bus
+{
+
+ struct isa final : public kapi::devices::bus
+ {
+ isa();
+
+ auto add_child(kstd::unique_ptr<device> child) -> void override;
+
+ [[nodiscard]] auto children() const -> kstd::vector<kstd::observer_ptr<device>> const & override;
+
+ auto init() -> bool override;
+
+ private:
+ kstd::vector<kstd::unique_ptr<device>> m_devices{};
+ kstd::vector<kstd::observer_ptr<device>> m_observers{};
+ bool m_initialized{};
+ };
+
+} // namespace arch::bus
+
+#endif // TEACHOS_X86_64_BUS_ISA_HPP