Deleted Added
full compact
hv_channel.c (255524) hv_channel.c (256276)
1/*-
2 * Copyright (c) 2009-2012 Microsoft Corp.
3 * Copyright (c) 2012 NetApp Inc.
4 * Copyright (c) 2012 Citrix Inc.
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

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

21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
1/*-
2 * Copyright (c) 2009-2012 Microsoft Corp.
3 * Copyright (c) 2012 NetApp Inc.
4 * Copyright (c) 2012 Citrix Inc.
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

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

21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/hyperv/vmbus/hv_channel.c 256276 2013-10-10 16:25:53Z dim $");
31
29#include <sys/param.h>
30#include <sys/malloc.h>
31#include <sys/systm.h>
32#include <sys/mbuf.h>
33#include <sys/lock.h>
34#include <sys/mutex.h>
35#include <machine/bus.h>
36#include <vm/vm.h>

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

65
66 monitor_page = (hv_vmbus_monitor_page *)
67 hv_vmbus_g_connection.monitor_pages;
68
69 monitor_page++; /* Get the child to parent monitor page */
70
71 synch_set_bit(channel->monitor_bit,
72 (uint32_t *)&monitor_page->
32#include <sys/param.h>
33#include <sys/malloc.h>
34#include <sys/systm.h>
35#include <sys/mbuf.h>
36#include <sys/lock.h>
37#include <sys/mutex.h>
38#include <machine/bus.h>
39#include <vm/vm.h>

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

68
69 monitor_page = (hv_vmbus_monitor_page *)
70 hv_vmbus_g_connection.monitor_pages;
71
72 monitor_page++; /* Get the child to parent monitor page */
73
74 synch_set_bit(channel->monitor_bit,
75 (uint32_t *)&monitor_page->
73 trigger_group[channel->monitor_group].pending);
76 trigger_group[channel->monitor_group].u.pending);
74 } else {
75 hv_vmbus_set_event(channel->offer_msg.child_rel_id);
76 }
77
78}
79
80/**
81 * @brief Open the specified channel

--- 761 unchanged lines hidden ---
77 } else {
78 hv_vmbus_set_event(channel->offer_msg.child_rel_id);
79 }
80
81}
82
83/**
84 * @brief Open the specified channel

--- 761 unchanged lines hidden ---