summaryrefslogtreecommitdiff
path: root/Kernel/Bus/PCI
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-11 01:07:27 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-11 01:07:27 +0200
commit60a7a9d523113c7345cae78c9779e20e6a50c808 (patch)
tree4d3c54cf4bbaad3df6980917b3fa05d4dfd7cdf9 /Kernel/Bus/PCI
parent517170a986a56fbd64d51be708ce20950de1b167 (diff)
downloadserenity-60a7a9d523113c7345cae78c9779e20e6a50c808.zip
Kernel: Rename SystemExposedFolder => SysFSDirectory
"Folder" is a GUI concept, let's call this "Directory". Also, "System" is completely generic, so let's be more specific and call this "SysFS..."
Diffstat (limited to 'Kernel/Bus/PCI')
-rw-r--r--Kernel/Bus/PCI/Access.cpp8
-rw-r--r--Kernel/Bus/PCI/Access.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/Kernel/Bus/PCI/Access.cpp b/Kernel/Bus/PCI/Access.cpp
index c754c24233..f5b17f040a 100644
--- a/Kernel/Bus/PCI/Access.cpp
+++ b/Kernel/Bus/PCI/Access.cpp
@@ -368,13 +368,13 @@ void Capability::write32(u32 field, u32 value)
PCI::write32(m_address, m_ptr + field, value);
}
-UNMAP_AFTER_INIT NonnullRefPtr<ExposedDeviceFolder> ExposedDeviceFolder::create(const SystemExposedFolder& parent_folder, Address address)
+UNMAP_AFTER_INIT NonnullRefPtr<ExposedDeviceFolder> ExposedDeviceFolder::create(const SysFSDirectory& parent_folder, Address address)
{
return adopt_ref(*new (nothrow) ExposedDeviceFolder(parent_folder, address));
}
-UNMAP_AFTER_INIT ExposedDeviceFolder::ExposedDeviceFolder(const SystemExposedFolder& parent_folder, Address address)
- : SystemExposedFolder(String::formatted("{:04x}:{:04x}:{:02x}.{}", address.seg(), address.bus(), address.device(), address.function()), parent_folder)
+UNMAP_AFTER_INIT ExposedDeviceFolder::ExposedDeviceFolder(const SysFSDirectory& parent_folder, Address address)
+ : SysFSDirectory(String::formatted("{:04x}:{:04x}:{:02x}.{}", address.seg(), address.bus(), address.device(), address.function()), parent_folder)
{
m_components.append(ExposedAttribute::create("vendor", *this, PCI_VENDOR_ID, 2));
m_components.append(ExposedAttribute::create("device_id", *this, PCI_DEVICE_ID, 2));
@@ -393,7 +393,7 @@ UNMAP_AFTER_INIT void BusExposedFolder::initialize()
}
UNMAP_AFTER_INIT BusExposedFolder::BusExposedFolder()
- : SystemExposedFolder("pci", SysFSComponentRegistry::the().root_folder())
+ : SysFSDirectory("pci", SysFSComponentRegistry::the().root_folder())
{
PCI::enumerate([&](const Address& address, ID) {
auto pci_device = PCI::ExposedDeviceFolder::create(*this, address);
diff --git a/Kernel/Bus/PCI/Access.h b/Kernel/Bus/PCI/Access.h
index af2db61c2f..6ef4915bc3 100644
--- a/Kernel/Bus/PCI/Access.h
+++ b/Kernel/Bus/PCI/Access.h
@@ -14,7 +14,7 @@
namespace Kernel::PCI {
-class BusExposedFolder final : public SystemExposedFolder {
+class BusExposedFolder final : public SysFSDirectory {
public:
static void initialize();
@@ -22,13 +22,13 @@ private:
BusExposedFolder();
};
-class ExposedDeviceFolder final : public SystemExposedFolder {
+class ExposedDeviceFolder final : public SysFSDirectory {
public:
- static NonnullRefPtr<ExposedDeviceFolder> create(const SystemExposedFolder&, Address);
+ static NonnullRefPtr<ExposedDeviceFolder> create(const SysFSDirectory&, Address);
const Address& address() const { return m_address; }
private:
- ExposedDeviceFolder(const SystemExposedFolder&, Address);
+ ExposedDeviceFolder(const SysFSDirectory&, Address);
Address m_address;
};