From 83d870e58457a1d335a1d9b9966a6a1887cc297b Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 24 Nov 2025 03:02:43 +0100 Subject: feat! breaking changes on kernel sources. Signed-off-by: Amlal El Mahrouss --- dev/kernel/StorageKit/ATA.h | 56 --------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 dev/kernel/StorageKit/ATA.h (limited to 'dev/kernel/StorageKit/ATA.h') diff --git a/dev/kernel/StorageKit/ATA.h b/dev/kernel/StorageKit/ATA.h deleted file mode 100644 index f92e09d3..00000000 --- a/dev/kernel/StorageKit/ATA.h +++ /dev/null @@ -1,56 +0,0 @@ -/* ======================================== - - Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. - -======================================== */ - -#pragma once - -#include -#include -#include -#include - -namespace Kernel { -/// @brief ATA device interface class. -class ATADeviceInterface : public DeviceInterface { - public: - explicit ATADeviceInterface(void (*Out)(DeviceInterface*, IMountpoint* outpacket), - void (*In)(DeviceInterface*, IMountpoint* inpacket)); - - virtual ~ATADeviceInterface(); - - public: - ATADeviceInterface& operator<<(IMountpoint* Data) override; - ATADeviceInterface& operator>>(IMountpoint* Data) override; - - public: - ATADeviceInterface& operator=(const ATADeviceInterface&) = default; - ATADeviceInterface(const ATADeviceInterface&) = default; - - const Char* Name() const override; - - const UInt16& GetIO(); - Void SetIO(const UInt16& io); - - const UInt16& GetMaster(); - Void SetMaster(const UInt16& master); - - const UInt32& GetIndex(); - Void SetIndex(const UInt32& drv); - - private: - UInt32 fDriveIndex{0U}; - UInt16 fIO, fMaster{0U}; -}; - -/// @brief Initialize an PIO device (StorageKit function) -/// @param is_master is the current PIO master? -/// @return [io:master] for PIO device. -BOOL sk_init_ata_device(BOOL is_master, UInt16& io, UInt8& master); - -/// @brief Acquires a new PIO device with drv_index in mind. -/// @param drv_index The drive index to assign. -/// @return A wrapped device interface if successful, or error code. -ErrorOr sk_acquire_ata_device(Int32 drv_index); -} // namespace Kernel -- cgit v1.2.3