qbus: add functions to walk both devices and busses
[qemu/mdroth.git] / hw / vhost_net.h
blob6c18ff7e94782679970b205b774b0a72783d3f39
1 #ifndef VHOST_NET_H
2 #define VHOST_NET_H
4 #include "net.h"
6 struct vhost_net;
7 typedef struct vhost_net VHostNetState;
9 VHostNetState *vhost_net_init(VLANClientState *backend, int devfd);
11 int vhost_net_start(VHostNetState *net, VirtIODevice *dev);
12 void vhost_net_stop(VHostNetState *net, VirtIODevice *dev);
14 void vhost_net_cleanup(VHostNetState *net);
16 unsigned vhost_net_get_features(VHostNetState *net, unsigned features);
17 void vhost_net_ack_features(VHostNetState *net, unsigned features);
19 #endif