Deleted Added
full compact
if_vtnet.c (228301) if_vtnet.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 VirtIO network devices. */
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 VirtIO network devices. */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/virtio/network/if_vtnet.c 228301 2011-12-06 06:28:32Z grehan $");
30__FBSDID("$FreeBSD: head/sys/dev/virtio/network/if_vtnet.c 234270 2012-04-14 05:48:04Z grehan $");
31
32#ifdef HAVE_KERNEL_OPTION_HEADERS
33#include "opt_device_polling.h"
34#endif
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/kernel.h>

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

218 DEVMETHOD(device_detach, vtnet_detach),
219 DEVMETHOD(device_suspend, vtnet_suspend),
220 DEVMETHOD(device_resume, vtnet_resume),
221 DEVMETHOD(device_shutdown, vtnet_shutdown),
222
223 /* VirtIO methods. */
224 DEVMETHOD(virtio_config_change, vtnet_config_change),
225
31
32#ifdef HAVE_KERNEL_OPTION_HEADERS
33#include "opt_device_polling.h"
34#endif
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/kernel.h>

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

218 DEVMETHOD(device_detach, vtnet_detach),
219 DEVMETHOD(device_suspend, vtnet_suspend),
220 DEVMETHOD(device_resume, vtnet_resume),
221 DEVMETHOD(device_shutdown, vtnet_shutdown),
222
223 /* VirtIO methods. */
224 DEVMETHOD(virtio_config_change, vtnet_config_change),
225
226 { 0, 0 }
226 DEVMETHOD_END
227};
228
229static driver_t vtnet_driver = {
230 "vtnet",
231 vtnet_methods,
232 sizeof(struct vtnet_softc)
233};
234static devclass_t vtnet_devclass;

--- 2515 unchanged lines hidden ---
227};
228
229static driver_t vtnet_driver = {
230 "vtnet",
231 vtnet_methods,
232 sizeof(struct vtnet_softc)
233};
234static devclass_t vtnet_devclass;

--- 2515 unchanged lines hidden ---