configure: Detect and don't try to use older libcurl
[sdk/emulator/qemu.git] / hw / virtio-pci.h
1 /*
2  * Virtio PCI Bindings
3  *
4  * Copyright IBM, Corp. 2007
5  * Copyright (c) 2009 CodeSourcery
6  *
7  * Authors:
8  *  Anthony Liguori   <aliguori@us.ibm.com>
9  *  Paul Brook        <paul@codesourcery.com>
10  *
11  * This work is licensed under the terms of the GNU GPL, version 2.  See
12  * the COPYING file in the top-level directory.
13  */
14
15 #ifndef QEMU_VIRTIO_PCI_H
16 #define QEMU_VIRTIO_PCI_H
17
18 #include "virtio-net.h"
19 #include "virtio-serial.h"
20
21 typedef struct {
22     PCIDevice pci_dev;
23     VirtIODevice *vdev;
24     uint32_t flags;
25     uint32_t addr;
26     uint32_t class_code;
27     uint32_t nvectors;
28     BlockConf block;
29     NICConf nic;
30     uint32_t host_features;
31 #ifdef CONFIG_LINUX
32     V9fsConf fsconf;
33 #endif
34     virtio_serial_conf serial;
35     virtio_net_conf net;
36     bool ioeventfd_disabled;
37     bool ioeventfd_started;
38 } VirtIOPCIProxy;
39
40 extern void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev,
41                             uint16_t vendor, uint16_t device,
42                             uint16_t class_code, uint8_t pif);
43 #endif