1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:07:44 +00:00

Kernel: Split the SysFS core files into smaller components

This commit is contained in:
Liav A 2022-10-23 21:51:56 +03:00 committed by Andrew Kaster
parent 7eed3dab5d
commit f53149d5f6
19 changed files with 234 additions and 148 deletions

View file

@ -7,11 +7,11 @@
#pragma once
#include <AK/Bitmap.h>
#include <AK/HashMap.h>
#include <AK/Try.h>
#include <AK/Vector.h>
#include <Kernel/Bus/PCI/Controller/HostController.h>
#include <Kernel/Bus/PCI/Definitions.h>
#include <Kernel/FileSystem/SysFS.h>
#include <Kernel/Locking/Spinlock.h>
namespace Kernel::PCI {
@ -59,7 +59,7 @@ private:
mutable RecursiveSpinlock m_access_lock { LockRank::None };
mutable Spinlock m_scan_lock { LockRank::None };
HashMap<u32, NonnullOwnPtr<HostController>> m_host_controllers;
HashMap<u32, NonnullOwnPtr<PCI::HostController>> m_host_controllers;
Vector<DeviceIdentifier> m_device_identifiers;
};
}

View file

@ -7,6 +7,7 @@
#include <AK/ByteReader.h>
#include <Kernel/Bus/PCI/Access.h>
#include <Kernel/Bus/PCI/Controller/MemoryBackedHostBridge.h>
#include <Kernel/Memory/MemoryManager.h>
namespace Kernel::PCI {

View file

@ -10,6 +10,7 @@
#include <AK/Vector.h>
#include <Kernel/Bus/PCI/Controller/HostController.h>
#include <Kernel/Locking/Spinlock.h>
#include <Kernel/Memory/Region.h>
namespace Kernel::PCI {