Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/pci_passthru.c
Show First 20 Lines • Show All 727 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct passthru_softc *sc; | struct passthru_softc *sc; | ||||
sc = pi->pi_arg; | sc = pi->pi_arg; | ||||
/* | /* | ||||
* PCI BARs and MSI capability is emulated. | * PCI BARs and MSI capability is emulated. | ||||
*/ | */ | ||||
if (bar_access(coff) || msicap_access(sc, coff)) | if (bar_access(coff) || msicap_access(sc, coff) || msixcap_access(sc, coff)) | ||||
markj: Long line. | |||||
return (-1); | return (-1); | ||||
#ifdef LEGACY_SUPPORT | #ifdef LEGACY_SUPPORT | ||||
/* | /* | ||||
* Emulate PCIR_CAP_PTR if this device does not support MSI capability | * Emulate PCIR_CAP_PTR if this device does not support MSI capability | ||||
* natively. | * natively. | ||||
*/ | */ | ||||
if (sc->psc_msi.emulated) { | if (sc->psc_msi.emulated) { | ||||
▲ Show 20 Lines • Show All 262 Lines • Show Last 20 Lines |
Long line.