]> Pileus Git - ~andy/linux/commitdiff
Staging: hv: Move the contents of channel.h to hyperv.h
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 13 May 2011 02:34:22 +0000 (19:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 May 2011 18:46:16 +0000 (11:46 -0700)
Move the contents of channel.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/channel.h [deleted file]
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.c
drivers/staging/hv/storvsc.c
drivers/staging/hv/storvsc_drv.c
drivers/staging/hv/vmbus_drv.c
drivers/staging/hv/vmbus_private.h

diff --git a/drivers/staging/hv/channel.h b/drivers/staging/hv/channel.h
deleted file mode 100644 (file)
index 4949e36..0000000
+++ /dev/null
@@ -1,112 +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 _CHANNEL_H_
-#define _CHANNEL_H_
-
-#include "hyperv.h"
-
-/* The format must be the same as struct vmdata_gpa_direct */
-struct vmbus_channel_packet_page_buffer {
-       u16 type;
-       u16 dataoffset8;
-       u16 length8;
-       u16 flags;
-       u64 transactionid;
-       u32 reserved;
-       u32 rangecount;
-       struct hv_page_buffer range[MAX_PAGE_BUFFER_COUNT];
-} __packed;
-
-/* The format must be the same as struct vmdata_gpa_direct */
-struct vmbus_channel_packet_multipage_buffer {
-       u16 type;
-       u16 dataoffset8;
-       u16 length8;
-       u16 flags;
-       u64 transactionid;
-       u32 reserved;
-       u32 rangecount;         /* Always 1 in this case */
-       struct hv_multipage_buffer range;
-} __packed;
-
-
-extern int vmbus_open(struct vmbus_channel *channel,
-                           u32 send_ringbuffersize,
-                           u32 recv_ringbuffersize,
-                           void *userdata,
-                           u32 userdatalen,
-                           void(*onchannel_callback)(void *context),
-                           void *context);
-
-extern void vmbus_close(struct vmbus_channel *channel);
-
-extern int vmbus_sendpacket(struct vmbus_channel *channel,
-                                 const void *buffer,
-                                 u32 bufferLen,
-                                 u64 requestid,
-                                 enum vmbus_packet_type type,
-                                 u32 flags);
-
-extern int vmbus_sendpacket_pagebuffer(struct vmbus_channel *channel,
-                                           struct hv_page_buffer pagebuffers[],
-                                           u32 pagecount,
-                                           void *buffer,
-                                           u32 bufferlen,
-                                           u64 requestid);
-
-extern int vmbus_sendpacket_multipagebuffer(struct vmbus_channel *channel,
-                                       struct hv_multipage_buffer *mpb,
-                                       void *buffer,
-                                       u32 bufferlen,
-                                       u64 requestid);
-
-extern int vmbus_establish_gpadl(struct vmbus_channel *channel,
-                                     void *kbuffer,
-                                     u32 size,
-                                     u32 *gpadl_handle);
-
-extern int vmbus_teardown_gpadl(struct vmbus_channel *channel,
-                                    u32 gpadl_handle);
-
-extern int vmbus_recvpacket(struct vmbus_channel *channel,
-                                 void *buffer,
-                                 u32 bufferlen,
-                                 u32 *buffer_actual_len,
-                                 u64 *requestid);
-
-extern int vmbus_recvpacket_raw(struct vmbus_channel *channel,
-                                    void *buffer,
-                                    u32 bufferlen,
-                                    u32 *buffer_actual_len,
-                                    u64 *requestid);
-
-extern void vmbus_onchannel_event(struct vmbus_channel *channel);
-
-extern void vmbus_get_debug_info(struct vmbus_channel *channel,
-                                    struct vmbus_channel_debug_info *debug);
-
-extern void vmbus_ontimer(unsigned long data);
-
-#endif /* _CHANNEL_H_ */
index 42cf83339836624cd5b35697d096e285d7d56764..c4f49d68af0ad50b61ee474c0bee4c3fc8139a47 100644 (file)
@@ -31,7 +31,6 @@
 #include "logging.h"
 #include "hv_api.h"
 #include "vmbus.h"
-#include "channel.h"
 #include "vmbus_private.h"
 #include "vmbus_api.h"
 #include "utils.h"
index 960f11a7f9aded90812a69dfeefaf116e6bd8324..7b82bae41c588847a0ba6bf645aefbb5bfb80ee5 100644 (file)
@@ -31,7 +31,6 @@
 #include "logging.h"
 #include "vmbus.h"
 #include "vmbus_api.h"
-#include "channel.h"
 
 
 /*
index 7196908f3768f590bf0a992bc4edde76459086c6..31e067274ccddc1e9b7bdabd053acdd9f01cfe29 100644 (file)
@@ -33,7 +33,6 @@
 #include "logging.h"
 #include "hv_api.h"
 #include "vmbus.h"
-#include "channel.h"
 #include "vmbus_private.h"
 #include "vmbus_api.h"
 #include "utils.h"
index 04f1b0f41b1d09713a17da68b07a48af0215cf34..45c45f2bb6ea9d4da88ed7f5019b38818dc21662 100644 (file)
@@ -607,4 +607,86 @@ void vmbus_onmessage(void *context);
 
 int vmbus_request_offers(void);
 
+/* The format must be the same as struct vmdata_gpa_direct */
+struct vmbus_channel_packet_page_buffer {
+       u16 type;
+       u16 dataoffset8;
+       u16 length8;
+       u16 flags;
+       u64 transactionid;
+       u32 reserved;
+       u32 rangecount;
+       struct hv_page_buffer range[MAX_PAGE_BUFFER_COUNT];
+} __packed;
+
+/* The format must be the same as struct vmdata_gpa_direct */
+struct vmbus_channel_packet_multipage_buffer {
+       u16 type;
+       u16 dataoffset8;
+       u16 length8;
+       u16 flags;
+       u64 transactionid;
+       u32 reserved;
+       u32 rangecount;         /* Always 1 in this case */
+       struct hv_multipage_buffer range;
+} __packed;
+
+
+extern int vmbus_open(struct vmbus_channel *channel,
+                           u32 send_ringbuffersize,
+                           u32 recv_ringbuffersize,
+                           void *userdata,
+                           u32 userdatalen,
+                           void(*onchannel_callback)(void *context),
+                           void *context);
+
+extern void vmbus_close(struct vmbus_channel *channel);
+
+extern int vmbus_sendpacket(struct vmbus_channel *channel,
+                                 const void *buffer,
+                                 u32 bufferLen,
+                                 u64 requestid,
+                                 enum vmbus_packet_type type,
+                                 u32 flags);
+
+extern int vmbus_sendpacket_pagebuffer(struct vmbus_channel *channel,
+                                           struct hv_page_buffer pagebuffers[],
+                                           u32 pagecount,
+                                           void *buffer,
+                                           u32 bufferlen,
+                                           u64 requestid);
+
+extern int vmbus_sendpacket_multipagebuffer(struct vmbus_channel *channel,
+                                       struct hv_multipage_buffer *mpb,
+                                       void *buffer,
+                                       u32 bufferlen,
+                                       u64 requestid);
+
+extern int vmbus_establish_gpadl(struct vmbus_channel *channel,
+                                     void *kbuffer,
+                                     u32 size,
+                                     u32 *gpadl_handle);
+
+extern int vmbus_teardown_gpadl(struct vmbus_channel *channel,
+                                    u32 gpadl_handle);
+
+extern int vmbus_recvpacket(struct vmbus_channel *channel,
+                                 void *buffer,
+                                 u32 bufferlen,
+                                 u32 *buffer_actual_len,
+                                 u64 *requestid);
+
+extern int vmbus_recvpacket_raw(struct vmbus_channel *channel,
+                                    void *buffer,
+                                    u32 bufferlen,
+                                    u32 *buffer_actual_len,
+                                    u64 *requestid);
+
+extern void vmbus_onchannel_event(struct vmbus_channel *channel);
+
+extern void vmbus_get_debug_info(struct vmbus_channel *channel,
+                                    struct vmbus_channel_debug_info *debug);
+
+extern void vmbus_ontimer(unsigned long data);
+
 #endif /* _HYPERV_H */
index 368ac68b7c618de702af8562541fe8306c392667..3a0a67e08dbfda13ed5b89569814c35892f48ae0 100644 (file)
@@ -33,7 +33,6 @@
 #include "logging.h"
 #include "netvsc.h"
 #include "rndis_filter.h"
-#include "channel.h"
 
 
 /* Globals */
index 10a0859d2cac2ba7909b4aebe1908b8ac7b1ef53..10db64dd0152ed3a81136457fe40daf509b3c5c8 100644 (file)
@@ -33,7 +33,6 @@
 #include "logging.h"
 #include "storvsc_api.h"
 #include "vstorage.h"
-#include "channel.h"
 
 
 static inline struct storvsc_device *alloc_stor_device(struct hv_device *device)
index a9344d9481ba6a41bc19e97f3d9a0f131276ebcf..165d266b2374a1636a714aa5a6625b5cfc4839f7 100644 (file)
@@ -39,7 +39,6 @@
 #include "vmbus.h"
 #include "storvsc_api.h"
 #include "vstorage.h"
-#include "channel.h"
 
 static int storvsc_ringbuffer_size = STORVSC_RING_BUFFER_SIZE;
 
index 7debaa74ff600f00424546ce2d1a08f98692f301..d6c08c55e2fe70d9b01d93ffc6a70f2fe629c197 100644 (file)
@@ -39,7 +39,6 @@
 #include "hv_api.h"
 #include "logging.h"
 #include "vmbus.h"
-#include "channel.h"
 #include "vmbus_private.h"
 
 
index 502f45675c5080798693dc3b319900160b6ebccf..527001bf34d07b3144c616b9a8e596b5d5c4132b 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "hv.h"
 #include "vmbus_api.h"
-#include "channel.h"
 #include "ring_buffer.h"
 #include <linux/list.h>
 #include <asm/sync_bitops.h>