summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/HALKit/AMD64/PCI
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-18 22:09:11 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-18 22:09:11 +0100
commitf29e7e30fde2b994c86024659b41f56b64dce911 (patch)
treeaea2324ca72b09fe32b29aa280fc43d4984956ef /dev/kernel/HALKit/AMD64/PCI
parentae9267caf5ec8a247206d660109cd377be6bd6cd (diff)
fix: kernel: OpenHeFS and NeFS fixes, PCI and DriveMgr fixes.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/HALKit/AMD64/PCI')
-rw-r--r--dev/kernel/HALKit/AMD64/PCI/Iterator.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/dev/kernel/HALKit/AMD64/PCI/Iterator.cc b/dev/kernel/HALKit/AMD64/PCI/Iterator.cc
index 9d12c0d6..88bbce3f 100644
--- a/dev/kernel/HALKit/AMD64/PCI/Iterator.cc
+++ b/dev/kernel/HALKit/AMD64/PCI/Iterator.cc
@@ -7,12 +7,12 @@
#include <KernelKit/PCI/Iterator.h>
namespace Kernel::PCI {
-Iterator::Iterator(const Types::PciDeviceKind& type) {
+Iterator::Iterator(const Types::PciDeviceKind type, UInt32 bar) {
// probe devices.
- for (int bus = 0; bus < NE_BUS_COUNT; ++bus) {
- for (int device = 0; device < NE_DEVICE_COUNT; ++device) {
- for (int function = 0; function < NE_FUNCTION_COUNT; ++function) {
- Device dev(bus, device, function, 0x00);
+ for (Int32 bus = 0; bus < NE_BUS_COUNT; ++bus) {
+ for (Int32 device = 0; device < NE_DEVICE_COUNT; ++device) {
+ for (Int32 function = 0; function < NE_FUNCTION_COUNT; ++function) {
+ Device dev(bus, device, function, bar);
if (dev.Class() == type) {
fDevices[bus] = dev;