hyperv.h (272152) | hyperv.h (272322) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 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 * | 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 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 * $FreeBSD: stable/10/sys/dev/hyperv/include/hyperv.h 272152 2014-09-26 03:03:58Z gjb $ | 28 * $FreeBSD: stable/10/sys/dev/hyperv/include/hyperv.h 272322 2014-09-30 17:54:57Z delphij $ |
29 */ 30 31/** 32 * HyperV definitions for messages that are sent between instances of the 33 * Channel Management Library in separate partitions, or in some cases, 34 * back to itself. 35 */ 36 --- 753 unchanged lines hidden (view full) --- 790static inline unsigned long 791hv_get_phys_addr(void *virt) 792{ 793 unsigned long ret; 794 ret = (vtophys(virt) | ((vm_offset_t) virt & PAGE_MASK)); 795 return (ret); 796} 797 | 29 */ 30 31/** 32 * HyperV definitions for messages that are sent between instances of the 33 * Channel Management Library in separate partitions, or in some cases, 34 * back to itself. 35 */ 36 --- 753 unchanged lines hidden (view full) --- 790static inline unsigned long 791hv_get_phys_addr(void *virt) 792{ 793 unsigned long ret; 794 ret = (vtophys(virt) | ((vm_offset_t) virt & PAGE_MASK)); 795 return (ret); 796} 797 |
798 799/** 800 * KVP related structures 801 * 802 */ 803typedef struct hv_vmbus_service { 804 hv_guid guid; /* Hyper-V GUID */ 805 char *name; /* name of service */ 806 boolean_t enabled; /* service enabled */ 807 hv_work_queue *work_queue; /* background work queue */ 808 809 /* 810 * function to initialize service 811 */ 812 int (*init)(struct hv_vmbus_service *); 813 814 /* 815 * function to process Hyper-V messages 816 */ 817 void (*callback)(void *); 818} hv_vmbus_service; 819 820extern uint8_t* receive_buffer[]; 821extern hv_vmbus_service service_table[]; 822 823void hv_kvp_callback(void *context); 824int hv_kvp_init(hv_vmbus_service *serv); 825void hv_kvp_deinit(void); 826 |
|
798#endif /* __HYPERV_H__ */ 799 | 827#endif /* __HYPERV_H__ */ 828 |