control.c (282274) | control.c (286372) |
---|---|
1/*- 2 * Copyright (c) 2010 Justin T. Gibbs, Spectra Logic Corporation 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 --- 75 unchanged lines hidden (view full) --- 84 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 85 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 86 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 87 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 88 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 89 * SUCH DAMAGE. 90 */ 91#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2010 Justin T. Gibbs, Spectra Logic Corporation 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 --- 75 unchanged lines hidden (view full) --- 84 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 85 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 86 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 87 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 88 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 89 * SUCH DAMAGE. 90 */ 91#include <sys/cdefs.h> |
92__FBSDID("$FreeBSD: head/sys/dev/xen/control/control.c 282274 2015-04-30 15:48:48Z jhb $"); | 92__FBSDID("$FreeBSD: head/sys/dev/xen/control/control.c 286372 2015-08-06 17:07:21Z jhb $"); |
93 94/** 95 * \file control.c 96 * 97 * \brief Device driver to repond to control domain events that impact 98 * this VM. 99 */ 100 --- 39 unchanged lines hidden (view full) --- 140 141#include <xen/hvm.h> 142 143#include <xen/interface/event_channel.h> 144#include <xen/interface/grant_table.h> 145 146#include <xen/xenbus/xenbusvar.h> 147 | 93 94/** 95 * \file control.c 96 * 97 * \brief Device driver to repond to control domain events that impact 98 * this VM. 99 */ 100 --- 39 unchanged lines hidden (view full) --- 140 141#include <xen/hvm.h> 142 143#include <xen/interface/event_channel.h> 144#include <xen/interface/grant_table.h> 145 146#include <xen/xenbus/xenbusvar.h> 147 |
148#include <machine/xen/xenvar.h> 149#include <machine/xen/xenfunc.h> 150 | |
151/*--------------------------- Forward Declarations --------------------------*/ 152/** Function signature for shutdown event handlers. */ 153typedef void (xctrl_shutdown_handler_t)(void); 154 155static xctrl_shutdown_handler_t xctrl_poweroff; 156static xctrl_shutdown_handler_t xctrl_reboot; 157static xctrl_shutdown_handler_t xctrl_suspend; 158static xctrl_shutdown_handler_t xctrl_crash; --- 279 unchanged lines hidden --- | 148/*--------------------------- Forward Declarations --------------------------*/ 149/** Function signature for shutdown event handlers. */ 150typedef void (xctrl_shutdown_handler_t)(void); 151 152static xctrl_shutdown_handler_t xctrl_poweroff; 153static xctrl_shutdown_handler_t xctrl_reboot; 154static xctrl_shutdown_handler_t xctrl_suspend; 155static xctrl_shutdown_handler_t xctrl_crash; --- 279 unchanged lines hidden --- |