summaryrefslogtreecommitdiff
path: root/Kernel/Bus
diff options
context:
space:
mode:
authorPankaj Raghav <pankydev8@gmail.com>2021-12-16 20:37:54 +0530
committerAndreas Kling <kling@serenityos.org>2022-01-01 14:55:58 +0100
commite99fafb683d0ec63f64662cc71b98900118f9f74 (patch)
tree6bac149173860f3804200b85fa5e4b357ece7807 /Kernel/Bus
parent602b35aa62586f5d75ea329ebc29e49cdb470932 (diff)
downloadserenity-e99fafb683d0ec63f64662cc71b98900118f9f74.zip
Kernel/NVMe: Add initial NVMe driver support
Add a basic NVMe driver support to serenity based on NVMe spec 1.4. The driver can support multiple NVMe drives (subsystems). But in a NVMe drive, the driver can support one controller with multiple namespaces. Each core will get a separate NVMe Queue. As the system lacks MSI support, PIN based interrupts are used for IO. Tested the NVMe support by replacing IDE driver with the NVMe driver :^)
Diffstat (limited to 'Kernel/Bus')
-rw-r--r--Kernel/Bus/PCI/Definitions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Bus/PCI/Definitions.h b/Kernel/Bus/PCI/Definitions.h
index e4af0afdb6..1b0faf4411 100644
--- a/Kernel/Bus/PCI/Definitions.h
+++ b/Kernel/Bus/PCI/Definitions.h
@@ -75,6 +75,7 @@ namespace MassStorage {
enum class SubclassID {
IDEController = 0x1,
SATAController = 0x6,
+ NVMeController = 0x8,
};
enum class SATAProgIF {
AHCI = 0x1,