From a13e1c0911c0627184bc38f18c7fdda64447b3ad Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 23 Mar 2025 19:13:48 +0100 Subject: meta(kernel): Reworked repository's filesystem structure. Removing useless parts of the project too. Signed-off-by: Amlal El Mahrouss --- dev/Kernel/StorageKit/AHCI.h | 60 -------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 dev/Kernel/StorageKit/AHCI.h (limited to 'dev/Kernel/StorageKit/AHCI.h') diff --git a/dev/Kernel/StorageKit/AHCI.h b/dev/Kernel/StorageKit/AHCI.h deleted file mode 100644 index 43e81ba0..00000000 --- a/dev/Kernel/StorageKit/AHCI.h +++ /dev/null @@ -1,60 +0,0 @@ -/* ------------------------------------------- - - Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved. - -------------------------------------------- */ - -#pragma once - -#include -#include -#include - -namespace NeOS -{ - class AHCIDeviceInterface NE_DEVICE - { - public: - explicit AHCIDeviceInterface(void (*out)(IDeviceObject* self, MountpointInterface* out), - void (*in)(IDeviceObject* self, MountpointInterface* in), - void (*cleanup)(void)); - - virtual ~AHCIDeviceInterface() override; - - public: - AHCIDeviceInterface& operator=(const AHCIDeviceInterface&) = default; - AHCIDeviceInterface(const AHCIDeviceInterface&) = default; - - const Char* Name() const override; - - const UInt16& GetPortsImplemented() - { - return this->fPortsImplemented; - } - - Void SetPortsImplemented(const UInt16& pi) - { - MUST_PASS(pi > 0); - this->fPortsImplemented = pi; - } - - const UInt32& GetIndex() - { - return this->fDriveIndex; - } - - Void SetIndex(const UInt32& drv) - { - MUST_PASS(MountpointInterface::kDriveIndexInvalid != drv); - this->fDriveIndex = drv; - } - - private: - Void (*fCleanup)(Void) = {nullptr}; - UInt16 fPortsImplemented{0U}; - UInt32 fDriveIndex{0U}; - }; - - UInt16 sk_init_ahci_device(BOOL atapi); - ErrorOr sk_acquire_ahci_device(Int32 drv_index); -} // namespace NeOS -- cgit v1.2.3