From d7112cd6909640afd7609b3a142bc6ecf921ee25 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 30 Jan 2024 08:46:09 +0100 Subject: Kernel: Breaking changes, see source code. Signed-off-by: Amlal El Mahrouss --- Private/KernelKit/PCI/Database.hpp | 6 +++--- Private/KernelKit/PCI/Device.hpp | 10 +++++----- Private/KernelKit/PCI/Dma.hpp | 6 +++--- Private/KernelKit/PCI/Dma.inl | 4 ++-- Private/KernelKit/PCI/Express.hpp | 2 +- Private/KernelKit/PCI/IO.hpp | 6 +++--- Private/KernelKit/PCI/Iterator.hpp | 4 ++-- Private/KernelKit/PCI/PCI.hpp | 6 +++--- 8 files changed, 22 insertions(+), 22 deletions(-) (limited to 'Private/KernelKit/PCI') diff --git a/Private/KernelKit/PCI/Database.hpp b/Private/KernelKit/PCI/Database.hpp index b62108a7..72198041 100644 --- a/Private/KernelKit/PCI/Database.hpp +++ b/Private/KernelKit/PCI/Database.hpp @@ -1,7 +1,7 @@ /* * ======================================================== * - * hCore + * HCore * Copyright Mahrouss Logic, all rights reserved. * * ======================================================== @@ -11,7 +11,7 @@ #include #include -namespace hCore { +namespace HCore { namespace Types { // https://wiki.osdev.org/PCI enum class PciDeviceKind : UChar { @@ -35,4 +35,4 @@ namespace hCore { Invalid = Unassgined, }; } // namespace Types -} // namespace hCore +} // namespace HCore diff --git a/Private/KernelKit/PCI/Device.hpp b/Private/KernelKit/PCI/Device.hpp index 8e956563..d3c58e96 100644 --- a/Private/KernelKit/PCI/Device.hpp +++ b/Private/KernelKit/PCI/Device.hpp @@ -1,7 +1,7 @@ /* * ======================================================== * - * hCore + * HCore * Copyright Mahrouss Logic, all rights reserved. * * ======================================================== @@ -10,7 +10,7 @@ #include -namespace hCore::PCI +namespace HCore::PCI { enum class PciConfigKind : UShort { @@ -77,8 +77,8 @@ namespace hCore::PCI UShort m_Bar; }; -} // namespace hCore::PCI +} // namespace HCore::PCI -extern "C" void LumiaPCISetCfgTarget(hCore::UInt bar); -extern "C" hCore::UInt LumiaPCIReadRaw(hCore::UInt bar); +extern "C" void LumiaPCISetCfgTarget(HCore::UInt bar); +extern "C" HCore::UInt LumiaPCIReadRaw(HCore::UInt bar); diff --git a/Private/KernelKit/PCI/Dma.hpp b/Private/KernelKit/PCI/Dma.hpp index 87cd78cf..8e027179 100644 --- a/Private/KernelKit/PCI/Dma.hpp +++ b/Private/KernelKit/PCI/Dma.hpp @@ -1,7 +1,7 @@ /* * ======================================================== * - * hCore + * HCore * Copyright Mahrouss Logic, all rights reserved. * * ======================================================== @@ -15,7 +15,7 @@ #include #include -namespace hCore +namespace HCore { enum class DmaKind { @@ -76,6 +76,6 @@ class DMAFactory final public: static OwnPtr> Construct(OwnPtr &dma); }; -} // namespace hCore +} // namespace HCore #include diff --git a/Private/KernelKit/PCI/Dma.inl b/Private/KernelKit/PCI/Dma.inl index e1f27720..8738e54c 100644 --- a/Private/KernelKit/PCI/Dma.inl +++ b/Private/KernelKit/PCI/Dma.inl @@ -1,13 +1,13 @@ /* * ======================================================== * - * hCore + * HCore * Copyright 2024 Mahrouss Logic, all rights reserved. * * ======================================================== */ -namespace hCore +namespace HCore { template T* DMAWrapper::operator->() diff --git a/Private/KernelKit/PCI/Express.hpp b/Private/KernelKit/PCI/Express.hpp index a3febed1..45676c23 100644 --- a/Private/KernelKit/PCI/Express.hpp +++ b/Private/KernelKit/PCI/Express.hpp @@ -1,7 +1,7 @@ /* * ======================================================== * - * hCore + * HCore * Copyright Mahrouss Logic, all rights reserved. * * ======================================================== diff --git a/Private/KernelKit/PCI/IO.hpp b/Private/KernelKit/PCI/IO.hpp index 9bb820be..bcc728f4 100644 --- a/Private/KernelKit/PCI/IO.hpp +++ b/Private/KernelKit/PCI/IO.hpp @@ -1,7 +1,7 @@ /* * ======================================================== * - * hCore + * HCore * Copyright Mahrouss Logic, all rights reserved. * * ======================================================== @@ -15,7 +15,7 @@ #include #include -namespace hCore +namespace HCore { template class IOArray final @@ -74,4 +74,4 @@ class IOArray final }; using IOArray16 = IOArray<16>; -} // namespace hCore +} // namespace HCore diff --git a/Private/KernelKit/PCI/Iterator.hpp b/Private/KernelKit/PCI/Iterator.hpp index 70fbe59a..89e1f246 100644 --- a/Private/KernelKit/PCI/Iterator.hpp +++ b/Private/KernelKit/PCI/Iterator.hpp @@ -11,7 +11,7 @@ #define ME_DEVICE_COUNT (33) #define ME_FUNCTION_COUNT (8) -namespace hCore::PCI { +namespace HCore::PCI { class Iterator final { public: Iterator() = delete; @@ -31,6 +31,6 @@ namespace hCore::PCI { private: Array m_Devices; }; -} // namespace hCore::PCI +} // namespace HCore::PCI #endif // __PCI_ITERATOR_HPP__ diff --git a/Private/KernelKit/PCI/PCI.hpp b/Private/KernelKit/PCI/PCI.hpp index 487d7614..a70688ce 100644 --- a/Private/KernelKit/PCI/PCI.hpp +++ b/Private/KernelKit/PCI/PCI.hpp @@ -1,7 +1,7 @@ /* * ======================================================== * - * hCore + * HCore * Copyright Mahrouss Logic, all rights reserved. * * ======================================================== @@ -17,7 +17,7 @@ #define PCI_FUNC_COUNT (8) #define PCI_BUS_COUNT (255) -namespace hCore::PCI { +namespace HCore::PCI { // model struct DeviceHeader { UInt16 VendorId; @@ -53,4 +53,4 @@ namespace hCore::PCI { Detail::BAR BAR4; Detail::BAR BAR5; }; -} // namespace hCore::PCI +} // namespace HCore::PCI -- cgit v1.2.3