2021-07-09 08:00:16 +03:00
|
|
|
/*
|
|
|
|
* Vhost-user i2c virtio device
|
|
|
|
*
|
|
|
|
* Copyright (c) 2021 Viresh Kumar <viresh.kumar@linaro.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
|
|
|
|
2022-05-06 16:49:09 +03:00
|
|
|
#ifndef QEMU_VHOST_USER_I2C_H
|
|
|
|
#define QEMU_VHOST_USER_I2C_H
|
2021-07-09 08:00:16 +03:00
|
|
|
|
2024-01-05 00:09:39 +03:00
|
|
|
#include "hw/virtio/virtio.h"
|
2021-07-09 08:00:16 +03:00
|
|
|
#include "hw/virtio/vhost.h"
|
|
|
|
#include "hw/virtio/vhost-user.h"
|
2024-01-05 00:09:39 +03:00
|
|
|
#include "hw/virtio/vhost-user-base.h"
|
2021-07-09 08:00:16 +03:00
|
|
|
|
|
|
|
#define TYPE_VHOST_USER_I2C "vhost-user-i2c-device"
|
2024-01-05 00:09:39 +03:00
|
|
|
|
2021-07-09 08:00:16 +03:00
|
|
|
OBJECT_DECLARE_SIMPLE_TYPE(VHostUserI2C, VHOST_USER_I2C)
|
|
|
|
|
|
|
|
struct VHostUserI2C {
|
2024-01-05 00:09:39 +03:00
|
|
|
VHostUserBase parent_obj;
|
2021-07-09 08:00:16 +03:00
|
|
|
};
|
|
|
|
|
2022-05-06 16:49:09 +03:00
|
|
|
#endif /* QEMU_VHOST_USER_I2C_H */
|