summaryrefslogtreecommitdiff
path: root/Kernel/Bus/PCI/Definitions.h
diff options
context:
space:
mode:
authorpanky-codes <pankaj.sarathy1992@gmail.com>2021-08-15 16:34:48 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-18 18:18:12 +0200
commit1b093c8b4804b9292986c8779f9fa2c8993a8cda (patch)
tree595f4430e2f848e02331b2b7eecf89e47e9b55ff /Kernel/Bus/PCI/Definitions.h
parenta9cbdcbcd0307fd23dda357c457f4a3f149a39be (diff)
downloadserenity-1b093c8b4804b9292986c8779f9fa2c8993a8cda.zip
Kernel: Const defines for PCI IDs for storage controllers
Diffstat (limited to 'Kernel/Bus/PCI/Definitions.h')
-rw-r--r--Kernel/Bus/PCI/Definitions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/Bus/PCI/Definitions.h b/Kernel/Bus/PCI/Definitions.h
index f2ec09dd0c..ce12e56687 100644
--- a/Kernel/Bus/PCI/Definitions.h
+++ b/Kernel/Bus/PCI/Definitions.h
@@ -52,6 +52,12 @@ namespace Kernel {
#define PCI_CAPABILITY_VENDOR_SPECIFIC 0x9
#define PCI_CAPABILITY_MSIX 0x11
+// Taken from https://pcisig.com/sites/default/files/files/PCI_Code-ID_r_1_11__v24_Jan_2019.pdf
+#define PCI_MASS_STORAGE_CLASS_ID 0x1
+#define PCI_IDE_CTRL_SUBCLASS_ID 0x1
+#define PCI_SATA_CTRL_SUBCLASS_ID 0x6
+#define PCI_AHCI_IF_PROGIF 0x1
+
namespace PCI {
struct ID {
u16 vendor_id { 0 };