summaryrefslogtreecommitdiffhomepage
path: root/dev/Boot/BootKit/HW
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:13:48 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:15:17 +0100
commita13e1c0911c0627184bc38f18c7fdda64447b3ad (patch)
tree073a62c09bf216e85a3f310376640fa1805147f9 /dev/Boot/BootKit/HW
parent149fa096eb306d03686b3b67e813cf1a78e08cd0 (diff)
meta(kernel): Reworked repository's filesystem structure.
Removing useless parts of the project too. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Boot/BootKit/HW')
-rw-r--r--dev/Boot/BootKit/HW/ATA.h58
-rw-r--r--dev/Boot/BootKit/HW/SATA.h46
2 files changed, 0 insertions, 104 deletions
diff --git a/dev/Boot/BootKit/HW/ATA.h b/dev/Boot/BootKit/HW/ATA.h
deleted file mode 100644
index d8cd00eb..00000000
--- a/dev/Boot/BootKit/HW/ATA.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -------------------------------------------
-
- Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
-
-------------------------------------------- */
-
-#pragma once
-
-#include <Mod/ATA/ATA.h>
-#include <BootKit/Device.h>
-
-using namespace NeOS;
-
-class BootDeviceATA final : public Device
-{
-public:
- enum
- {
- kPrimary = ATA_PRIMARY_IO,
- kSecondary = ATA_SECONDARY_IO,
- };
-
- explicit BootDeviceATA() noexcept;
- ~BootDeviceATA() = default;
-
- NE_COPY_DELETE(BootDeviceATA);
-
- enum
- {
- kSectorSize = kATASectorSize
- };
-
- struct ATATrait final : public Device::Trait
- {
- UInt16 mBus{kPrimary};
- UInt8 mMaster{0};
- Boolean mErr{false};
-
- operator bool()
- {
- return !mErr;
- }
- };
-
-public:
- operator bool();
-
- SizeT GetSectorsCount() noexcept;
- SizeT GetDiskSize() noexcept;
-
- BootDeviceATA& Read(Char* Buf, const SizeT& SecCount) override;
- BootDeviceATA& Write(Char* Buf, const SizeT& SecCount) override;
-
- ATATrait& Leak() override;
-
-private:
- ATATrait mTrait;
-};
diff --git a/dev/Boot/BootKit/HW/SATA.h b/dev/Boot/BootKit/HW/SATA.h
deleted file mode 100644
index a58107b2..00000000
--- a/dev/Boot/BootKit/HW/SATA.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -------------------------------------------
-
- Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
-
-------------------------------------------- */
-
-#pragma once
-
-#include <CompilerKit/CompilerKit.h>
-#include <Mod/AHCI/AHCI.h>
-
-class BootDeviceSATA final
-{
-public:
- explicit BootDeviceSATA() noexcept;
- ~BootDeviceSATA() = default;
-
- NE_COPY_DEFAULT(BootDeviceSATA);
-
- struct SATATrait final
- {
- NeOS::SizeT mBase{1024};
- NeOS::Boolean mErr{false};
- NeOS::Boolean mDetected{false};
-
- operator bool()
- {
- return !this->mErr;
- }
- };
-
- operator bool()
- {
- return this->Leak().mDetected;
- }
-
- BootDeviceSATA& Read(NeOS::WideChar* Buf, const NeOS::SizeT& SecCount);
- BootDeviceSATA& Write(NeOS::WideChar* Buf, const NeOS::SizeT& SecCount);
-
- SATATrait& Leak();
-
-private:
- SATATrait mTrait;
-};
-
-#define kAHCISectorSz 4096