summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/hyperv.h
diff options
context:
space:
mode:
authorK. Y. Srinivasan2011-05-13 04:34:25 +0200
committerGreg Kroah-Hartman2011-05-17 20:46:18 +0200
commit27b5b3ca6903675e8ad0a92562224fd0e185c43b (patch)
treede8ff0604879d8480686cffd6db8a30b6f1272e2 /drivers/staging/hv/hyperv.h
parentStaging: hv: Move the contents of vmbus_api.h to hyperv.h (diff)
downloadkernel-qcow2-linux-27b5b3ca6903675e8ad0a92562224fd0e185c43b.tar.gz
kernel-qcow2-linux-27b5b3ca6903675e8ad0a92562224fd0e185c43b.tar.xz
kernel-qcow2-linux-27b5b3ca6903675e8ad0a92562224fd0e185c43b.zip
Staging: hv: Move the contents of vmbus.h to hyperv.h
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>
Diffstat (limited to 'drivers/staging/hv/hyperv.h')
-rw-r--r--drivers/staging/hv/hyperv.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/staging/hv/hyperv.h b/drivers/staging/hv/hyperv.h
index 10042b056b55..b6f500670f5a 100644
--- a/drivers/staging/hv/hyperv.h
+++ b/drivers/staging/hv/hyperv.h
@@ -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 */