mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:23:01 +00:00
[SDK][VIRTIO][NETKVM] Make VirtIO a separate library (#6280)
* [SDK][VIRTIO][NETKVM] Make VirtIO a separate library This is to avoid code duplication when more VirtIO drivers are brought in. This will also be used on development of a VirtIO XDDM GPU Driver. * [VIRTIO] Sync with upstream
This commit is contained in:
parent
96d5b6281d
commit
823fdb19d7
20 changed files with 35 additions and 8 deletions
24
sdk/lib/drivers/virtio/windows/virtio_ring_allocation.h
Normal file
24
sdk/lib/drivers/virtio/windows/virtio_ring_allocation.h
Normal file
|
@ -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 */
|
Loading…
Add table
Add a link
Reference in a new issue