]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
Staging: hv: move StorVscApi.h
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Aug 2009 23:23:49 +0000 (16:23 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:00 +0000 (12:02 -0700)
Move it out of the include subdirectory.

No code changes here, just file movements.

Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/StorVsc.c
drivers/staging/hv/StorVscApi.h [new file with mode: 0644]
drivers/staging/hv/blkvsc_drv.c
drivers/staging/hv/include/StorVscApi.h [deleted file]
drivers/staging/hv/storvsc_drv.c

index 82686dae78ac7579702d266a856116ca8b608866..e78f9abe70e3b18923b7c3c7f479dae68caac83a 100644 (file)
@@ -27,7 +27,7 @@
 #include <linux/delay.h>
 #include "osd.h"
 #include "logging.h"
-#include "include/StorVscApi.h"
+#include "StorVscApi.h"
 #include "include/VmbusPacketFormat.h"
 #include "vstorage.h"
 
diff --git a/drivers/staging/hv/StorVscApi.h b/drivers/staging/hv/StorVscApi.h
new file mode 100644 (file)
index 0000000..6771e2b
--- /dev/null
@@ -0,0 +1,120 @@
+/*
+ *
+ * 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 "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;
+
+/* Data types */
+typedef int (*PFN_ON_IO_REQUEST)(struct hv_device *Device,
+                                struct hv_storvsc_request *Request);
+typedef void (*PFN_ON_IO_REQUEST_COMPLTN)(struct hv_storvsc_request *Request);
+
+typedef int (*PFN_ON_HOST_RESET)(struct hv_device *Device);
+typedef void (*PFN_ON_HOST_RESCAN)(struct hv_device *Device);
+
+/* 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;
+
+       PFN_ON_IO_REQUEST_COMPLTN OnIOCompletion;
+
+       /* 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;
+
+       /* Set by the caller to allow us to re-enumerate the bus on the host */
+       PFN_ON_HOST_RESCAN OnHostRescan;
+
+       /* Specific to this driver */
+       PFN_ON_IO_REQUEST OnIORequest;
+       PFN_ON_HOST_RESET OnHostReset;
+};
+
+struct storvsc_device_info {
+       unsigned int PortNumber;
+       unsigned char PathId;
+       unsigned char TargetId;
+};
+
+/* Interface */
+int StorVscInitialize(struct hv_driver *driver);
+int BlkVscInitialize(struct hv_driver *driver);
+
+#endif /* _STORVSC_API_H_ */
index e255755b09b23ce08959b08583a2c6a3ff94ab72..9e0dbd5e2a082ebbc339ba540bc75b0972222c56 100644 (file)
@@ -36,8 +36,7 @@
 #include "osd.h"
 #include "logging.h"
 #include "vmbus.h"
-
-#include "include/StorVscApi.h"
+#include "StorVscApi.h"
 
 
 /* #defines */
diff --git a/drivers/staging/hv/include/StorVscApi.h b/drivers/staging/hv/include/StorVscApi.h
deleted file mode 100644 (file)
index 56193ff..0000000
+++ /dev/null
@@ -1,120 +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;
-
-/* Data types */
-typedef int (*PFN_ON_IO_REQUEST)(struct hv_device *Device,
-                                struct hv_storvsc_request *Request);
-typedef void (*PFN_ON_IO_REQUEST_COMPLTN)(struct hv_storvsc_request *Request);
-
-typedef int (*PFN_ON_HOST_RESET)(struct hv_device *Device);
-typedef void (*PFN_ON_HOST_RESCAN)(struct hv_device *Device);
-
-/* 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;
-
-       PFN_ON_IO_REQUEST_COMPLTN OnIOCompletion;
-
-       /* 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;
-
-       /* Set by the caller to allow us to re-enumerate the bus on the host */
-       PFN_ON_HOST_RESCAN OnHostRescan;
-
-       /* Specific to this driver */
-       PFN_ON_IO_REQUEST OnIORequest;
-       PFN_ON_HOST_RESET OnHostReset;
-};
-
-struct storvsc_device_info {
-       unsigned int PortNumber;
-       unsigned char PathId;
-       unsigned char TargetId;
-};
-
-/* Interface */
-int StorVscInitialize(struct hv_driver *driver);
-int BlkVscInitialize(struct hv_driver *driver);
-
-#endif /* _STORVSC_API_H_ */
index 2310282f4c9a9c9e72db81404e5bf3b1ec75d105..361b903e1d1900ec62a32552112b8c0c8838e026 100644 (file)
@@ -39,7 +39,7 @@
 #include "osd.h"
 #include "logging.h"
 #include "vmbus.h"
-#include "include/StorVscApi.h"
+#include "StorVscApi.h"
 
 
 /* #defines */