virtio.c (330449) | virtio.c (336161) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2013 Chris Torek <torek @ torek net> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2013 Chris Torek <torek @ torek net> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: stable/11/usr.sbin/bhyve/virtio.c 330449 2018-03-05 07:26:05Z eadler $"); | 30__FBSDID("$FreeBSD: stable/11/usr.sbin/bhyve/virtio.c 336161 2018-07-10 04:26:32Z araujo $"); |
31 32#include <sys/param.h> 33#include <sys/uio.h> 34 35#include <stdio.h> 36#include <stdint.h> 37#include <pthread.h> 38#include <pthread_np.h> --- 7 unchanged lines hidden (view full) --- 46 * defined by <https://www.google.com/#output=search&q=virtio+spec> 47 */ 48 49/* 50 * In case we decide to relax the "virtio softc comes at the 51 * front of virtio-based device softc" constraint, let's use 52 * this to convert. 53 */ | 31 32#include <sys/param.h> 33#include <sys/uio.h> 34 35#include <stdio.h> 36#include <stdint.h> 37#include <pthread.h> 38#include <pthread_np.h> --- 7 unchanged lines hidden (view full) --- 46 * defined by <https://www.google.com/#output=search&q=virtio+spec> 47 */ 48 49/* 50 * In case we decide to relax the "virtio softc comes at the 51 * front of virtio-based device softc" constraint, let's use 52 * this to convert. 53 */ |
54#define DEV_SOFTC(vs) ((void *)(vs)) | 54#define DEV_SOFTC(vs) ((void *)(vs)) |
55 56/* 57 * Link a virtio_softc to its constants, the device softc, and 58 * the PCI emulation. 59 */ 60void 61vi_softc_linkup(struct virtio_softc *vs, struct virtio_consts *vc, 62 void *dev_softc, struct pci_devinst *pi, --- 717 unchanged lines hidden --- | 55 56/* 57 * Link a virtio_softc to its constants, the device softc, and 58 * the PCI emulation. 59 */ 60void 61vi_softc_linkup(struct virtio_softc *vs, struct virtio_consts *vc, 62 void *dev_softc, struct pci_devinst *pi, --- 717 unchanged lines hidden --- |