summaryrefslogtreecommitdiff
path: root/linux/src/include
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-05-10 18:56:26 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-05-10 18:59:12 +0200
commit75c1b0d1133a7ae6a7eb45818470f453700df1a2 (patch)
tree3173219e5d1aa5b22329f3d30703abf8f4f3263b /linux/src/include
parenta750e58b21c05cffd81f460a72ed4dd6d27ee5ec (diff)
Add AHCI driver
* linux/dev/glue/kmem.c (vmtophys): New function. * linux/dev/include/linux/mm.h (vmtophys): New prototype. * linux/src/include/linux/pci.h (PCI_CLASS_STORAGE_SATA, PCI_CLASS_STORAGE_SATA_AHCI): New macros. * linux/dev/drivers/block/ahci.c: New file. * linux/dev/include/ahci.h: New file. * linux/Makefrag.am (liblinux_a_SOURCES): Add linux/dev/drivers/block/ahci.c and linux/dev/drivers/block/ahci.h. * linux/src/drivers/block/ide.c: Include <ahci.h>. (probe_for_hwifs): Call ahci_probe_pci.
Diffstat (limited to 'linux/src/include')
-rw-r--r--linux/src/include/linux/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/src/include/linux/pci.h b/linux/src/include/linux/pci.h
index 3508979..8aad3d5 100644
--- a/linux/src/include/linux/pci.h
+++ b/linux/src/include/linux/pci.h
@@ -140,6 +140,8 @@
#define PCI_CLASS_STORAGE_FLOPPY 0x0102
#define PCI_CLASS_STORAGE_IPI 0x0103
#define PCI_CLASS_STORAGE_RAID 0x0104
+#define PCI_CLASS_STORAGE_SATA 0x0106
+#define PCI_CLASS_STORAGE_SATA_AHCI 0x010601
#define PCI_CLASS_STORAGE_OTHER 0x0180
#define PCI_BASE_CLASS_NETWORK 0x02