summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/HALKit/AMD64/PCI
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-19 01:14:01 +0100
committerGitHub <noreply@github.com>2025-11-19 01:14:01 +0100
commit4fdc70b676fbed322ba09bc7fb886f3b87245baa (patch)
treeaea2324ca72b09fe32b29aa280fc43d4984956ef /dev/kernel/HALKit/AMD64/PCI
parent569f42832bd573337cb2daab1b767994a0bc3878 (diff)
parentf29e7e30fde2b994c86024659b41f56b64dce911 (diff)
Merge pull request #74 from nekernel-org/dev
fix: kernel: OpenHeFS and NeFS fixes, PCI and DriveMgr fixes.
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;