From f30470c40229806a33c914ebdd1dbdf037c9698d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 13 Apr 2025 08:04:32 +0200 Subject: dev, scheduler, ahci, dev: Refactor scheduler, and fix minor mistakes. Add kDeviceTypeATA in DeviceMgr.h, making NeKernel aware that ATA devices can exist too. The scheduler now won't have to reimplement new classes, I refactor the names to signal that, and they're already generic enough to signal that. The AHCI-Generic driver got cleaned up of any irrelevant code, such as aligning the newly allocated pointer. Signed-off-by: Amlal El Mahrouss --- dev/kernel/KernelKit/DeviceMgr.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dev/kernel/KernelKit/DeviceMgr.h') diff --git a/dev/kernel/KernelKit/DeviceMgr.h b/dev/kernel/KernelKit/DeviceMgr.h index 64949162..fcafa7a5 100644 --- a/dev/kernel/KernelKit/DeviceMgr.h +++ b/dev/kernel/KernelKit/DeviceMgr.h @@ -52,13 +52,13 @@ namespace Kernel IDeviceObject(const IDeviceObject&) = default; public: - virtual IDeviceObject& operator<<(T Data) [[maybe_unused]] + virtual IDeviceObject& operator<<(T Data) { fOut(this, Data); return *this; } - virtual IDeviceObject& operator>>(T Data) [[maybe_unused]] + virtual IDeviceObject& operator>>(T Data) { fIn(this, Data); return *this; @@ -133,6 +133,7 @@ namespace Kernel kDeviceTypeSCSI, kDeviceTypeAHCI, kDeviceTypeMBCI, + kDeviceTypeATA, kDeviceTypeUSB, kDeviceTypeMediaCtrl, // MM controller kDeviceTypeCount, -- cgit v1.2.3