summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/KernelKit/PCI
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-02-20 12:32:38 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-02-20 12:38:04 +0100
commit7d2a7e7cab23b8217498866615a3719e5d3980ee (patch)
tree75b87af3d8be10f29f2d5c69af17a9455c90df73 /dev/Kernel/KernelKit/PCI
parentaa8a096ad429640e752d69a89c572da35493d4c0 (diff)
NeOS: Namespace change from 'Kernel' to 'NeOS'
ADD: Start defining the Workstation's HPFS (High-Performance File System) Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/KernelKit/PCI')
-rw-r--r--dev/Kernel/KernelKit/PCI/DMA.h4
-rw-r--r--dev/Kernel/KernelKit/PCI/DMA.inl4
-rw-r--r--dev/Kernel/KernelKit/PCI/Database.h4
-rw-r--r--dev/Kernel/KernelKit/PCI/Device.h8
-rw-r--r--dev/Kernel/KernelKit/PCI/IO-Impl-AMD64.inl4
-rw-r--r--dev/Kernel/KernelKit/PCI/IO.h4
-rw-r--r--dev/Kernel/KernelKit/PCI/Iterator.h4
-rw-r--r--dev/Kernel/KernelKit/PCI/PCI.h4
8 files changed, 18 insertions, 18 deletions
diff --git a/dev/Kernel/KernelKit/PCI/DMA.h b/dev/Kernel/KernelKit/PCI/DMA.h
index ab740d01..d5a59577 100644
--- a/dev/Kernel/KernelKit/PCI/DMA.h
+++ b/dev/Kernel/KernelKit/PCI/DMA.h
@@ -12,7 +12,7 @@
#include <NewKit/OwnPtr.h>
#include <NewKit/Ref.h>
-namespace Kernel
+namespace NeOS
{
enum class DmaKind
{
@@ -76,6 +76,6 @@ namespace Kernel
public:
static OwnPtr<IOBuf<Char*>> Construct(OwnPtr<DMAWrapper>& dma);
};
-} // namespace Kernel
+} // namespace NeOS
#include <KernelKit/PCI/DMA.inl>
diff --git a/dev/Kernel/KernelKit/PCI/DMA.inl b/dev/Kernel/KernelKit/PCI/DMA.inl
index efa789bf..0ea2c343 100644
--- a/dev/Kernel/KernelKit/PCI/DMA.inl
+++ b/dev/Kernel/KernelKit/PCI/DMA.inl
@@ -4,7 +4,7 @@
------------------------------------------- */
-namespace Kernel
+namespace NeOS
{
template <class T>
T* DMAWrapper::operator->()
@@ -17,4 +17,4 @@ namespace Kernel
{
return reinterpret_cast<T*>((UIntPtr)fAddress + offset);
}
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/KernelKit/PCI/Database.h b/dev/Kernel/KernelKit/PCI/Database.h
index 8bd67078..82f38d33 100644
--- a/dev/Kernel/KernelKit/PCI/Database.h
+++ b/dev/Kernel/KernelKit/PCI/Database.h
@@ -8,7 +8,7 @@
#include <KernelKit/PCI/Device.h>
#include <NewKit/Defines.h>
-namespace Kernel
+namespace NeOS
{
namespace Types
{
@@ -35,4 +35,4 @@ namespace Kernel
Invalid = Unassgined,
};
} // namespace Types
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/KernelKit/PCI/Device.h b/dev/Kernel/KernelKit/PCI/Device.h
index cb463485..9870f618 100644
--- a/dev/Kernel/KernelKit/PCI/Device.h
+++ b/dev/Kernel/KernelKit/PCI/Device.h
@@ -7,7 +7,7 @@
#include <NewKit/Defines.h>
-namespace Kernel::PCI
+namespace NeOS::PCI
{
enum class PciConfigKind : UShort
{
@@ -75,7 +75,7 @@ namespace Kernel::PCI
UShort fFunction;
UInt32 fBar;
};
-} // namespace Kernel::PCI
+} // namespace NeOS::PCI
-EXTERN_C void NewOSPCISetCfgTarget(Kernel::UInt bar);
-EXTERN_C Kernel::UInt NewOSPCIReadRaw(Kernel::UInt bar);
+EXTERN_C void NewOSPCISetCfgTarget(NeOS::UInt bar);
+EXTERN_C NeOS::UInt NewOSPCIReadRaw(NeOS::UInt bar);
diff --git a/dev/Kernel/KernelKit/PCI/IO-Impl-AMD64.inl b/dev/Kernel/KernelKit/PCI/IO-Impl-AMD64.inl
index da9ba1e4..0bac35bc 100644
--- a/dev/Kernel/KernelKit/PCI/IO-Impl-AMD64.inl
+++ b/dev/Kernel/KernelKit/PCI/IO-Impl-AMD64.inl
@@ -12,7 +12,7 @@
------------------------------------------- */
-namespace Kernel
+namespace NeOS
{
template <SizeT Sz>
template <typename T>
@@ -51,4 +51,4 @@ namespace Kernel
break;
}
}
-} // namespace Kernel
+} // namespace NeOS
diff --git a/dev/Kernel/KernelKit/PCI/IO.h b/dev/Kernel/KernelKit/PCI/IO.h
index 4e405020..b6d491ce 100644
--- a/dev/Kernel/KernelKit/PCI/IO.h
+++ b/dev/Kernel/KernelKit/PCI/IO.h
@@ -11,7 +11,7 @@
#include <NewKit/Defines.h>
#include <NewKit/Ref.h>
-namespace Kernel
+namespace NeOS
{
template <SizeT Sz>
class IOArray final
@@ -50,7 +50,7 @@ namespace Kernel
};
using IOArray16 = IOArray<16>;
-} // namespace Kernel
+} // namespace NeOS
#ifdef __x86_64__
#include <KernelKit/PCI/IO-Impl-AMD64.inl>
diff --git a/dev/Kernel/KernelKit/PCI/Iterator.h b/dev/Kernel/KernelKit/PCI/Iterator.h
index c364e1f7..2a788450 100644
--- a/dev/Kernel/KernelKit/PCI/Iterator.h
+++ b/dev/Kernel/KernelKit/PCI/Iterator.h
@@ -17,7 +17,7 @@
#define NE_DEVICE_COUNT (33)
#define NE_FUNCTION_COUNT (8)
-namespace Kernel::PCI
+namespace NeOS::PCI
{
class Iterator final
{
@@ -38,6 +38,6 @@ namespace Kernel::PCI
private:
Array<PCI::Device, NE_BUS_COUNT> fDevices;
};
-} // namespace Kernel::PCI
+} // namespace NeOS::PCI
#endif // __PCI_ITERATOR_H__
diff --git a/dev/Kernel/KernelKit/PCI/PCI.h b/dev/Kernel/KernelKit/PCI/PCI.h
index 8fe751f2..4bc4aa82 100644
--- a/dev/Kernel/KernelKit/PCI/PCI.h
+++ b/dev/Kernel/KernelKit/PCI/PCI.h
@@ -15,7 +15,7 @@
#define kPCIFuncCount (8)
#define kPCIBusCount (255)
-namespace Kernel::PCI
+namespace NeOS::PCI
{
// model
struct DeviceHeader
@@ -56,4 +56,4 @@ namespace Kernel::PCI
Detail::BAR BAR4;
Detail::BAR BAR5;
};
-} // namespace Kernel::PCI
+} // namespace NeOS::PCI