Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/pci_passthru.h
Show All 14 Lines | |||||
typedef int (*cfgread_handler)(struct passthru_softc *sc, | typedef int (*cfgread_handler)(struct passthru_softc *sc, | ||||
struct pci_devinst *pi, int coff, int bytes, uint32_t *rv); | struct pci_devinst *pi, int coff, int bytes, uint32_t *rv); | ||||
typedef int (*cfgwrite_handler)(struct passthru_softc *sc, | typedef int (*cfgwrite_handler)(struct passthru_softc *sc, | ||||
struct pci_devinst *pi, int coff, int bytes, uint32_t val); | struct pci_devinst *pi, int coff, int bytes, uint32_t val); | ||||
uint32_t read_config(const struct pcisel *sel, long reg, int width); | uint32_t read_config(const struct pcisel *sel, long reg, int width); | ||||
void write_config(const struct pcisel *sel, long reg, int width, uint32_t data); | void write_config(const struct pcisel *sel, long reg, int width, uint32_t data); | ||||
int passthru_cfgread_emulate(struct passthru_softc *sc, struct pci_devinst *pi, | |||||
int coff, int bytes, uint32_t *rv); | |||||
int passthru_cfgwrite_emulate(struct passthru_softc *sc, struct pci_devinst *pi, | |||||
int coff, int bytes, uint32_t val); | |||||
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); |