virtio.h (270159) | virtio.h (271685) |
---|---|
1/*- 2 * Copyright (c) 2013 Chris Torek <torek @ torek net> 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 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2013 Chris Torek <torek @ torek net> 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 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: stable/10/usr.sbin/bhyve/virtio.h 270159 2014-08-19 01:20:24Z grehan $ | 26 * $FreeBSD: stable/10/usr.sbin/bhyve/virtio.h 271685 2014-09-16 19:08:54Z grehan $ |
27 */ 28 29#ifndef _VIRTIO_H_ 30#define _VIRTIO_H_ 31 32/* 33 * These are derived from several virtio specifications. 34 * --- 312 unchanged lines hidden (view full) --- 347 size_t vc_cfgsize; /* size of dev-specific config regs */ 348 void (*vc_reset)(void *); /* called on virtual device reset */ 349 void (*vc_qnotify)(void *, struct vqueue_info *); 350 /* called on QNOTIFY if no VQ notify */ 351 int (*vc_cfgread)(void *, int, int, uint32_t *); 352 /* called to read config regs */ 353 int (*vc_cfgwrite)(void *, int, int, uint32_t); 354 /* called to write config regs */ | 27 */ 28 29#ifndef _VIRTIO_H_ 30#define _VIRTIO_H_ 31 32/* 33 * These are derived from several virtio specifications. 34 * --- 312 unchanged lines hidden (view full) --- 347 size_t vc_cfgsize; /* size of dev-specific config regs */ 348 void (*vc_reset)(void *); /* called on virtual device reset */ 349 void (*vc_qnotify)(void *, struct vqueue_info *); 350 /* called on QNOTIFY if no VQ notify */ 351 int (*vc_cfgread)(void *, int, int, uint32_t *); 352 /* called to read config regs */ 353 int (*vc_cfgwrite)(void *, int, int, uint32_t); 354 /* called to write config regs */ |
355 void (*vc_apply_features)(void *, uint64_t); 356 /* called to apply negotiated features */ |
|
355 uint64_t vc_hv_caps; /* hypervisor-provided capabilities */ 356}; 357 358/* 359 * Data structure allocated (statically) per virtual queue. 360 * 361 * Drivers may change vq_qsize after a reset. When the guest OS 362 * requests a device reset, the hypervisor first calls --- 113 unchanged lines hidden --- | 357 uint64_t vc_hv_caps; /* hypervisor-provided capabilities */ 358}; 359 360/* 361 * Data structure allocated (statically) per virtual queue. 362 * 363 * Drivers may change vq_qsize after a reset. When the guest OS 364 * requests a device reset, the hypervisor first calls --- 113 unchanged lines hidden --- |