ReactOS  0.4.15-dev-1070-ge1a01de
virtio_ring_allocation.h
Go to the documentation of this file.
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,
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,
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 */
GLuint GLenum GLsizei GLsizei GLint GLint GLboolean packed
Definition: glext.h:9271
unsigned int vring_control_block_size_packed(u16 qsize)
int notify
Definition: msacm.c:1365
int align(int length, int align)
Definition: dsound8.c:36
unsigned int vring_control_block_size(u16 qsize, bool packed)
Definition: VirtIORing.c:474
struct virtqueue * vring_new_virtqueue_split(unsigned int index, unsigned int num, unsigned int vring_align, VirtIODevice *vdev, void *pages, void(*notify)(struct virtqueue *), void *control)
Definition: VirtIORing.c:486
GLuint index
Definition: glext.h:6031
GLuint GLuint num
Definition: glext.h:9618
unsigned long vring_size_packed(unsigned int num, unsigned long align)
struct virtqueue * vring_new_virtqueue_packed(unsigned int index, unsigned int num, unsigned int vring_align, VirtIODevice *vdev, void *pages, void(*notify)(struct virtqueue *), void *control)
VirtIODevice * vdev
Definition: VirtIO.h:44
USHORT u16
Definition: btrfs.h:13