Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/nvme/nvme.c
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
static driver_t nvme_pci_driver = { | static driver_t nvme_pci_driver = { | ||||
"nvme", | "nvme", | ||||
nvme_pci_methods, | nvme_pci_methods, | ||||
sizeof(struct nvme_controller), | sizeof(struct nvme_controller), | ||||
}; | }; | ||||
DRIVER_MODULE(nvme, pci, nvme_pci_driver, nvme_devclass, nvme_modevent, 0); | |||||
MODULE_VERSION(nvme, 1); | |||||
MODULE_DEPEND(nvme, cam, 1, 1, 1); | |||||
static struct _pcsid | static struct _pcsid | ||||
{ | { | ||||
uint32_t devid; | uint32_t devid; | ||||
int match_subdevice; | int match_subdevice; | ||||
uint16_t subdevice; | uint16_t subdevice; | ||||
const char *desc; | const char *desc; | ||||
uint32_t quirks; | uint32_t quirks; | ||||
Show All 9 Lines | static struct _pcsid | ||||
{ 0x09538086, 1, 0x370a, "DC P3600 SSD [2.5\" SFF]" }, | { 0x09538086, 1, 0x370a, "DC P3600 SSD [2.5\" SFF]" }, | ||||
{ 0x00031c58, 0, 0, "HGST SN100", QUIRK_DELAY_B4_CHK_RDY }, | { 0x00031c58, 0, 0, "HGST SN100", QUIRK_DELAY_B4_CHK_RDY }, | ||||
{ 0x00231c58, 0, 0, "WDC SN200", QUIRK_DELAY_B4_CHK_RDY }, | { 0x00231c58, 0, 0, "WDC SN200", QUIRK_DELAY_B4_CHK_RDY }, | ||||
{ 0x05401c5f, 0, 0, "Memblaze Pblaze4", QUIRK_DELAY_B4_CHK_RDY }, | { 0x05401c5f, 0, 0, "Memblaze Pblaze4", QUIRK_DELAY_B4_CHK_RDY }, | ||||
{ 0xa821144d, 0, 0, "Samsung PM1725", QUIRK_DELAY_B4_CHK_RDY }, | { 0xa821144d, 0, 0, "Samsung PM1725", QUIRK_DELAY_B4_CHK_RDY }, | ||||
{ 0xa822144d, 0, 0, "Samsung PM1725a", QUIRK_DELAY_B4_CHK_RDY }, | { 0xa822144d, 0, 0, "Samsung PM1725a", QUIRK_DELAY_B4_CHK_RDY }, | ||||
{ 0x00000000, 0, 0, NULL } | { 0x00000000, 0, 0, NULL } | ||||
}; | }; | ||||
DRIVER_MODULE(nvme, pci, nvme_pci_driver, nvme_devclass, nvme_modevent, 0); | |||||
MODULE_PNP_INFO("W32:vendor/device", pci, nvme, pci_ids, | |||||
sizeof(pci_ids[0]), nitems(pci_ids) - 1); | |||||
MODULE_VERSION(nvme, 1); | |||||
MODULE_DEPEND(nvme, cam, 1, 1, 1); | |||||
static int | static int | ||||
nvme_match(uint32_t devid, uint16_t subdevice, struct _pcsid *ep) | nvme_match(uint32_t devid, uint16_t subdevice, struct _pcsid *ep) | ||||
{ | { | ||||
if (devid != ep->devid) | if (devid != ep->devid) | ||||
return 0; | return 0; | ||||
if (!ep->match_subdevice) | if (!ep->match_subdevice) | ||||
▲ Show 20 Lines • Show All 388 Lines • Show Last 20 Lines |