3 #include <linux/scatterlist.h>
4 #include <linux/kernel.h>
12 /* TODO: commented as list macros are empty stubs for now.
13 * Broken but enough for virtio_ring.c
14 * struct list_head list; */
15 void (*callback
)(struct virtqueue
*vq
);
17 struct virtio_device
*vdev
;
19 unsigned int num_free
;
23 /* Interfaces exported by virtio_ring. */
24 int virtqueue_add_sgs(struct virtqueue
*vq
,
25 struct scatterlist
*sgs
[],
31 int virtqueue_add_outbuf(struct virtqueue
*vq
,
32 struct scatterlist sg
[], unsigned int num
,
36 int virtqueue_add_inbuf(struct virtqueue
*vq
,
37 struct scatterlist sg
[], unsigned int num
,
41 bool virtqueue_kick(struct virtqueue
*vq
);
43 void *virtqueue_get_buf(struct virtqueue
*vq
, unsigned int *len
);
45 void virtqueue_disable_cb(struct virtqueue
*vq
);
47 bool virtqueue_enable_cb(struct virtqueue
*vq
);
48 bool virtqueue_enable_cb_delayed(struct virtqueue
*vq
);
50 void *virtqueue_detach_unused_buf(struct virtqueue
*vq
);
51 struct virtqueue
*vring_new_virtqueue(unsigned int index
,
53 unsigned int vring_align
,
54 struct virtio_device
*vdev
,
57 bool (*notify
)(struct virtqueue
*vq
),
58 void (*callback
)(struct virtqueue
*vq
),
60 void vring_del_virtqueue(struct virtqueue
*vq
);
This page took 0.042268 seconds and 5 git commands to generate.