diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-05-10 18:56:26 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-05-10 18:59:12 +0200 |
commit | 75c1b0d1133a7ae6a7eb45818470f453700df1a2 (patch) | |
tree | 3173219e5d1aa5b22329f3d30703abf8f4f3263b /linux/dev/glue | |
parent | a750e58b21c05cffd81f460a72ed4dd6d27ee5ec (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/dev/glue')
-rw-r--r-- | linux/dev/glue/kmem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/dev/glue/kmem.c b/linux/dev/glue/kmem.c index 2832171..ff052ff 100644 --- a/linux/dev/glue/kmem.c +++ b/linux/dev/glue/kmem.c @@ -560,6 +560,12 @@ vfree (void *addr) vmalloc_list_remove (p); } +unsigned long +vmtophys (void *addr) +{ + return kvtophys((vm_offset_t) addr); +} + /* XXX: Quick hacking. */ /* Remap physical address into virtual address. */ void * |