search for: virtio_id_exampl

Displaying 1 result from an estimated 1 matches for "virtio_id_exampl".

Did you mean: virtio_id_example
2019 Apr 29
1
[RFC-PATCH] Introducing virtio-example.
...> +#include <linux/interrupt.h> +#include <linux/io.h> /* io map */ +#include <linux/dma-mapping.h> /* DMA */ +#include <linux/kernel.h> /* kstrtoint() func */ +#include <linux/virtio_config.h> /* find_single_vq() func */ + + +#define VIRTIO_ID_EXAMPLE 21 +/* big enough to contain a string representing an integer */ +#define MAX_DATA_SIZE 20 + +struct virtexample_info { + struct virtqueue *vq; + /* + * in - the data we get from the device + * out - the data we send to the device + */ + int in, out; +}; + + + +//----------------...