virtio-input.c (6966b2a07190004e18ede33ce50a65009b36f3a6) virtio-input.c (9d5b731dd2d64deb3bc798ef4e3c08603d54ae02)
1/*
2 * This work is licensed under the terms of the GNU GPL, version 2 or
3 * (at your option) any later version. See the COPYING file in the
4 * top-level directory.
5 */
6
7#include "qemu/iov.h"
8

--- 152 unchanged lines hidden (view full) ---

161 VirtIOInput *vinput = VIRTIO_INPUT(vdev);
162 virtio_input_config *config = (virtio_input_config *)config_data;
163
164 vinput->cfg_select = config->select;
165 vinput->cfg_subsel = config->subsel;
166 virtio_notify_config(vdev);
167}
168
1/*
2 * This work is licensed under the terms of the GNU GPL, version 2 or
3 * (at your option) any later version. See the COPYING file in the
4 * top-level directory.
5 */
6
7#include "qemu/iov.h"
8

--- 152 unchanged lines hidden (view full) ---

161 VirtIOInput *vinput = VIRTIO_INPUT(vdev);
162 virtio_input_config *config = (virtio_input_config *)config_data;
163
164 vinput->cfg_select = config->select;
165 vinput->cfg_subsel = config->subsel;
166 virtio_notify_config(vdev);
167}
168
169static uint64_t virtio_input_get_features(VirtIODevice *vdev, uint64_t f)
169static uint64_t virtio_input_get_features(VirtIODevice *vdev, uint64_t f,
170 Error **errp)
170{
171 return f;
172}
173
174static void virtio_input_set_status(VirtIODevice *vdev, uint8_t val)
175{
176 VirtIOInputClass *vic = VIRTIO_INPUT_GET_CLASS(vdev);
177 VirtIOInput *vinput = VIRTIO_INPUT(vdev);

--- 111 unchanged lines hidden ---
171{
172 return f;
173}
174
175static void virtio_input_set_status(VirtIODevice *vdev, uint8_t val)
176{
177 VirtIOInputClass *vic = VIRTIO_INPUT_GET_CLASS(vdev);
178 VirtIOInput *vinput = VIRTIO_INPUT(vdev);

--- 111 unchanged lines hidden ---