From ba7b3ed69cd24970a28b72c54982735cd120e663 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 28 Mar 2025 19:57:33 +0100 Subject: kernel: breaking: Change namespace from NeOS to Kernel. sched: Fix redundancy in NeKernel's user scheduler macros, refactored the other files using the redundant macros too. part one of a series of commit for NeKernel. Signed-off-by: Amlal El Mahrouss --- dev/kernel/StorageKit/AHCI.h | 4 ++-- dev/kernel/StorageKit/ATA.h | 4 ++-- dev/kernel/StorageKit/NVME.h | 4 ++-- dev/kernel/StorageKit/PRDT.h | 6 +++--- dev/kernel/StorageKit/StorageKit.h | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) (limited to 'dev/kernel/StorageKit') diff --git a/dev/kernel/StorageKit/AHCI.h b/dev/kernel/StorageKit/AHCI.h index 43e81ba0..24191dbe 100644 --- a/dev/kernel/StorageKit/AHCI.h +++ b/dev/kernel/StorageKit/AHCI.h @@ -10,7 +10,7 @@ #include #include -namespace NeOS +namespace Kernel { class AHCIDeviceInterface NE_DEVICE { @@ -57,4 +57,4 @@ namespace NeOS UInt16 sk_init_ahci_device(BOOL atapi); ErrorOr sk_acquire_ahci_device(Int32 drv_index); -} // namespace NeOS +} // namespace Kernel diff --git a/dev/kernel/StorageKit/ATA.h b/dev/kernel/StorageKit/ATA.h index 5698fe85..562b22b6 100644 --- a/dev/kernel/StorageKit/ATA.h +++ b/dev/kernel/StorageKit/ATA.h @@ -11,7 +11,7 @@ #include #include -namespace NeOS +namespace Kernel { /// @brief ATA device interface type. class ATADeviceInterface : public IDeviceObject @@ -36,4 +36,4 @@ namespace NeOS private: void (*fCleanup)(void) = {nullptr}; }; -} // namespace NeOS +} // namespace Kernel diff --git a/dev/kernel/StorageKit/NVME.h b/dev/kernel/StorageKit/NVME.h index 22300726..748bb02a 100644 --- a/dev/kernel/StorageKit/NVME.h +++ b/dev/kernel/StorageKit/NVME.h @@ -9,7 +9,7 @@ #include #include -namespace NeOS +namespace Kernel { class NVMEDeviceInterface final NE_DEVICE { @@ -31,4 +31,4 @@ namespace NeOS private: Void (*fCleanup)(Void) = {nullptr}; }; -} // namespace NeOS +} // namespace Kernel diff --git a/dev/kernel/StorageKit/PRDT.h b/dev/kernel/StorageKit/PRDT.h index 40ba11e0..603d4f23 100644 --- a/dev/kernel/StorageKit/PRDT.h +++ b/dev/kernel/StorageKit/PRDT.h @@ -10,9 +10,9 @@ #include #include -#define kPrdtTransferSize (sizeof(NeOS::UShort)) +#define kPrdtTransferSize (sizeof(Kernel::UShort)) -namespace NeOS +namespace Kernel { /// @brief Tranfer information about PRD. enum kPRDTTransfer @@ -33,4 +33,4 @@ namespace NeOS void construct_prdt(Ref& prd); EXTERN_C Int32 kPRDTTransferStatus; -} // namespace NeOS +} // namespace Kernel diff --git a/dev/kernel/StorageKit/StorageKit.h b/dev/kernel/StorageKit/StorageKit.h index a0f1a2d1..954d368b 100644 --- a/dev/kernel/StorageKit/StorageKit.h +++ b/dev/kernel/StorageKit/StorageKit.h @@ -10,7 +10,7 @@ #define kDriveSectorSizeSSD (512U) #define kDriveSectorSizeOptical (2048) -namespace NeOS +namespace Kernel { template class IDeviceObject; @@ -19,4 +19,4 @@ namespace NeOS class AHCIDeviceInterface; class ATADeviceInterface; class SCSIDeviceInterface; -} // namespace NeOS +} // namespace Kernel -- cgit v1.2.3