1 #ifndef _VIRTIO_RING_ALLOCATION_H
2 #define _VIRTIO_RING_ALLOCATION_H
3 
4 struct virtqueue *vring_new_virtqueue_split(unsigned int index,
5     unsigned int num,
6     unsigned int vring_align,
7     VirtIODevice *vdev,
8     void *pages,
9     void (*notify)(struct virtqueue *),
10     void *control);
11 
12 struct virtqueue *vring_new_virtqueue_packed(unsigned int index,
13     unsigned int num,
14     unsigned int vring_align,
15     VirtIODevice *vdev,
16     void *pages,
17     void (*notify)(struct virtqueue *),
18     void *control);
19 
20 unsigned int vring_control_block_size(u16 qsize, bool packed);
21 unsigned int vring_control_block_size_packed(u16 qsize);
22 unsigned long vring_size_packed(unsigned int num, unsigned long align);
23 
24 #endif /* _VIRTIO_RING_ALLOCATION_H */
25