From 75c1b0d1133a7ae6a7eb45818470f453700df1a2 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 10 May 2013 18:56:26 +0200 Subject: 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 . (probe_for_hwifs): Call ahci_probe_pci. --- linux/src/drivers/block/ide.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux/src/drivers/block') diff --git a/linux/src/drivers/block/ide.c b/linux/src/drivers/block/ide.c index 7ab790d..0f3fd01 100644 --- a/linux/src/drivers/block/ide.c +++ b/linux/src/drivers/block/ide.c @@ -302,6 +302,8 @@ #include #include +#include + #include #include #include @@ -3682,6 +3684,7 @@ static void probe_for_hwifs (void) #ifdef CONFIG_BLK_DEV_PROMISE init_dc4030(); #endif + ahci_probe_pci(); } static int hwif_init (int h) -- cgit v1.2.3