Report cpi->hba_* for nda(4) because why not.
MFC after: 1 week
This commit is contained in:
parent
1c7decd4de
commit
97dc595da2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364179
@ -197,8 +197,12 @@ nvme_sim_action(struct cam_sim *sim, union ccb *ccb)
|
|||||||
cpi->xport_specific.nvme.slot = pci_get_slot(dev);
|
cpi->xport_specific.nvme.slot = pci_get_slot(dev);
|
||||||
cpi->xport_specific.nvme.function = pci_get_function(dev);
|
cpi->xport_specific.nvme.function = pci_get_function(dev);
|
||||||
cpi->xport_specific.nvme.extra = 0;
|
cpi->xport_specific.nvme.extra = 0;
|
||||||
strncpy(cpi->xport_specific.nvme.dev_name, device_get_nameunit(ctrlr->dev),
|
strncpy(cpi->xport_specific.nvme.dev_name, device_get_nameunit(dev),
|
||||||
sizeof(cpi->xport_specific.nvme.dev_name));
|
sizeof(cpi->xport_specific.nvme.dev_name));
|
||||||
|
cpi->hba_vendor = pci_get_vendor(dev);
|
||||||
|
cpi->hba_device = pci_get_device(dev);
|
||||||
|
cpi->hba_subvendor = pci_get_subvendor(dev);
|
||||||
|
cpi->hba_subdevice = pci_get_subdevice(dev);
|
||||||
cpi->ccb_h.status = CAM_REQ_CMP;
|
cpi->ccb_h.status = CAM_REQ_CMP;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user