Deleted Added
full compact
virtqueue.h (238072) virtqueue.h (238360)
1/*-
2 * Copyright (c) 2011, Bryan Venteicher <bryanv@daemoninthecloset.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2011, Bryan Venteicher <bryanv@daemoninthecloset.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/virtio/virtqueue.h 238072 2012-07-03 15:15:41Z obrien $
26 * $FreeBSD: head/sys/dev/virtio/virtqueue.h 238360 2012-07-11 02:57:19Z grehan $
27 */
28
29#ifndef _VIRTIO_VIRTQUEUE_H
30#define _VIRTIO_VIRTQUEUE_H
31
32struct virtqueue;
33struct sglist;
34
35/* Support for indirect buffer descriptors. */
36#define VIRTIO_RING_F_INDIRECT_DESC (1 << 28)
37
27 */
28
29#ifndef _VIRTIO_VIRTQUEUE_H
30#define _VIRTIO_VIRTQUEUE_H
31
32struct virtqueue;
33struct sglist;
34
35/* Support for indirect buffer descriptors. */
36#define VIRTIO_RING_F_INDIRECT_DESC (1 << 28)
37
38/* The guest publishes the used index for which it expects an interrupt
39 * at the end of the avail ring. Host should ignore the avail->flags field.
40 * The host publishes the avail index for which it expects a kick
41 * at the end of the used ring. Guest should ignore the used->flags field.
42 */
38/* Support to suppress interrupt until specific index is reached. */
43#define VIRTIO_RING_F_EVENT_IDX (1 << 29)
44
45/* Device callback for a virtqueue interrupt. */
46typedef int virtqueue_intr_t(void *);
47
48#define VIRTQUEUE_MAX_NAME_SZ 32
49
50/* One for each virtqueue the device wishes to allocate. */

--- 47 unchanged lines hidden ---
39#define VIRTIO_RING_F_EVENT_IDX (1 << 29)
40
41/* Device callback for a virtqueue interrupt. */
42typedef int virtqueue_intr_t(void *);
43
44#define VIRTQUEUE_MAX_NAME_SZ 32
45
46/* One for each virtqueue the device wishes to allocate. */

--- 47 unchanged lines hidden ---