Deleted Added
full compact
virtio_pci.h (256281) virtio_pci.h (268010)
1/*-
2 * Copyright IBM Corp. 2007
3 *
4 * Authors:
5 * Anthony Liguori <aliguori@us.ibm.com>
6 *
7 * This header is BSD licensed so anyone can use the definitions to implement
8 * compatible drivers/servers.

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
1/*-
2 * Copyright IBM Corp. 2007
3 *
4 * Authors:
5 * Anthony Liguori <aliguori@us.ibm.com>
6 *
7 * This header is BSD licensed so anyone can use the definitions to implement
8 * compatible drivers/servers.

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * $FreeBSD: stable/10/sys/dev/virtio/pci/virtio_pci.h 238360 2012-07-11 02:57:19Z grehan $
33 * $FreeBSD: stable/10/sys/dev/virtio/pci/virtio_pci.h 268010 2014-06-29 00:37:59Z bryanv $
34 */
35
36#ifndef _VIRTIO_PCI_H
37#define _VIRTIO_PCI_H
38
39/* VirtIO PCI vendor/device ID. */
40#define VIRTIO_PCI_VENDORID 0x1AF4
41#define VIRTIO_PCI_DEVICEID_MIN 0x1000

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

67#define VIRTIO_PCI_ISR_CONFIG 0x2
68/* Vector value used to disable MSI for queue. */
69#define VIRTIO_MSI_NO_VECTOR 0xFFFF
70
71/*
72 * The remaining space is defined by each driver as the per-driver
73 * configuration space.
74 */
34 */
35
36#ifndef _VIRTIO_PCI_H
37#define _VIRTIO_PCI_H
38
39/* VirtIO PCI vendor/device ID. */
40#define VIRTIO_PCI_VENDORID 0x1AF4
41#define VIRTIO_PCI_DEVICEID_MIN 0x1000

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

67#define VIRTIO_PCI_ISR_CONFIG 0x2
68/* Vector value used to disable MSI for queue. */
69#define VIRTIO_MSI_NO_VECTOR 0xFFFF
70
71/*
72 * The remaining space is defined by each driver as the per-driver
73 * configuration space.
74 */
75#define VIRTIO_PCI_CONFIG(sc) \
76 (((sc)->vtpci_flags & VTPCI_FLAG_MSIX) ? 24 : 20)
75#define VIRTIO_PCI_CONFIG_OFF(msix_enabled) ((msix_enabled) ? 24 : 20)
77
78/*
79 * How many bits to shift physical queue address written to QUEUE_PFN.
80 * 12 is historical, and due to x86 page size.
81 */
82#define VIRTIO_PCI_QUEUE_ADDR_SHIFT 12
83
84/* The alignment to use between consumer and producer parts of vring. */
85#define VIRTIO_PCI_VRING_ALIGN 4096
86
87#endif /* _VIRTIO_PCI_H */
76
77/*
78 * How many bits to shift physical queue address written to QUEUE_PFN.
79 * 12 is historical, and due to x86 page size.
80 */
81#define VIRTIO_PCI_QUEUE_ADDR_SHIFT 12
82
83/* The alignment to use between consumer and producer parts of vring. */
84#define VIRTIO_PCI_VRING_ALIGN 4096
85
86#endif /* _VIRTIO_PCI_H */