xref: /qemu/hw/vfio-user/device.h (revision 019232358124e4f4b929e40fa23253de60eec73e)
1 #ifndef VFIO_USER_DEVICE_H
2 #define VFIO_USER_DEVICE_H
3 
4 /*
5  * vfio protocol over a UNIX socket device handling.
6  *
7  * Copyright © 2018, 2021 Oracle and/or its affiliates.
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11 
12 #include "qemu/osdep.h"
13 #include "linux/vfio.h"
14 
15 #include "hw/vfio-user/proxy.h"
16 
17 bool vfio_user_get_device_info(VFIOUserProxy *proxy,
18                                struct vfio_device_info *info, Error **errp);
19 
20 void vfio_user_device_reset(VFIOUserProxy *proxy);
21 
22 extern VFIODeviceIOOps vfio_user_device_io_ops_sock;
23 
24 #endif /* VFIO_USER_DEVICE_H */
25