virtio.h (267312) | virtio.h (268010) |
---|---|
1/*- 2 * Copyright (c) 2014, 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) 2014, 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/virtio.h 267312 2014-06-10 03:23:35Z bryanv $ | 26 * $FreeBSD: stable/10/sys/dev/virtio/virtio.h 268010 2014-06-29 00:37:59Z bryanv $ |
27 */ 28 29#ifndef _VIRTIO_H_ 30#define _VIRTIO_H_ 31 32#include <dev/virtio/virtio_ids.h> | 27 */ 28 29#ifndef _VIRTIO_H_ 30#define _VIRTIO_H_ 31 32#include <dev/virtio/virtio_ids.h> |
33#include <dev/virtio/virtio_config.h> |
|
33 34struct vq_alloc_info; 35 36/* 37 * Each virtqueue indirect descriptor list must be physically contiguous. 38 * To allow us to malloc(9) each list individually, limit the number 39 * supported to what will fit in one page. With 4KB pages, this is a limit 40 * of 256 descriptors. If there is ever a need for more, we can switch to --- 103 unchanged lines hidden --- | 34 35struct vq_alloc_info; 36 37/* 38 * Each virtqueue indirect descriptor list must be physically contiguous. 39 * To allow us to malloc(9) each list individually, limit the number 40 * supported to what will fit in one page. With 4KB pages, this is a limit 41 * of 256 descriptors. If there is ever a need for more, we can switch to --- 103 unchanged lines hidden --- |