]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: hv: Move the contents of vmbus.h to hyperv.h
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 13 May 2011 02:34:25 +0000 (19:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 May 2011 18:46:18 +0000 (11:46 -0700)
Move the contents of vmbus.h to hyperv.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/blkvsc_drv.c
drivers/staging/hv/hv_kvp.c
drivers/staging/hv/hv_mouse.c
drivers/staging/hv/hv_util.c
drivers/staging/hv/hyperv.h
drivers/staging/hv/netvsc_api.h
drivers/staging/hv/netvsc_drv.c
drivers/staging/hv/storvsc_api.h
drivers/staging/hv/storvsc_drv.c
drivers/staging/hv/vmbus.h [deleted file]
drivers/staging/hv/vmbus_drv.c

index 5059e448ca6cb336d3cb8d8769f5b70a91e507d9..44de4887e85c9ee5ffbfc2511eee64c093dbeb41 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "hyperv.h"
 #include "hv_api.h"
-#include "vmbus.h"
 #include "storvsc_api.h"
 
 
index 2595627d38cd9d83a982c3daf60ece9dce20103f..fd07dbc81c4fd7ed58e70b60ec276f9d5275a3b0 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "hyperv.h"
 #include "hv_api.h"
-#include "vmbus.h"
 #include "vmbus_private.h"
 #include "utils.h"
 #include "hv_kvp.h"
index 82cc6850019c513424fbe18baf3922cb38717f61..68bb8d2529611f8670ca9b483b650374909e9959 100644 (file)
@@ -28,7 +28,6 @@
 
 #include "hyperv.h"
 #include "hv_api.h"
-#include "vmbus.h"
 
 
 /*
index f08f799e61cffe47ed5ce07ac71673e20c731749..d1f78145252d8813902a069b3137eef798341b12 100644 (file)
@@ -31,7 +31,6 @@
 
 #include "hyperv.h"
 #include "hv_api.h"
-#include "vmbus.h"
 #include "vmbus_private.h"
 #include "utils.h"
 #include "hv_kvp.h"
index 10042b056b558ada181b45b2047622aec7c158ba..b6f500670f5acb914f3272cd3938b81e8235a127 100644 (file)
@@ -822,4 +822,24 @@ struct hv_device {
        void *ext;
 };
 
+#include <linux/device.h>
+
+
+static inline struct hv_device *device_to_hv_device(struct device *d)
+{
+       return container_of(d, struct hv_device, device);
+}
+
+static inline struct hv_driver *drv_to_hv_drv(struct device_driver *d)
+{
+       return container_of(d, struct hv_driver, driver);
+}
+
+
+/* Vmbus interface */
+int vmbus_child_driver_register(struct device_driver *drv);
+void vmbus_child_driver_unregister(struct device_driver *drv);
+
+extern struct completion hv_channel_ready;
+
 #endif /* _HYPERV_H */
index 4689503b0c8b0fef0aa4571ad44b3754bbe276a2..ce4c8d2bf291f0d79ea6d0064dd642fac0cde202 100644 (file)
@@ -26,7 +26,6 @@
 #define _NETVSC_API_H_
 
 #include "hyperv.h"
-#include "vmbus.h"
 
 /* Fwd declaration */
 struct hv_netvsc_packet;
index 6f4aeebcc82438f0f06ad3a26a36181b57945e3b..b732d06d706faf1f8145acd0d8d9233b11faaf79 100644 (file)
@@ -41,7 +41,6 @@
 
 #include "hyperv.h"
 #include "hv_api.h"
-#include "vmbus.h"
 #include "netvsc_api.h"
 
 struct net_device_context {
index 310712d3f4ba1f61c212d8c324f5b52975764596..394f7e25cd325a224e08fc66127cab3ac078f267 100644 (file)
@@ -29,7 +29,6 @@
 #include <linux/wait.h>
 #include "vstorage.h"
 #include "hyperv.h"
-#include "vmbus.h"
 
 /* Defines */
 #define STORVSC_RING_BUFFER_SIZE                       (20*PAGE_SIZE)
index 852cf632c6883e75434807f4de60c810506b8964..0a3035bc3a2a066f23d5ca650f4b2550cf559f48 100644 (file)
@@ -35,7 +35,6 @@
 
 #include "hyperv.h"
 #include "hv_api.h"
-#include "vmbus.h"
 #include "storvsc_api.h"
 #include "vstorage.h"
 
diff --git a/drivers/staging/hv/vmbus.h b/drivers/staging/hv/vmbus.h
deleted file mode 100644 (file)
index 81029fd..0000000
+++ /dev/null
@@ -1,51 +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 "hyperv.h"
-
-
-
-
-static inline struct hv_device *device_to_hv_device(struct device *d)
-{
-       return container_of(d, struct hv_device, device);
-}
-
-static inline struct hv_driver *drv_to_hv_drv(struct device_driver *d)
-{
-       return container_of(d, struct hv_driver, driver);
-}
-
-
-/* Vmbus interface */
-int vmbus_child_driver_register(struct device_driver *drv);
-void vmbus_child_driver_unregister(struct device_driver *drv);
-
-extern struct completion hv_channel_ready;
-
-#endif /* _VMBUS_H_ */
index 935fab3a8940cb120316bb8f8b971b84a15b6dd3..042e6df512422a14f5b8539556cf04d4927e86f2 100644 (file)
@@ -37,7 +37,6 @@
 
 #include "hyperv.h"
 #include "hv_api.h"
-#include "vmbus.h"
 #include "vmbus_private.h"