Deleted Added
full compact
vmbus_et.c (300993) vmbus_et.c (300994)
1/*-
2 * Copyright (c) 2015,2016 Microsoft Corp.
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

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

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
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2015,2016 Microsoft Corp.
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

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

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
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/hyperv/vmbus/hv_et.c 300993 2016-05-30 09:35:36Z sephe $");
28__FBSDID("$FreeBSD: head/sys/dev/hyperv/vmbus/hv_et.c 300994 2016-05-30 09:44:17Z sephe $");
29
30#include <sys/param.h>
31#include <sys/bus.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34#include <sys/proc.h>
35#include <sys/systm.h>
36#include <sys/smp.h>

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

108 return;
109
110 device_add_child(parent, VMBUS_ET_NAME, -1);
111}
112
113static int
114vmbus_et_probe(device_t dev)
115{
29
30#include <sys/param.h>
31#include <sys/bus.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34#include <sys/proc.h>
35#include <sys/systm.h>
36#include <sys/smp.h>

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

108 return;
109
110 device_add_child(parent, VMBUS_ET_NAME, -1);
111}
112
113static int
114vmbus_et_probe(device_t dev)
115{
116 if (resource_disabled(VMBUS_ET_NAME, 0))
117 return (ENXIO);
118
116 device_set_desc(dev, "Hyper-V event timer");
117
118 return (BUS_PROBE_NOWILDCARD);
119}
120
121static void
122vmbus_et_config(void *arg __unused)
123{

--- 70 unchanged lines hidden ---
119 device_set_desc(dev, "Hyper-V event timer");
120
121 return (BUS_PROBE_NOWILDCARD);
122}
123
124static void
125vmbus_et_config(void *arg __unused)
126{

--- 70 unchanged lines hidden ---