virtio_pci.c (232470) | virtio_pci.c (234270) |
---|---|
1/*- 2 * Copyright (c) 2011, Bryan Venteicher <bryanv@daemoninthecloset.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 --- 13 unchanged lines hidden (view full) --- 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 27/* Driver for the VirtIO PCI interface. */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2011, Bryan Venteicher <bryanv@daemoninthecloset.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 --- 13 unchanged lines hidden (view full) --- 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 27/* Driver for the VirtIO PCI interface. */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/dev/virtio/pci/virtio_pci.c 232470 2012-03-03 18:03:50Z jhb $"); | 30__FBSDID("$FreeBSD: head/sys/dev/virtio/pci/virtio_pci.c 234270 2012-04-14 05:48:04Z grehan $"); |
31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/bus.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/malloc.h> 38 --- 145 unchanged lines hidden (view full) --- 184 DEVMETHOD(virtio_bus_setup_intr, vtpci_setup_intr), 185 DEVMETHOD(virtio_bus_stop, vtpci_stop), 186 DEVMETHOD(virtio_bus_reinit, vtpci_reinit), 187 DEVMETHOD(virtio_bus_reinit_complete, vtpci_reinit_complete), 188 DEVMETHOD(virtio_bus_notify_vq, vtpci_notify_virtqueue), 189 DEVMETHOD(virtio_bus_read_device_config, vtpci_read_dev_config), 190 DEVMETHOD(virtio_bus_write_device_config, vtpci_write_dev_config), 191 | 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/bus.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/malloc.h> 38 --- 145 unchanged lines hidden (view full) --- 184 DEVMETHOD(virtio_bus_setup_intr, vtpci_setup_intr), 185 DEVMETHOD(virtio_bus_stop, vtpci_stop), 186 DEVMETHOD(virtio_bus_reinit, vtpci_reinit), 187 DEVMETHOD(virtio_bus_reinit_complete, vtpci_reinit_complete), 188 DEVMETHOD(virtio_bus_notify_vq, vtpci_notify_virtqueue), 189 DEVMETHOD(virtio_bus_read_device_config, vtpci_read_dev_config), 190 DEVMETHOD(virtio_bus_write_device_config, vtpci_write_dev_config), 191 |
192 { 0, 0 } | 192 DEVMETHOD_END |
193}; 194 195static driver_t vtpci_driver = { 196 "virtio_pci", 197 vtpci_methods, 198 sizeof(struct vtpci_softc) 199}; 200 --- 881 unchanged lines hidden --- | 193}; 194 195static driver_t vtpci_driver = { 196 "virtio_pci", 197 vtpci_methods, 198 sizeof(struct vtpci_softc) 199}; 200 --- 881 unchanged lines hidden --- |