[NETKVM] Import NetKVM network adapter driver by Red Hat
[reactos.git] / drivers / network / dd / netkvm / virtio / windows / virtio_ring_allocation.h
diff --git a/drivers/network/dd/netkvm/virtio/windows/virtio_ring_allocation.h b/drivers/network/dd/netkvm/virtio/windows/virtio_ring_allocation.h
new file mode 100644 (file)
index 0000000..39fe1e7
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef _VIRTIO_RING_ALLOCATION_H
+#define _VIRTIO_RING_ALLOCATION_H
+
+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);
+
+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);
+
+unsigned int vring_control_block_size(u16 qsize, bool packed);
+unsigned int vring_control_block_size_packed(u16 qsize);
+unsigned long vring_size_packed(unsigned int num, unsigned long align);
+
+#endif /* _VIRTIO_RING_ALLOCATION_H */