~ubuntu-branches/debian/jessie/qemu/jessie

« back to all changes in this revision

Viewing changes to hw/virtio.h

  • Committer: Package Import Robot
  • Author(s): Vagrant Cascadian
  • Date: 2011-10-03 12:29:18 UTC
  • mfrom: (1.2.13) (10.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20111003122918-zc4kv6epchrbgdta
Tags: 0.15.0+dfsg-1
* New upstream version.
* Install new qemu-system, qemu-user and qemu-user-static variants: 
  lm32, microblazeel, s390x, unicore32
* Patch from upstream to set QEMU_INCLUDES before QEMU_CFLAGS.
* Update debian/watch to check http://qemu.org/download.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
#define VIRTIO_F_NOTIFY_ON_EMPTY        24
47
47
/* We support indirect buffer descriptors */
48
48
#define VIRTIO_RING_F_INDIRECT_DESC     28
 
49
/* The Guest publishes the used index for which it expects an interrupt
 
50
 * at the end of the avail ring. Host should ignore the avail->flags field. */
 
51
/* The Host publishes the avail index for which it expects a kick
 
52
 * at the end of the used ring. Guest should ignore the used->flags field. */
 
53
#define VIRTIO_RING_F_EVENT_IDX         29
49
54
/* A guest should never accept this.  It implies negotiation is broken. */
50
55
#define VIRTIO_F_BAD_FEATURE            30
51
56
 
192
197
                        void *opaque);
193
198
 
194
199
/* Base devices.  */
195
 
VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf);
 
200
VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf,
 
201
                              char **serial);
196
202
struct virtio_net_conf;
197
203
VirtIODevice *virtio_net_init(DeviceState *dev, NICConf *conf,
198
204
                              struct virtio_net_conf *net);
199
 
VirtIODevice *virtio_serial_init(DeviceState *dev, uint32_t max_nr_ports);
 
205
typedef struct virtio_serial_conf virtio_serial_conf;
 
206
VirtIODevice *virtio_serial_init(DeviceState *dev, virtio_serial_conf *serial);
200
207
VirtIODevice *virtio_balloon_init(DeviceState *dev);
201
208
#ifdef CONFIG_LINUX
202
209
VirtIODevice *virtio_9p_init(DeviceState *dev, V9fsConf *conf);
206
213
void virtio_net_exit(VirtIODevice *vdev);
207
214
void virtio_blk_exit(VirtIODevice *vdev);
208
215
void virtio_serial_exit(VirtIODevice *vdev);
 
216
void virtio_balloon_exit(VirtIODevice *vdev);
209
217
 
210
218
#define DEFINE_VIRTIO_COMMON_FEATURES(_state, _field) \
211
219
        DEFINE_PROP_BIT("indirect_desc", _state, _field, \
212
 
                        VIRTIO_RING_F_INDIRECT_DESC, true)
 
220
                        VIRTIO_RING_F_INDIRECT_DESC, true), \
 
221
        DEFINE_PROP_BIT("event_idx", _state, _field, \
 
222
                        VIRTIO_RING_F_EVENT_IDX, true)
213
223
 
214
224
target_phys_addr_t virtio_queue_get_desc_addr(VirtIODevice *vdev, int n);
215
225
target_phys_addr_t virtio_queue_get_avail_addr(VirtIODevice *vdev, int n);