blob: bbbe8e6f3292d012de7b59bb92b9a8f96e629867 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef TEACH_OS_KERNEL_DEVICES_STORAGE_HPP
#define TEACH_OS_KERNEL_DEVICES_STORAGE_HPP
#include <kapi/devices/device.hpp>
#include <kstd/memory.hpp>
#include <kstd/vector.hpp>
namespace kernel::devices::storage
{
//! Attach the boot-time storage controllers to the system device tree.
[[nodiscard]] auto init() -> kstd::shared_ptr<kapi::devices::bus>;
//! @brief Determine the boot device.
//!
//! @return The first published block device in the system, or nullptr if none exists.
auto determine_boot_device() -> kstd::shared_ptr<kapi::devices::device>;
} // namespace kernel::devices::storage
#endif
|