Staging: hv: rename StorVscApi.h to storvsc_api.h
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 6 May 2010 05:40:43 +0000 (22:40 -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/StorVscApi.h [deleted file]
drivers/staging/hv/blkvsc_drv.c
drivers/staging/hv/storvsc.c
drivers/staging/hv/storvsc_api.h [new file with mode: 0644]
drivers/staging/hv/storvsc_drv.c

diff --git a/drivers/staging/hv/StorVscApi.h b/drivers/staging/hv/StorVscApi.h
deleted file mode 100644 (file)
index 126a858..0000000
+++ /dev/null
@@ -1,110 +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 _STORVSC_API_H_
-#define _STORVSC_API_H_
-
-#include "VmbusApi.h"
-
-/* Defines */
-#define STORVSC_RING_BUFFER_SIZE                       (10*PAGE_SIZE)
-#define BLKVSC_RING_BUFFER_SIZE                                (20*PAGE_SIZE)
-
-#define STORVSC_MAX_IO_REQUESTS                                64
-
-/*
- * In Hyper-V, each port/path/target maps to 1 scsi host adapter.  In
- * reality, the path/target is not used (ie always set to 0) so our
- * scsi host adapter essentially has 1 bus with 1 target that contains
- * up to 256 luns.
- */
-#define STORVSC_MAX_LUNS_PER_TARGET                    64
-#define STORVSC_MAX_TARGETS                            1
-#define STORVSC_MAX_CHANNELS                           1
-
-struct hv_storvsc_request;
-
-/* Matches Windows-end */
-enum storvsc_request_type{
-       WRITE_TYPE,
-       READ_TYPE,
-       UNKNOWN_TYPE,
-};
-
-struct hv_storvsc_request {
-       enum storvsc_request_type Type;
-       u32 Host;
-       u32 Bus;
-       u32 TargetId;
-       u32 LunId;
-       u8 *Cdb;
-       u32 CdbLen;
-       u32 Status;
-       u32 BytesXfer;
-
-       unsigned char *SenseBuffer;
-       u32 SenseBufferSize;
-
-       void *Context;
-
-       void (*OnIOCompletion)(struct hv_storvsc_request *Request);
-
-       /* This points to the memory after DataBuffer */
-       void *Extension;
-
-       struct hv_multipage_buffer DataBuffer;
-};
-
-/* Represents the block vsc driver */
-struct storvsc_driver_object {
-       /* Must be the first field */
-       /* Which is a bug FIXME! */
-       struct hv_driver Base;
-
-       /* Set by caller (in bytes) */
-       u32 RingBufferSize;
-
-       /* Allocate this much private extension for each I/O request */
-       u32 RequestExtSize;
-
-       /* Maximum # of requests in flight per channel/device */
-       u32 MaxOutstandingRequestsPerChannel;
-
-       /* Specific to this driver */
-       int (*OnIORequest)(struct hv_device *Device,
-                          struct hv_storvsc_request *Request);
-};
-
-struct storvsc_device_info {
-       unsigned int PortNumber;
-       unsigned char PathId;
-       unsigned char TargetId;
-};
-
-/* Interface */
-int StorVscInitialize(struct hv_driver *driver);
-int StorVscOnHostReset(struct hv_device *Device);
-int BlkVscInitialize(struct hv_driver *driver);
-
-#endif /* _STORVSC_API_H_ */
index 78fc348334e7d0544c5e928d93a17d8be8386d9d..3e7c75e0b149df1967137e860e9447622aa0cd9d 100644 (file)
@@ -34,7 +34,7 @@
 #include "logging.h"
 #include "VersionInfo.h"
 #include "vmbus.h"
-#include "StorVscApi.h"
+#include "storvsc_api.h"
 
 
 #define BLKVSC_MINORS  64
index e73130e49ccec769930f3266bc567a3ec7640fca..3a8b54f5e2a6d038278867a416f478cf38f18fb8 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/delay.h>
 #include "osd.h"
 #include "logging.h"
-#include "StorVscApi.h"
+#include "storvsc_api.h"
 #include "VmbusPacketFormat.h"
 #include "vstorage.h"
 
diff --git a/drivers/staging/hv/storvsc_api.h b/drivers/staging/hv/storvsc_api.h
new file mode 100644 (file)
index 0000000..126a858
--- /dev/null
@@ -0,0 +1,110 @@
+/*
+ *
+ * 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 _STORVSC_API_H_
+#define _STORVSC_API_H_
+
+#include "VmbusApi.h"
+
+/* Defines */
+#define STORVSC_RING_BUFFER_SIZE                       (10*PAGE_SIZE)
+#define BLKVSC_RING_BUFFER_SIZE                                (20*PAGE_SIZE)
+
+#define STORVSC_MAX_IO_REQUESTS                                64
+
+/*
+ * In Hyper-V, each port/path/target maps to 1 scsi host adapter.  In
+ * reality, the path/target is not used (ie always set to 0) so our
+ * scsi host adapter essentially has 1 bus with 1 target that contains
+ * up to 256 luns.
+ */
+#define STORVSC_MAX_LUNS_PER_TARGET                    64
+#define STORVSC_MAX_TARGETS                            1
+#define STORVSC_MAX_CHANNELS                           1
+
+struct hv_storvsc_request;
+
+/* Matches Windows-end */
+enum storvsc_request_type{
+       WRITE_TYPE,
+       READ_TYPE,
+       UNKNOWN_TYPE,
+};
+
+struct hv_storvsc_request {
+       enum storvsc_request_type Type;
+       u32 Host;
+       u32 Bus;
+       u32 TargetId;
+       u32 LunId;
+       u8 *Cdb;
+       u32 CdbLen;
+       u32 Status;
+       u32 BytesXfer;
+
+       unsigned char *SenseBuffer;
+       u32 SenseBufferSize;
+
+       void *Context;
+
+       void (*OnIOCompletion)(struct hv_storvsc_request *Request);
+
+       /* This points to the memory after DataBuffer */
+       void *Extension;
+
+       struct hv_multipage_buffer DataBuffer;
+};
+
+/* Represents the block vsc driver */
+struct storvsc_driver_object {
+       /* Must be the first field */
+       /* Which is a bug FIXME! */
+       struct hv_driver Base;
+
+       /* Set by caller (in bytes) */
+       u32 RingBufferSize;
+
+       /* Allocate this much private extension for each I/O request */
+       u32 RequestExtSize;
+
+       /* Maximum # of requests in flight per channel/device */
+       u32 MaxOutstandingRequestsPerChannel;
+
+       /* Specific to this driver */
+       int (*OnIORequest)(struct hv_device *Device,
+                          struct hv_storvsc_request *Request);
+};
+
+struct storvsc_device_info {
+       unsigned int PortNumber;
+       unsigned char PathId;
+       unsigned char TargetId;
+};
+
+/* Interface */
+int StorVscInitialize(struct hv_driver *driver);
+int StorVscOnHostReset(struct hv_device *Device);
+int BlkVscInitialize(struct hv_driver *driver);
+
+#endif /* _STORVSC_API_H_ */
index d9649e37e11c910b0b37612b078d65b53cd8cff8..56b659bda370aff4bed12ba7adc32f46c9579d36 100644 (file)
@@ -35,7 +35,7 @@
 #include "logging.h"
 #include "VersionInfo.h"
 #include "vmbus.h"
-#include "StorVscApi.h"
+#include "storvsc_api.h"
 
 
 struct host_device_context {
This page took 0.049557 seconds and 5 git commands to generate.