freebsd-skq/sys/dev/ahci
Warner Losh 93289cfcd2 Create a AHCI attachment for nvme.
Intel has created RST and many laptops from vendors like Lenovo and Asus. It's a
mechanism for creating multiple boot devices under windows. It effectively hides
the nvme drive inside of the ahci controller. The details are supposed to be a
trade secret. However, there's a reverse engineered Linux driver, and this
implements similar operations to allow nvme drives to attach. The ahci driver
attaches nvme children that proxy the remapped resources to the child. nvme_ahci
is just like nvme_pci, except it doesn't do the PCI specific things. That's
moved into ahci where appropriate.

When the nvme drive is remapped, MSI-x interrupts aren't forwarded (the linux
driver doesn't know how to use this either). INTx interrupts are used
instead. This is suboptimal, but usually sufficient for the laptops these parts
are in.

This is based loosely on https://www.spinics.net/lists/linux-ide/msg53364.html
submitted, but not accepted by, Linux. It was written by Dan Williams. These
changes were written from scratch by Olivier Houchard.

Submitted by: cognet@ (Olivier Houchard)
2019-08-21 22:18:01 +00:00
..
ahci_generic.c ahci: Check if bus is cache-coherent 2019-05-10 16:43:53 +00:00
ahci_mv_fdt.c Fix kernel modules names for Marvell armv7 2018-04-03 23:49:35 +00:00
ahci_pci.c Create a AHCI attachment for nvme. 2019-08-21 22:18:01 +00:00
ahci.c Create a AHCI attachment for nvme. 2019-08-21 22:18:01 +00:00
ahci.h Create a AHCI attachment for nvme. 2019-08-21 22:18:01 +00:00
ahciem.c Improve AHCI Enclosure Management and SES interoperation. 2019-06-23 19:05:01 +00:00