From 4d192e629a07ae457134cb0063e0136e54b01008 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 9 Dec 2025 02:50:07 +0100 Subject: chore: Codebase improvements and tweaks. Signed-off-by: Amlal El Mahrouss --- src/boot/BootKit/Device.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'src/boot/BootKit/Device.h') 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 #include #include -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 -- cgit v1.2.3