Deleted Added
full compact
virtqueue.h (256281) virtqueue.h (268010)
1/*-
2 * Copyright (c) 2011, Bryan Venteicher <bryanv@FreeBSD.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@FreeBSD.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: stable/10/sys/dev/virtio/virtqueue.h 255109 2013-09-01 04:16:43Z bryanv $
26 * $FreeBSD: stable/10/sys/dev/virtio/virtqueue.h 268010 2014-06-29 00:37:59Z bryanv $
27 */
28
29#ifndef _VIRTIO_VIRTQUEUE_H
30#define _VIRTIO_VIRTQUEUE_H
31
32struct virtqueue;
33struct sglist;
34
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/* Support to suppress interrupt until specific index is reached. */
39#define VIRTIO_RING_F_EVENT_IDX (1 << 29)
40
41/* Device callback for a virtqueue interrupt. */
42typedef void virtqueue_intr_t(void *);
43
44/*
45 * Hint on how long the next interrupt should be postponed. This is
46 * only used when the EVENT_IDX feature is negotiated.
47 */
48typedef enum {

--- 56 unchanged lines hidden ---
35/* Device callback for a virtqueue interrupt. */
36typedef void virtqueue_intr_t(void *);
37
38/*
39 * Hint on how long the next interrupt should be postponed. This is
40 * only used when the EVENT_IDX feature is negotiated.
41 */
42typedef enum {

--- 56 unchanged lines hidden ---