summaryrefslogtreecommitdiffhomepage
path: root/src/boot/BootKit/Device.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-09 02:50:07 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-09 02:52:34 +0100
commit4d192e629a07ae457134cb0063e0136e54b01008 (patch)
treeb933444d27c2b9ac22693e2e65bd294792c79d39 /src/boot/BootKit/Device.h
parentf78c535aec66e02584e1b02995dc12c9e1bcb64c (diff)
chore: Codebase improvements and tweaks.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/boot/BootKit/Device.h')
-rw-r--r--src/boot/BootKit/Device.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/boot/BootKit/Device.h b/src/boot/BootKit/Device.h
index 36e2b3d4..efe27659 100644
--- a/src/boot/BootKit/Device.h
+++ b/src/boot/BootKit/Device.h
@@ -4,13 +4,15 @@
======================================== */
-#pragma once
+#ifndef __BOOTKIT_DEVICE_H__
+#define __BOOTKIT_DEVICE_H__
+#include <BootKit/Config.h>
#include <modules/AHCI/AHCI.h>
#include <modules/ATA/ATA.h>
-namespace Kernel {
-/// @brief Device type.
+namespace Boot {
+/// @brief Physical/Virtual device type.
class Device {
public:
explicit Device() = default;
@@ -19,7 +21,7 @@ class Device {
NE_MOVE_DEFAULT(Device)
struct Trait {
- SizeT mBase{0};
+ Lba mBase{0};
SizeT mSize{0};
};
@@ -29,7 +31,9 @@ class Device {
virtual Device& Write(Char* Buf, SizeT SecCount) = 0;
};
-typedef Device BootDevice;
-typedef Device NetworkDevice;
-typedef Device DiskDevice;
-} // namespace Kernel \ No newline at end of file
+using BootDevice = Device;
+using NetworkDevice = Device;
+using DiskDevice = Device;
+} // namespace Boot
+
+#endif \ No newline at end of file