aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/kapi/devices.cpp
blob: 25185d6e75aa5c800925f6a46176cd588b77592b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "kapi/devices.hpp"

#include "arch/bus/isa.hpp"

#include <kstd/memory>
#include <kstd/print>

#include <utility>

namespace kapi::devices
{

  auto init_platform_devices() -> void
  {
    kstd::println("[x86_64:devices] Initializing ISA bus...");
    auto isa_bus = kstd::make_unique<arch::bus::isa>();

    auto & root_bus = get_root_bus();
    root_bus.add_child(std::move(isa_bus));
  }

}  // namespace kapi::devices