summaryrefslogtreecommitdiff
path: root/Kernel/Bus/VirtIO/VirtIO.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Bus/VirtIO/VirtIO.h')
-rw-r--r--Kernel/Bus/VirtIO/VirtIO.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/Bus/VirtIO/VirtIO.h b/Kernel/Bus/VirtIO/VirtIO.h
index 7928cffef1..bc07e51874 100644
--- a/Kernel/Bus/VirtIO/VirtIO.h
+++ b/Kernel/Bus/VirtIO/VirtIO.h
@@ -82,6 +82,7 @@ struct Configuration {
class VirtIO {
public:
static void detect();
+ static StringView determine_device_class(const PCI::Address& address);
};
class VirtIODevice
@@ -91,9 +92,9 @@ public:
virtual ~VirtIODevice() override;
protected:
- VirtIODevice(PCI::Address, String);
- const String m_class_name;
+ explicit VirtIODevice(PCI::Address);
+ virtual StringView class_name() const = 0;
struct MappedMMIO {
OwnPtr<Memory::Region> base;
size_t size { 0 };