Staging: hv: rename VmbusChannelInterface.h to vmbus_channel_interface.h
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 6 May 2010 05:47:13 +0000 (22:47 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:17 +0000 (11:36 -0700)
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/VmbusChannelInterface.h [deleted file]
drivers/staging/hv/channel_mgmt.h
drivers/staging/hv/hv_utils.c
drivers/staging/hv/netvsc.h
drivers/staging/hv/vmbus_channel_interface.h [new file with mode: 0644]

diff --git a/drivers/staging/hv/VmbusChannelInterface.h b/drivers/staging/hv/VmbusChannelInterface.h
deleted file mode 100644 (file)
index 2674282..0000000
+++ /dev/null
@@ -1,89 +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 __VMBUSCHANNELINTERFACE_H
-#define __VMBUSCHANNELINTERFACE_H
-
-/*
- * A revision number of vmbus that is used for ensuring both ends on a
- * partition are using compatible versions.
- */
-#define VMBUS_REVISION_NUMBER          13
-
-/* Make maximum size of pipe payload of 16K */
-#define MAX_PIPE_DATA_PAYLOAD          (sizeof(u8) * 16384)
-
-/* Define PipeMode values. */
-#define VMBUS_PIPE_TYPE_BYTE           0x00000000
-#define VMBUS_PIPE_TYPE_MESSAGE                0x00000004
-
-/* The size of the user defined data buffer for non-pipe offers. */
-#define MAX_USER_DEFINED_BYTES         120
-
-/* The size of the user defined data buffer for pipe offers. */
-#define MAX_PIPE_USER_DEFINED_BYTES    116
-
-/*
- * At the center of the Channel Management library is the Channel Offer. This
- * struct contains the fundamental information about an offer.
- */
-struct vmbus_channel_offer {
-       struct hv_guid InterfaceType;
-       struct hv_guid InterfaceInstance;
-       u64 InterruptLatencyIn100nsUnits;
-       u32 InterfaceRevision;
-       u32 ServerContextAreaSize;      /* in bytes */
-       u16 ChannelFlags;
-       u16 MmioMegabytes;              /* in bytes * 1024 * 1024 */
-
-       union {
-               /* Non-pipes: The user has MAX_USER_DEFINED_BYTES bytes. */
-               struct {
-                       unsigned char UserDefined[MAX_USER_DEFINED_BYTES];
-               } Standard;
-
-               /*
-                * Pipes:
-                * The following sructure is an integrated pipe protocol, which
-                * is implemented on top of standard user-defined data. Pipe
-                * clients have MAX_PIPE_USER_DEFINED_BYTES left for their own
-                * use.
-                */
-               struct {
-                       u32  PipeMode;
-                       unsigned char UserDefined[MAX_PIPE_USER_DEFINED_BYTES];
-               } Pipe;
-       } u;
-       u32 Padding;
-} __attribute__((packed));
-
-/* Server Flags */
-#define VMBUS_CHANNEL_ENUMERATE_DEVICE_INTERFACE       1
-#define VMBUS_CHANNEL_SERVER_SUPPORTS_TRANSFER_PAGES   2
-#define VMBUS_CHANNEL_SERVER_SUPPORTS_GPADLS           4
-#define VMBUS_CHANNEL_NAMED_PIPE_MODE                  0x10
-#define VMBUS_CHANNEL_LOOPBACK_OFFER                   0x100
-#define VMBUS_CHANNEL_PARENT_OFFER                     0x200
-#define VMBUS_CHANNEL_REQUEST_MONITORED_NOTIFICATION   0x400
-
-#endif
index 9219199d0e5a22d6df06128d68e4900d94d0e249..b92282bc89b6944afd30432280bba975c9080886 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/list.h>
 #include <linux/timer.h>
 #include "ring_buffer.h"
-#include "VmbusChannelInterface.h"
+#include "vmbus_channel_interface.h"
 #include "VmbusPacketFormat.h"
 
 /* Version 1 messages */
index 5ab1b06c4571aa3b728078628bbdd075edcce81f..ddda0d7deb2d737e4f1628f22c48fb989fb2f582 100644 (file)
@@ -29,7 +29,7 @@
 #include "osd.h"
 #include "vmbus.h"
 #include "VmbusPacketFormat.h"
-#include "VmbusChannelInterface.h"
+#include "vmbus_channel_interface.h"
 #include "VersionInfo.h"
 #include "channel.h"
 #include "vmbus_private.h"
index 05d2ceb9e5e3884be879da48220dfc209ce02dae..91b5c23ddc5d918eb7637616d6ce6bd7994c6e7d 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <linux/list.h>
 #include "VmbusPacketFormat.h"
-#include "VmbusChannelInterface.h"
+#include "vmbus_channel_interface.h"
 #include "netvsc_api.h"
 
 
diff --git a/drivers/staging/hv/vmbus_channel_interface.h b/drivers/staging/hv/vmbus_channel_interface.h
new file mode 100644 (file)
index 0000000..2674282
--- /dev/null
@@ -0,0 +1,89 @@
+/*
+ *
+ * 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 __VMBUSCHANNELINTERFACE_H
+#define __VMBUSCHANNELINTERFACE_H
+
+/*
+ * A revision number of vmbus that is used for ensuring both ends on a
+ * partition are using compatible versions.
+ */
+#define VMBUS_REVISION_NUMBER          13
+
+/* Make maximum size of pipe payload of 16K */
+#define MAX_PIPE_DATA_PAYLOAD          (sizeof(u8) * 16384)
+
+/* Define PipeMode values. */
+#define VMBUS_PIPE_TYPE_BYTE           0x00000000
+#define VMBUS_PIPE_TYPE_MESSAGE                0x00000004
+
+/* The size of the user defined data buffer for non-pipe offers. */
+#define MAX_USER_DEFINED_BYTES         120
+
+/* The size of the user defined data buffer for pipe offers. */
+#define MAX_PIPE_USER_DEFINED_BYTES    116
+
+/*
+ * At the center of the Channel Management library is the Channel Offer. This
+ * struct contains the fundamental information about an offer.
+ */
+struct vmbus_channel_offer {
+       struct hv_guid InterfaceType;
+       struct hv_guid InterfaceInstance;
+       u64 InterruptLatencyIn100nsUnits;
+       u32 InterfaceRevision;
+       u32 ServerContextAreaSize;      /* in bytes */
+       u16 ChannelFlags;
+       u16 MmioMegabytes;              /* in bytes * 1024 * 1024 */
+
+       union {
+               /* Non-pipes: The user has MAX_USER_DEFINED_BYTES bytes. */
+               struct {
+                       unsigned char UserDefined[MAX_USER_DEFINED_BYTES];
+               } Standard;
+
+               /*
+                * Pipes:
+                * The following sructure is an integrated pipe protocol, which
+                * is implemented on top of standard user-defined data. Pipe
+                * clients have MAX_PIPE_USER_DEFINED_BYTES left for their own
+                * use.
+                */
+               struct {
+                       u32  PipeMode;
+                       unsigned char UserDefined[MAX_PIPE_USER_DEFINED_BYTES];
+               } Pipe;
+       } u;
+       u32 Padding;
+} __attribute__((packed));
+
+/* Server Flags */
+#define VMBUS_CHANNEL_ENUMERATE_DEVICE_INTERFACE       1
+#define VMBUS_CHANNEL_SERVER_SUPPORTS_TRANSFER_PAGES   2
+#define VMBUS_CHANNEL_SERVER_SUPPORTS_GPADLS           4
+#define VMBUS_CHANNEL_NAMED_PIPE_MODE                  0x10
+#define VMBUS_CHANNEL_LOOPBACK_OFFER                   0x100
+#define VMBUS_CHANNEL_PARENT_OFFER                     0x200
+#define VMBUS_CHANNEL_REQUEST_MONITORED_NOTIFICATION   0x400
+
+#endif
This page took 0.029385 seconds and 5 git commands to generate.