Searched refs:msicap (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | pci_emul.h | 171 struct msicap { struct 179 static_assert(sizeof(struct msicap) == 14, "compile-time assertion failed"); argument 256 void pci_populate_msicap(struct msicap *cap, int msgs, int nextptr);
|
H A D | pci_emul.c | 1141 pci_populate_msicap(struct msicap *msicap, int msgnum, int nextptr) in pci_populate_msicap() argument 1149 bzero(msicap, sizeof(struct msicap)); in pci_populate_msicap() 1150 msicap->capid = PCIY_MSI; in pci_populate_msicap() 1151 msicap->nextptr = nextptr; in pci_populate_msicap() 1152 msicap->msgctrl = PCIM_MSICTRL_64BIT | (mmc << 1); in pci_populate_msicap() 1158 struct msicap msicap; in pci_emul_add_msicap() local 1160 pci_populate_msicap(&msicap, msgnum, 0); in pci_emul_add_msicap() 1162 return (pci_emul_add_capability(pi, (u_char *)&msicap, sizeof(msicap))); in pci_emul_add_msicap()
|
H A D | pci_passthru.c | 187 struct msicap msicap; in passthru_add_msicap() local 190 pci_populate_msicap(&msicap, msgnum, nextptr); in passthru_add_msicap() 198 capoff = 256 - roundup(sizeof(msicap), 4); in passthru_add_msicap() 199 capdata = (u_char *)&msicap; in passthru_add_msicap() 200 for (size_t i = 0; i < sizeof(msicap); i++) in passthru_add_msicap()
|