Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259465
b: refs/heads/master
c: 7d7c75c
h: refs/heads/master
i:
  259463: a7a2738
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent cb182d2 commit 75f9069
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 40 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f27df643d045c146f3233b67ad7d161d1aa1e730
refs/heads/master: 7d7c75cd47e3850ad256c048f6e35e4a5cf8e1fd
77 changes: 38 additions & 39 deletions trunk/drivers/staging/hv/hyperv.h
Original file line number Diff line number Diff line change
Expand Up @@ -523,45 +523,6 @@ enum vmbus_channel_state {
CHANNEL_OPEN_STATE,
};

struct vmbus_channel {
struct list_head listentry;

struct hv_device *device_obj;

struct work_struct work;

enum vmbus_channel_state state;
/*
* For util channels, stash the
* the service index for easy access.
*/
s8 util_index;

struct vmbus_channel_offer_channel offermsg;
/*
* These are based on the OfferMsg.MonitorId.
* Save it here for easy access.
*/
u8 monitor_grp;
u8 monitor_bit;

u32 ringbuffer_gpadlhandle;

/* Allocated memory for ring buffer */
void *ringbuffer_pages;
u32 ringbuffer_pagecount;
struct hv_ring_buffer_info outbound; /* send to parent */
struct hv_ring_buffer_info inbound; /* receive from parent */
spinlock_t inbound_lock;
struct workqueue_struct *controlwq;

/* Channel callback are invoked in this workqueue context */
/* HANDLE dataWorkQueue; */

void (*onchannel_callback)(void *context);
void *channel_callback_context;
};

struct vmbus_channel_debug_info {
u32 relid;
enum vmbus_channel_state state;
Expand Down Expand Up @@ -608,6 +569,44 @@ struct vmbus_channel_msginfo {
unsigned char msg[0];
};

struct vmbus_channel {
struct list_head listentry;

struct hv_device *device_obj;

struct work_struct work;

enum vmbus_channel_state state;
/*
* For util channels, stash the
* the service index for easy access.
*/
s8 util_index;

struct vmbus_channel_offer_channel offermsg;
/*
* These are based on the OfferMsg.MonitorId.
* Save it here for easy access.
*/
u8 monitor_grp;
u8 monitor_bit;

u32 ringbuffer_gpadlhandle;

/* Allocated memory for ring buffer */
void *ringbuffer_pages;
u32 ringbuffer_pagecount;
struct hv_ring_buffer_info outbound; /* send to parent */
struct hv_ring_buffer_info inbound; /* receive from parent */
spinlock_t inbound_lock;
struct workqueue_struct *controlwq;

/* Channel callback are invoked in this workqueue context */
/* HANDLE dataWorkQueue; */

void (*onchannel_callback)(void *context);
void *channel_callback_context;
};

void free_channel(struct vmbus_channel *channel);

Expand Down

0 comments on commit 75f9069

Please sign in to comment.