Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/pci/pci_iov.c
Show First 20 Lines • Show All 580 Lines • ▼ Show 20 Lines | if (vf == NULL) | ||||
break; | break; | ||||
/* | /* | ||||
* If we are creating passthrough devices then force the ppt | * If we are creating passthrough devices then force the ppt | ||||
* driver to attach to prevent a VF driver from claiming the | * driver to attach to prevent a VF driver from claiming the | ||||
* VFs. | * VFs. | ||||
*/ | */ | ||||
if (nvlist_get_bool(iov_config, "passthrough")) | if (nvlist_get_bool(iov_config, "passthrough")) | ||||
device_set_devclass(vf, "ppt"); | device_set_devclass_fixed(vf, "ppt"); | ||||
vfinfo = device_get_ivars(vf); | vfinfo = device_get_ivars(vf); | ||||
vfinfo->cfg.iov = iov; | vfinfo->cfg.iov = iov; | ||||
vfinfo->cfg.vf.index = i; | vfinfo->cfg.vf.index = i; | ||||
pci_iov_add_bars(iov, vfinfo); | pci_iov_add_bars(iov, vfinfo); | ||||
▲ Show 20 Lines • Show All 383 Lines • Show Last 20 Lines |