diff options
author | 2017-04-25 03:31:15 -0700 | |
---|---|---|
committer | 2017-05-22 06:48:08 +0000 | |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/include/hw/hotplug.h | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to
kvmfornfv repo and make use of the updated latest qemu for the
execution of all testcase
Change-Id: I1280af507a857675c7f81d30c95255635667bdd7
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/include/hw/hotplug.h')
-rw-r--r-- | qemu/include/hw/hotplug.h | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/qemu/include/hw/hotplug.h b/qemu/include/hw/hotplug.h deleted file mode 100644 index da1d0e4ab..000000000 --- a/qemu/include/hw/hotplug.h +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Hotplug handler interface. - * - * Copyright (c) 2014 Red Hat Inc. - * - * Authors: - * Igor Mammedov <imammedo@redhat.com>, - * - * This work is licensed under the terms of the GNU GPL, version 2 or later. - * See the COPYING file in the top-level directory. - */ -#ifndef HOTPLUG_H -#define HOTPLUG_H - -#include "qom/object.h" - -#define TYPE_HOTPLUG_HANDLER "hotplug-handler" - -#define HOTPLUG_HANDLER_CLASS(klass) \ - OBJECT_CLASS_CHECK(HotplugHandlerClass, (klass), TYPE_HOTPLUG_HANDLER) -#define HOTPLUG_HANDLER_GET_CLASS(obj) \ - OBJECT_GET_CLASS(HotplugHandlerClass, (obj), TYPE_HOTPLUG_HANDLER) -#define HOTPLUG_HANDLER(obj) \ - INTERFACE_CHECK(HotplugHandler, (obj), TYPE_HOTPLUG_HANDLER) - - -typedef struct HotplugHandler { - /* <private> */ - Object Parent; -} HotplugHandler; - -/** - * hotplug_fn: - * @plug_handler: a device performing plug/uplug action - * @plugged_dev: a device that has been (un)plugged - * @errp: returns an error if this function fails - */ -typedef void (*hotplug_fn)(HotplugHandler *plug_handler, - DeviceState *plugged_dev, Error **errp); - -/** - * HotplugDeviceClass: - * - * Interface to be implemented by a device performing - * hardware (un)plug functions. - * - * @parent: Opaque parent interface. - * @plug: plug callback. - * @unplug_request: unplug request callback. - * Used as a means to initiate device unplug for devices that - * require asynchronous unplug handling. - * @unplug: unplug callback. - * Used for device removal with devices that implement - * asynchronous and synchronous (surprise) removal. - */ -typedef struct HotplugHandlerClass { - /* <private> */ - InterfaceClass parent; - - /* <public> */ - hotplug_fn plug; - hotplug_fn unplug_request; - hotplug_fn unplug; -} HotplugHandlerClass; - -/** - * hotplug_handler_plug: - * - * Call #HotplugHandlerClass.plug callback of @plug_handler. - */ -void hotplug_handler_plug(HotplugHandler *plug_handler, - DeviceState *plugged_dev, - Error **errp); - -/** - * hotplug_handler_unplug_request: - * - * Calls #HotplugHandlerClass.unplug_request callback of @plug_handler. - */ -void hotplug_handler_unplug_request(HotplugHandler *plug_handler, - DeviceState *plugged_dev, - Error **errp); -/** - * hotplug_handler_unplug: - * - * Calls #HotplugHandlerClass.unplug callback of @plug_handler. - */ -void hotplug_handler_unplug(HotplugHandler *plug_handler, - DeviceState *plugged_dev, - Error **errp); -#endif |