control.c (416ba5c74546f32a993436a99516d35008e9f384) control.c (3c790178c589358099085e42b6f45d3b26461666)
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

--- 131 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
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

--- 131 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 ---