a50616b50d
Now we can take advantage of the new base class and make vhost-user-i2c a much simpler boilerplate wrapper. Also as this doesn't require any target specific hacks we only need to build the stubs once. Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240104210945.1223134-6-alex.bennee@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
26 lines
548 B
C
26 lines
548 B
C
/*
|
|
* Vhost-user i2c virtio device
|
|
*
|
|
* Copyright (c) 2021 Viresh Kumar <viresh.kumar@linaro.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef QEMU_VHOST_USER_I2C_H
|
|
#define QEMU_VHOST_USER_I2C_H
|
|
|
|
#include "hw/virtio/virtio.h"
|
|
#include "hw/virtio/vhost.h"
|
|
#include "hw/virtio/vhost-user.h"
|
|
#include "hw/virtio/vhost-user-base.h"
|
|
|
|
#define TYPE_VHOST_USER_I2C "vhost-user-i2c-device"
|
|
|
|
OBJECT_DECLARE_SIMPLE_TYPE(VHostUserI2C, VHOST_USER_I2C)
|
|
|
|
struct VHostUserI2C {
|
|
VHostUserBase parent_obj;
|
|
};
|
|
|
|
#endif /* QEMU_VHOST_USER_I2C_H */
|