freebsd-dev/sys/modules/nvme/Makefile
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

27 lines
355 B
Makefile

# $FreeBSD$
.PATH: ${SRCTOP}/sys/dev/nvme
KMOD = nvme
SRCS = nvme.c \
nvme_ahci.c \
nvme_ctrlr.c \
nvme_ctrlr_cmd.c \
nvme_ns.c \
nvme_ns_cmd.c \
nvme_pci.c \
nvme_qpair.c \
nvme_sim.c \
nvme_sysctl.c \
nvme_test.c \
nvme_util.c \
\
bus_if.h \
device_if.h \
opt_cam.h \
opt_nvme.h \
pci_if.h
.include <bsd.kmod.mk>