Skip to content

Commit

Permalink
Staging: hv: Move the contents of vmbus.h to hyperv.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 17, 2011
1 parent 35ea09c commit 27b5b3c
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 60 deletions.
1 change: 0 additions & 1 deletion drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "vmbus.h"
#include "storvsc_api.h"


Expand Down
1 change: 0 additions & 1 deletion drivers/staging/hv/hv_kvp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "vmbus.h"


/*
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/hv/hv_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
20 changes: 20 additions & 0 deletions drivers/staging/hv/hyperv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
1 change: 0 additions & 1 deletion drivers/staging/hv/netvsc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#define _NETVSC_API_H_

#include "hyperv.h"
#include "vmbus.h"

/* Fwd declaration */
struct hv_netvsc_packet;
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "vmbus.h"
#include "netvsc_api.h"

struct net_device_context {
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/hv/storvsc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "vmbus.h"
#include "storvsc_api.h"
#include "vstorage.h"

Expand Down
51 changes: 0 additions & 51 deletions drivers/staging/hv/vmbus.h

This file was deleted.

1 change: 0 additions & 1 deletion drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

#include "hyperv.h"
#include "hv_api.h"
#include "vmbus.h"
#include "vmbus_private.h"


Expand Down

0 comments on commit 27b5b3c

Please sign in to comment.