Staging: hv: Move the contents of vmbus_api.h to hyperv.h
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 13 May 2011 02:34:24 +0000 (19:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 May 2011 18:46:17 +0000 (11:46 -0700)
Move the contents of vmbus_api.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/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/storvsc_api.h
drivers/staging/hv/vmbus.h
drivers/staging/hv/vmbus_api.h [deleted file]
drivers/staging/hv/vmbus_private.h

index 237a42dd22659ffbe3c0a048e12611426a278de0..2595627d38cd9d83a982c3daf60ece9dce20103f 100644 (file)
@@ -31,7 +31,6 @@
 #include "hv_api.h"
 #include "vmbus.h"
 #include "vmbus_private.h"
-#include "vmbus_api.h"
 #include "utils.h"
 #include "hv_kvp.h"
 
index fbe3536996a9bad238eda048391cc78c7a1fd92f..82cc6850019c513424fbe18baf3922cb38717f61 100644 (file)
@@ -29,7 +29,6 @@
 #include "hyperv.h"
 #include "hv_api.h"
 #include "vmbus.h"
-#include "vmbus_api.h"
 
 
 /*
index 2e2ea5d29f20ed634ce54e220f7990d865af9907..f08f799e61cffe47ed5ce07ac71673e20c731749 100644 (file)
@@ -33,7 +33,6 @@
 #include "hv_api.h"
 #include "vmbus.h"
 #include "vmbus_private.h"
-#include "vmbus_api.h"
 #include "utils.h"
 #include "hv_kvp.h"
 
index a596039d02ab8a50018764897a48b262ddaab77d..10042b056b558ada181b45b2047622aec7c158ba 100644 (file)
@@ -757,4 +757,69 @@ extern unsigned int vmbus_loglevel;
                       __func__, ## args);\
        } while (0)
 
+
+
+#include <linux/device.h>
+#include <linux/workqueue.h>
+
+struct hv_driver;
+struct hv_device;
+
+struct hv_dev_port_info {
+       u32 int_mask;
+       u32 read_idx;
+       u32 write_idx;
+       u32 bytes_avail_toread;
+       u32 bytes_avail_towrite;
+};
+
+struct hv_device_info {
+       u32 chn_id;
+       u32 chn_state;
+       struct hv_guid chn_type;
+       struct hv_guid chn_instance;
+
+       u32 monitor_id;
+       u32 server_monitor_pending;
+       u32 server_monitor_latency;
+       u32 server_monitor_conn_id;
+       u32 client_monitor_pending;
+       u32 client_monitor_latency;
+       u32 client_monitor_conn_id;
+
+       struct hv_dev_port_info inbound;
+       struct hv_dev_port_info outbound;
+};
+
+/* Base driver object */
+struct hv_driver {
+       const char *name;
+
+       /* the device type supported by this driver */
+       struct hv_guid dev_type;
+
+       struct device_driver driver;
+
+       int (*probe)(struct hv_device *);
+       int (*remove)(struct hv_device *);
+       void (*shutdown)(struct hv_device *);
+
+};
+
+/* Base device object */
+struct hv_device {
+       /* the device type id of this device */
+       struct hv_guid dev_type;
+
+       /* the device instance id of this device */
+       struct hv_guid dev_instance;
+
+       struct device device;
+
+       struct vmbus_channel *channel;
+
+       /* Device extension; */
+       void *ext;
+};
+
 #endif /* _HYPERV_H */
index b385c9d2afd1c143422193b172267dbbc96ea4d9..4689503b0c8b0fef0aa4571ad44b3754bbe276a2 100644 (file)
@@ -25,7 +25,7 @@
 #ifndef _NETVSC_API_H_
 #define _NETVSC_API_H_
 
-#include "vmbus_api.h"
+#include "hyperv.h"
 #include "vmbus.h"
 
 /* Fwd declaration */
index b163515853de4055b46192e05289806cb4e1db10..310712d3f4ba1f61c212d8c324f5b52975764596 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/kernel.h>
 #include <linux/wait.h>
 #include "vstorage.h"
-#include "vmbus_api.h"
+#include "hyperv.h"
 #include "vmbus.h"
 
 /* Defines */
index 73087f26bec2684dca5b694482ea5c2fae2b86ce..81029fd116174b359dfe6450c185427a41f8913a 100644 (file)
@@ -26,7 +26,7 @@
 #define _VMBUS_H_
 
 #include <linux/device.h>
-#include "vmbus_api.h"
+#include "hyperv.h"
 
 
 
diff --git a/drivers/staging/hv/vmbus_api.h b/drivers/staging/hv/vmbus_api.h
deleted file mode 100644 (file)
index a66ae84..0000000
+++ /dev/null
@@ -1,91 +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_API_H_
-#define _VMBUS_API_H_
-
-#include <linux/device.h>
-#include <linux/workqueue.h>
-
-struct hv_driver;
-struct hv_device;
-
-struct hv_dev_port_info {
-       u32 int_mask;
-       u32 read_idx;
-       u32 write_idx;
-       u32 bytes_avail_toread;
-       u32 bytes_avail_towrite;
-};
-
-struct hv_device_info {
-       u32 chn_id;
-       u32 chn_state;
-       struct hv_guid chn_type;
-       struct hv_guid chn_instance;
-
-       u32 monitor_id;
-       u32 server_monitor_pending;
-       u32 server_monitor_latency;
-       u32 server_monitor_conn_id;
-       u32 client_monitor_pending;
-       u32 client_monitor_latency;
-       u32 client_monitor_conn_id;
-
-       struct hv_dev_port_info inbound;
-       struct hv_dev_port_info outbound;
-};
-
-/* Base driver object */
-struct hv_driver {
-       const char *name;
-
-       /* the device type supported by this driver */
-       struct hv_guid dev_type;
-
-       struct device_driver driver;
-
-       int (*probe)(struct hv_device *);
-       int (*remove)(struct hv_device *);
-       void (*shutdown)(struct hv_device *);
-
-};
-
-/* Base device object */
-struct hv_device {
-       /* the device type id of this device */
-       struct hv_guid dev_type;
-
-       /* the device instance id of this device */
-       struct hv_guid dev_instance;
-
-       struct device device;
-
-       struct vmbus_channel *channel;
-
-       /* Device extension; */
-       void *ext;
-};
-
-#endif /* _VMBUS_API_H_ */
index 527001bf34d07b3144c616b9a8e596b5d5c4132b..f62caf90f5624a7123a76ff87c019ef68418074b 100644 (file)
@@ -26,7 +26,7 @@
 #define _VMBUS_PRIVATE_H_
 
 #include "hv.h"
-#include "vmbus_api.h"
+#include "hyperv.h"
 #include "ring_buffer.h"
 #include <linux/list.h>
 #include <asm/sync_bitops.h>