aboutsummaryrefslogtreecommitdiffstats
path: root/include/vhost_user_input.h
blob: 8137694476b49e786d3da7d4215fe468c261ab3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Based on virtio-input.h of QEMU project
 *
 * Copyright (c) 2022-2024 Virtual Open Systems SAS.
 *
 * This work is licensed under the terms of the GNU GPL, version 2 or
 * (at your option) any later version.  See the COPYING file in the
 * top-level directory.
 */

#ifndef VHOST_USER_INPUT
#define VHOST_USER_INPUT

#include "vhost_loopback.h"
#include "vhost_user_loopback.h"
#include "virtio_loopback.h"
#include <linux/virtio_input.h>

typedef struct VhostUserInput {
    VirtIODevice *parent;
    struct vhost_dev *vhost_dev;
    struct virtio_input_config        config;
    VirtQueue                         *evt, *sts;
    bool started;
    bool completed;
} VhostUserInput;

void virtio_input_device_realize(struct adapter_dev *adev);

#endif /* VHOST_USER_INPUT */