Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/pci_emul.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | struct pci_devemu { | ||||
/* BAR read/write callbacks */ | /* BAR read/write callbacks */ | ||||
void (*pe_barwrite)(struct vmctx *ctx, int vcpu, | void (*pe_barwrite)(struct vmctx *ctx, int vcpu, | ||||
struct pci_devinst *pi, int baridx, | struct pci_devinst *pi, int baridx, | ||||
uint64_t offset, int size, uint64_t value); | uint64_t offset, int size, uint64_t value); | ||||
uint64_t (*pe_barread)(struct vmctx *ctx, int vcpu, | uint64_t (*pe_barread)(struct vmctx *ctx, int vcpu, | ||||
struct pci_devinst *pi, int baridx, | struct pci_devinst *pi, int baridx, | ||||
uint64_t offset, int size); | uint64_t offset, int size); | ||||
void (*pe_baraddr)(struct vmctx *ctx, struct pci_devinst *pi, | |||||
int baridx, int enabled, uint64_t address); | |||||
/* Save/restore device state */ | /* Save/restore device state */ | ||||
int (*pe_snapshot)(struct vm_snapshot_meta *meta); | int (*pe_snapshot)(struct vm_snapshot_meta *meta); | ||||
int (*pe_pause)(struct vmctx *ctx, struct pci_devinst *pi); | int (*pe_pause)(struct vmctx *ctx, struct pci_devinst *pi); | ||||
int (*pe_resume)(struct vmctx *ctx, struct pci_devinst *pi); | int (*pe_resume)(struct vmctx *ctx, struct pci_devinst *pi); | ||||
}; | }; | ||||
#define PCI_EMUL_SET(x) DATA_SET(pci_devemu_set, x); | #define PCI_EMUL_SET(x) DATA_SET(pci_devemu_set, x); | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |