summaryrefslogtreecommitdiffhomepage
path: root/Private/KernelKit/PCI
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-30 08:46:09 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-30 08:46:09 +0100
commitd7112cd6909640afd7609b3a142bc6ecf921ee25 (patch)
tree55033ad28d58d536c4b3bad715d8635f00773bfd /Private/KernelKit/PCI
parentf22e69b8837b84548f79e0b8ca7bef24605c6611 (diff)
Kernel: Breaking changes, see source code.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/KernelKit/PCI')
-rw-r--r--Private/KernelKit/PCI/Database.hpp6
-rw-r--r--Private/KernelKit/PCI/Device.hpp10
-rw-r--r--Private/KernelKit/PCI/Dma.hpp6
-rw-r--r--Private/KernelKit/PCI/Dma.inl4
-rw-r--r--Private/KernelKit/PCI/Express.hpp2
-rw-r--r--Private/KernelKit/PCI/IO.hpp6
-rw-r--r--Private/KernelKit/PCI/Iterator.hpp4
-rw-r--r--Private/KernelKit/PCI/PCI.hpp6
8 files changed, 22 insertions, 22 deletions
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 <KernelKit/PCI/Device.hpp>
#include <NewKit/Defines.hpp>
-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 <NewKit/Defines.hpp>
-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 <NewKit/OwnPtr.hpp>
#include <NewKit/Ref.hpp>
-namespace hCore
+namespace HCore
{
enum class DmaKind
{
@@ -76,6 +76,6 @@ class DMAFactory final
public:
static OwnPtr<IOBuf<Char *>> Construct(OwnPtr<DMAWrapper> &dma);
};
-} // namespace hCore
+} // namespace HCore
#include <KernelKit/PCI/Dma.inl>
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<class T>
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 <NewKit/Array.hpp>
#include <NewKit/Ref.hpp>
-namespace hCore
+namespace HCore
{
template<SizeT Sz>
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<PCI::Device, ME_BUS_COUNT> 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