24 lines
580 B
C
24 lines
580 B
C
#include <zinnia/errno.h>
|
|
#include <zinnia/module.h>
|
|
#include <zinnia/pci.h>
|
|
|
|
static errno_t nvme_pci_probe(struct pci_device* dev, const struct pci_match* match) {
|
|
pci_log(dev, "Detected controller \n");
|
|
|
|
return 0;
|
|
}
|
|
|
|
static const struct pci_match nvme_match[] = {
|
|
// Generic NVMe device. Assume no quirks or any funny business.
|
|
{PCI_MATCH_CLASS(1, 8, 2), .data = 0},
|
|
};
|
|
|
|
MATCH_TABLE("pci", nvme_match);
|
|
|
|
struct pci_driver nvme_driver = {
|
|
.name = "nvme_pci",
|
|
.match = nvme_match,
|
|
.num_matches = ARRAY_SIZE(nvme_match),
|
|
.probe = nvme_pci_probe,
|
|
};
|