Staging: hv: move vmbus.h
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 19 Aug 2009 23:21:28 +0000 (16:21 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:57 +0000 (12:01 -0700)
This moves vmbus.h from the include/ subdirectory.  It doesn't
belong there.

No code changes happened here.

Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/blkvsc_drv.c
drivers/staging/hv/include/vmbus.h [deleted file]
drivers/staging/hv/netvsc_drv.c
drivers/staging/hv/storvsc_drv.c
drivers/staging/hv/vmbus.h [new file with mode: 0644]
drivers/staging/hv/vmbus_drv.c

index c64ac893076f1752740cb31a4779351a91545f43..f91fa431b7c54792e963e53648823c73d47e8510 100644 (file)
@@ -35,7 +35,7 @@
 
 #include "osd.h"
 #include "include/logging.h"
-#include "include/vmbus.h"
+#include "vmbus.h"
 
 #include "include/StorVscApi.h"
 
diff --git a/drivers/staging/hv/include/vmbus.h b/drivers/staging/hv/include/vmbus.h
deleted file mode 100644 (file)
index 2ea6ce0..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- *
- * Copyright (c) 2009, Microsoft Corporation.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place - Suite 330, Boston, MA 02111-1307 USA.
- *
- * Authors:
- *   Haiyang Zhang <haiyangz@microsoft.com>
- *   Hank Janssen  <hjanssen@microsoft.com>
- *
- */
-
-
-#ifndef _VMBUS_H_
-#define _VMBUS_H_
-
-#include <linux/device.h>
-
-#include "VmbusApi.h"
-
-
-/* Data types */
-
-
-typedef int (*PFN_DRIVERINITIALIZE)(struct hv_driver *drv);
-typedef int (*PFN_DRIVEREXIT)(struct hv_driver *drv);
-
-struct driver_context {
-       struct hv_guid class_id;
-
-       struct device_driver    driver;
-
-       /* Use these methods instead of the struct device_driver so 2.6 kernel stops complaining */
-       int (*probe)(struct device *);
-       int (*remove)(struct device *);
-       void (*shutdown)(struct device *);
-};
-
-struct device_context {
-       struct work_struct              probe_failed_work_item;
-       struct hv_guid class_id;
-       struct hv_guid device_id;
-       int                                             probe_error;
-       struct device                   device;
-       struct hv_device device_obj;
-};
-
-
-
-/* Global */
-
-
-
-/* Inlines */
-
-static inline struct device_context *to_device_context(struct hv_device *device_obj)
-{
-       return container_of(device_obj, struct device_context, device_obj);
-}
-
-static inline struct device_context *device_to_device_context(struct device *device)
-{
-       return container_of(device, struct device_context, device);
-}
-
-static inline struct driver_context *driver_to_driver_context(struct device_driver *driver)
-{
-       return container_of(driver, struct driver_context, driver);
-}
-
-
-/* Vmbus interface */
-
-int vmbus_child_driver_register(
-       struct driver_context* driver_ctx
-       );
-
-void
-vmbus_child_driver_unregister(
-       struct driver_context *driver_ctx
-       );
-
-void
-vmbus_get_interface(
-       VMBUS_CHANNEL_INTERFACE *interface
-       );
-
-#endif /* _VMBUS_H_ */
index e847cb6c266c94c4660f10be4947d2e20045e9f6..9ea61b281ef41601d47d6e0cec95b5c07e756be4 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "osd.h"
 #include "include/logging.h"
-#include "include/vmbus.h"
+#include "vmbus.h"
 
 #include "include/NetVscApi.h"
 
index 4574f2b848bb675c0c4e8b112e97a3eb7ce1309e..a3d591dac046475d11d4309f911924330dc3c52e 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "osd.h"
 #include "include/logging.h"
-#include "include/vmbus.h"
+#include "vmbus.h"
 #include "include/StorVscApi.h"
 
 
diff --git a/drivers/staging/hv/vmbus.h b/drivers/staging/hv/vmbus.h
new file mode 100644 (file)
index 0000000..44a784c
--- /dev/null
@@ -0,0 +1,99 @@
+/*
+ *
+ * Copyright (c) 2009, Microsoft Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ * Place - Suite 330, Boston, MA 02111-1307 USA.
+ *
+ * Authors:
+ *   Haiyang Zhang <haiyangz@microsoft.com>
+ *   Hank Janssen  <hjanssen@microsoft.com>
+ *
+ */
+
+
+#ifndef _VMBUS_H_
+#define _VMBUS_H_
+
+#include <linux/device.h>
+
+#include "include/VmbusApi.h"
+
+
+/* Data types */
+
+
+typedef int (*PFN_DRIVERINITIALIZE)(struct hv_driver *drv);
+typedef int (*PFN_DRIVEREXIT)(struct hv_driver *drv);
+
+struct driver_context {
+       struct hv_guid class_id;
+
+       struct device_driver    driver;
+
+       /* Use these methods instead of the struct device_driver so 2.6 kernel stops complaining */
+       int (*probe)(struct device *);
+       int (*remove)(struct device *);
+       void (*shutdown)(struct device *);
+};
+
+struct device_context {
+       struct work_struct              probe_failed_work_item;
+       struct hv_guid class_id;
+       struct hv_guid device_id;
+       int                                             probe_error;
+       struct device                   device;
+       struct hv_device device_obj;
+};
+
+
+
+/* Global */
+
+
+
+/* Inlines */
+
+static inline struct device_context *to_device_context(struct hv_device *device_obj)
+{
+       return container_of(device_obj, struct device_context, device_obj);
+}
+
+static inline struct device_context *device_to_device_context(struct device *device)
+{
+       return container_of(device, struct device_context, device);
+}
+
+static inline struct driver_context *driver_to_driver_context(struct device_driver *driver)
+{
+       return container_of(driver, struct driver_context, driver);
+}
+
+
+/* Vmbus interface */
+
+int vmbus_child_driver_register(
+       struct driver_context* driver_ctx
+       );
+
+void
+vmbus_child_driver_unregister(
+       struct driver_context *driver_ctx
+       );
+
+void
+vmbus_get_interface(
+       VMBUS_CHANNEL_INTERFACE *interface
+       );
+
+#endif /* _VMBUS_H_ */
index 5268b51347e66c2c8a0930358c1987ad82c19249..1700dd3be81188f182fa09b59b94f2d6c9efed3c 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/sysctl.h>
 #include "osd.h"
 #include "include/logging.h"
-#include "include/vmbus.h"
+#include "vmbus.h"
 
 
 /* Defines */