Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/pci_virtio_rnd.c
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | while (vq_has_descs(vq)) { | ||||
*/ | */ | ||||
vq_relchain(vq, idx, len); | vq_relchain(vq, idx, len); | ||||
} | } | ||||
vq_endchains(vq, 1); /* Generate interrupt if appropriate. */ | vq_endchains(vq, 1); /* Generate interrupt if appropriate. */ | ||||
} | } | ||||
static int | static int | ||||
pci_vtrnd_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts) | pci_vtrnd_init(struct vmctx *ctx, struct pci_devinst *pi, nvlist_t *nvl) | ||||
{ | { | ||||
struct pci_vtrnd_softc *sc; | struct pci_vtrnd_softc *sc; | ||||
int fd; | int fd; | ||||
int len; | int len; | ||||
uint8_t v; | uint8_t v; | ||||
#ifndef WITHOUT_CAPSICUM | #ifndef WITHOUT_CAPSICUM | ||||
cap_rights_t rights; | cap_rights_t rights; | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |