summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/KernelKit/PCI
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-23 18:20:04 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-23 18:20:04 +0200
commitbac8c9a8306e1582ef24ba68a412a29674c97775 (patch)
tree956155581fdb44fb6c82673a5f71a00cc6f4c89c /dev/ZKA/KernelKit/PCI
parent73e0c81b5c8325db7aaec773fcc657f3ef50b0b8 (diff)
[IMP/WIP] AHCI disk driver for kernel DLL.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/KernelKit/PCI')
-rw-r--r--dev/ZKA/KernelKit/PCI/Device.hxx5
-rw-r--r--dev/ZKA/KernelKit/PCI/Iterator.hxx8
2 files changed, 7 insertions, 6 deletions
diff --git a/dev/ZKA/KernelKit/PCI/Device.hxx b/dev/ZKA/KernelKit/PCI/Device.hxx
index a562219a..b1c011e9 100644
--- a/dev/ZKA/KernelKit/PCI/Device.hxx
+++ b/dev/ZKA/KernelKit/PCI/Device.hxx
@@ -22,7 +22,7 @@ namespace Kernel::PCI
Device() = default;
public:
- explicit Device(UShort bus, UShort device, UShort function, UShort bar);
+ explicit Device(UShort bus, UShort device, UShort function, UInt32 bar);
Device& operator=(const Device&) = default;
@@ -60,6 +60,7 @@ namespace Kernel::PCI
UChar Subclass();
UChar ProgIf();
UChar HeaderType();
+ UInt32 Bar();
public:
void EnableMmio();
@@ -71,7 +72,7 @@ namespace Kernel::PCI
UShort fBus;
UShort fDevice;
UShort fFunction;
- UShort fBar;
+ UInt32 fBar;
};
} // namespace Kernel::PCI
diff --git a/dev/ZKA/KernelKit/PCI/Iterator.hxx b/dev/ZKA/KernelKit/PCI/Iterator.hxx
index 5f2ca089..cad8f09f 100644
--- a/dev/ZKA/KernelKit/PCI/Iterator.hxx
+++ b/dev/ZKA/KernelKit/PCI/Iterator.hxx
@@ -13,9 +13,9 @@
#include <NewKit/Defines.hxx>
#include <NewKit/Ref.hxx>
-#define NEWOS_BUS_COUNT (256)
-#define NEWOS_DEVICE_COUNT (33)
-#define NEWOS_FUNCTION_COUNT (8)
+#define ZKA_BUS_COUNT (256)
+#define ZKA_DEVICE_COUNT (33)
+#define ZKA_FUNCTION_COUNT (8)
namespace Kernel::PCI
{
@@ -36,7 +36,7 @@ namespace Kernel::PCI
Ref<PCI::Device> operator[](const Size& sz);
private:
- Array<PCI::Device, NEWOS_BUS_COUNT> fDevices;
+ Array<PCI::Device, ZKA_BUS_COUNT> fDevices;
};
} // namespace Kernel::PCI