bhyve: make passthru sel public available
The GVT-d emulation requires access to this selector to read from the device. Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D40035
This commit is contained in:
parent
ca14781c81
commit
60793cee27
@ -660,6 +660,14 @@ cfginit(struct pci_devinst *pi, int bus, int slot, int func)
|
|||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct pcisel *
|
||||||
|
passthru_get_sel(struct passthru_softc *sc)
|
||||||
|
{
|
||||||
|
assert(sc != NULL);
|
||||||
|
|
||||||
|
return (&sc->psc_sel);
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
set_pcir_handler(struct passthru_softc *sc, int reg, int len,
|
set_pcir_handler(struct passthru_softc *sc, int reg, int len,
|
||||||
cfgread_handler rhandler, cfgwrite_handler whandler)
|
cfgread_handler rhandler, cfgwrite_handler whandler)
|
||||||
|
@ -24,5 +24,6 @@ int passthru_cfgread_emulate(struct passthru_softc *sc, struct pci_devinst *pi,
|
|||||||
int coff, int bytes, uint32_t *rv);
|
int coff, int bytes, uint32_t *rv);
|
||||||
int passthru_cfgwrite_emulate(struct passthru_softc *sc, struct pci_devinst *pi,
|
int passthru_cfgwrite_emulate(struct passthru_softc *sc, struct pci_devinst *pi,
|
||||||
int coff, int bytes, uint32_t val);
|
int coff, int bytes, uint32_t val);
|
||||||
|
struct pcisel *passthru_get_sel(struct passthru_softc *sc);
|
||||||
int set_pcir_handler(struct passthru_softc *sc, int reg, int len,
|
int set_pcir_handler(struct passthru_softc *sc, int reg, int len,
|
||||||
cfgread_handler rhandler, cfgwrite_handler whandler);
|
cfgread_handler rhandler, cfgwrite_handler whandler);
|
||||||
|
Loading…
Reference in New Issue
Block a user