Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/pci_virtio_scsi.c
Show All 33 Lines | |||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/linker_set.h> | #include <sys/linker_set.h> | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/uio.h> | #include <sys/uio.h> | ||||
#include <sys/time.h> | #include <sys/time.h> | ||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include <sys/sbuf.h> | #include <sys/sbuf.h> | ||||
#include <machine/atomic.h> | |||||
#include <errno.h> | #include <errno.h> | ||||
#include <fcntl.h> | #include <fcntl.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#include <assert.h> | #include <assert.h> | ||||
▲ Show 20 Lines • Show All 526 Lines • ▼ Show 20 Lines | pci_vtscsi_controlq_notify(void *vsc, struct vqueue_info *vq) | ||||
vq_endchains(vq, 1); /* Generate interrupt if appropriate. */ | vq_endchains(vq, 1); /* Generate interrupt if appropriate. */ | ||||
free(buf); | free(buf); | ||||
} | } | ||||
static void | static void | ||||
pci_vtscsi_eventq_notify(void *vsc, struct vqueue_info *vq) | pci_vtscsi_eventq_notify(void *vsc, struct vqueue_info *vq) | ||||
{ | { | ||||
vq->vq_used->vu_flags |= VRING_USED_F_NO_NOTIFY; | vq_kick_disable(vq); | ||||
} | } | ||||
static void | static void | ||||
pci_vtscsi_requestq_notify(void *vsc, struct vqueue_info *vq) | pci_vtscsi_requestq_notify(void *vsc, struct vqueue_info *vq) | ||||
{ | { | ||||
struct pci_vtscsi_softc *sc; | struct pci_vtscsi_softc *sc; | ||||
struct pci_vtscsi_queue *q; | struct pci_vtscsi_queue *q; | ||||
struct pci_vtscsi_request *req; | struct pci_vtscsi_request *req; | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |