aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-08-28 19:20:07 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 15:02:00 -0400
commit9f0c7d2cc30a0691d478b069b499d6b1d01546a2 (patch)
tree7cad8d38238852f320e620c32d6981ed9dec2fb0
parent9bcd786a311d7601f25a986e106d2bf774a22fdd (diff)
Staging: hv: fix typedefs in StorVscApi.h
It's all clean now. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/hv/BlkVsc.c4
-rw-r--r--drivers/staging/hv/StorVsc.c10
-rw-r--r--drivers/staging/hv/blkvsc_drv.c14
-rw-r--r--drivers/staging/hv/include/StorVscApi.h14
-rw-r--r--drivers/staging/hv/storvsc_drv.c16
5 files changed, 29 insertions, 29 deletions
diff --git a/drivers/staging/hv/BlkVsc.c b/drivers/staging/hv/BlkVsc.c
index d613e599ffa..d433d8c444f 100644
--- a/drivers/staging/hv/BlkVsc.c
+++ b/drivers/staging/hv/BlkVsc.c
@@ -48,7 +48,7 @@ BlkVscInitialize(
48 struct hv_driver *Driver 48 struct hv_driver *Driver
49 ) 49 )
50{ 50{
51 STORVSC_DRIVER_OBJECT* storDriver = (STORVSC_DRIVER_OBJECT*)Driver; 51 struct storvsc_driver_object *storDriver = (struct storvsc_driver_object *)Driver;
52 int ret=0; 52 int ret=0;
53 53
54 DPRINT_ENTER(BLKVSC); 54 DPRINT_ENTER(BLKVSC);
@@ -86,7 +86,7 @@ BlkVscOnDeviceAdd(
86 ) 86 )
87{ 87{
88 int ret=0; 88 int ret=0;
89 STORVSC_DEVICE_INFO *deviceInfo = (STORVSC_DEVICE_INFO*)AdditionalInfo; 89 struct storvsc_device_info *deviceInfo = (struct storvsc_device_info *)AdditionalInfo;
90 90
91 DPRINT_ENTER(BLKVSC); 91 DPRINT_ENTER(BLKVSC);
92 92
diff --git a/drivers/staging/hv/StorVsc.c b/drivers/staging/hv/StorVsc.c
index bcc545f037a..edb3ab6d12d 100644
--- a/drivers/staging/hv/StorVsc.c
+++ b/drivers/staging/hv/StorVsc.c
@@ -261,7 +261,7 @@ StorVscInitialize(
261 struct hv_driver *Driver 261 struct hv_driver *Driver
262 ) 262 )
263{ 263{
264 STORVSC_DRIVER_OBJECT* storDriver = (STORVSC_DRIVER_OBJECT*)Driver; 264 struct storvsc_driver_object *storDriver = (struct storvsc_driver_object *)Driver;
265 int ret=0; 265 int ret=0;
266 266
267 DPRINT_ENTER(STORVSC); 267 DPRINT_ENTER(STORVSC);
@@ -319,7 +319,7 @@ StorVscOnDeviceAdd(
319 int ret=0; 319 int ret=0;
320 STORVSC_DEVICE *storDevice; 320 STORVSC_DEVICE *storDevice;
321 /* struct vmstorage_channel_properties *props; */ 321 /* struct vmstorage_channel_properties *props; */
322 STORVSC_DEVICE_INFO *deviceInfo = (STORVSC_DEVICE_INFO*)AdditionalInfo; 322 struct storvsc_device_info *deviceInfo = (struct storvsc_device_info *)AdditionalInfo;
323 323
324 DPRINT_ENTER(STORVSC); 324 DPRINT_ENTER(STORVSC);
325 325
@@ -530,7 +530,7 @@ StorVscConnectToVsp(
530 int ret=0; 530 int ret=0;
531 struct vmstorage_channel_properties props; 531 struct vmstorage_channel_properties props;
532 532
533 STORVSC_DRIVER_OBJECT *storDriver = (STORVSC_DRIVER_OBJECT*) Device->Driver;; 533 struct storvsc_driver_object *storDriver = (struct storvsc_driver_object *)Device->Driver;;
534 534
535 memset(&props, sizeof(struct vmstorage_channel_properties), 0); 535 memset(&props, sizeof(struct vmstorage_channel_properties), 0);
536 536
@@ -615,11 +615,11 @@ void *Context
615) 615)
616{ 616{
617struct hv_device *device=(struct hv_device *)Context; 617struct hv_device *device=(struct hv_device *)Context;
618STORVSC_DRIVER_OBJECT *storDriver; 618struct storvsc_driver_object *storDriver;
619 619
620DPRINT_ENTER(STORVSC); 620DPRINT_ENTER(STORVSC);
621 621
622storDriver = (STORVSC_DRIVER_OBJECT*) device->Driver; 622storDriver = (struct storvsc_driver_object*) device->Driver;
623storDriver->OnHostRescan(device); 623storDriver->OnHostRescan(device);
624 624
625DPRINT_EXIT(STORVSC); 625DPRINT_EXIT(STORVSC);
diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c
index f91fa431b7c..8dcc140a5dc 100644
--- a/drivers/staging/hv/blkvsc_drv.c
+++ b/drivers/staging/hv/blkvsc_drv.c
@@ -117,7 +117,7 @@ struct block_device_context {
117struct blkvsc_driver_context { 117struct blkvsc_driver_context {
118 /* !! These must be the first 2 fields !! */ 118 /* !! These must be the first 2 fields !! */
119 struct driver_context drv_ctx; 119 struct driver_context drv_ctx;
120 STORVSC_DRIVER_OBJECT drv_obj; 120 struct storvsc_driver_object drv_obj;
121}; 121};
122 122
123/* Static decl */ 123/* Static decl */
@@ -173,7 +173,7 @@ Desc: BlkVsc driver initialization.
173static int blkvsc_drv_init(PFN_DRIVERINITIALIZE pfn_drv_init) 173static int blkvsc_drv_init(PFN_DRIVERINITIALIZE pfn_drv_init)
174{ 174{
175 int ret=0; 175 int ret=0;
176 STORVSC_DRIVER_OBJECT *storvsc_drv_obj=&g_blkvsc_drv.drv_obj; 176 struct storvsc_driver_object *storvsc_drv_obj = &g_blkvsc_drv.drv_obj;
177 struct driver_context *drv_ctx=&g_blkvsc_drv.drv_ctx; 177 struct driver_context *drv_ctx=&g_blkvsc_drv.drv_ctx;
178 178
179 DPRINT_ENTER(BLKVSC_DRV); 179 DPRINT_ENTER(BLKVSC_DRV);
@@ -217,7 +217,7 @@ Desc:
217--*/ 217--*/
218static void blkvsc_drv_exit(void) 218static void blkvsc_drv_exit(void)
219{ 219{
220 STORVSC_DRIVER_OBJECT *storvsc_drv_obj=&g_blkvsc_drv.drv_obj; 220 struct storvsc_driver_object *storvsc_drv_obj = &g_blkvsc_drv.drv_obj;
221 struct driver_context *drv_ctx=&g_blkvsc_drv.drv_ctx; 221 struct driver_context *drv_ctx=&g_blkvsc_drv.drv_ctx;
222 struct device *current_dev=NULL; 222 struct device *current_dev=NULL;
223 int ret; 223 int ret;
@@ -268,13 +268,13 @@ static int blkvsc_probe(struct device *device)
268 268
269 struct driver_context *driver_ctx = driver_to_driver_context(device->driver); 269 struct driver_context *driver_ctx = driver_to_driver_context(device->driver);
270 struct blkvsc_driver_context *blkvsc_drv_ctx = (struct blkvsc_driver_context*)driver_ctx; 270 struct blkvsc_driver_context *blkvsc_drv_ctx = (struct blkvsc_driver_context*)driver_ctx;
271 STORVSC_DRIVER_OBJECT* storvsc_drv_obj = &blkvsc_drv_ctx->drv_obj; 271 struct storvsc_driver_object *storvsc_drv_obj = &blkvsc_drv_ctx->drv_obj;
272 272
273 struct device_context *device_ctx = device_to_device_context(device); 273 struct device_context *device_ctx = device_to_device_context(device);
274 struct hv_device *device_obj = &device_ctx->device_obj; 274 struct hv_device *device_obj = &device_ctx->device_obj;
275 275
276 struct block_device_context *blkdev=NULL; 276 struct block_device_context *blkdev=NULL;
277 STORVSC_DEVICE_INFO device_info; 277 struct storvsc_device_info device_info;
278 int major=0; 278 int major=0;
279 int devnum=0; 279 int devnum=0;
280 280
@@ -777,7 +777,7 @@ static int blkvsc_remove(struct device *device)
777 777
778 struct driver_context *driver_ctx = driver_to_driver_context(device->driver); 778 struct driver_context *driver_ctx = driver_to_driver_context(device->driver);
779 struct blkvsc_driver_context *blkvsc_drv_ctx = (struct blkvsc_driver_context*)driver_ctx; 779 struct blkvsc_driver_context *blkvsc_drv_ctx = (struct blkvsc_driver_context*)driver_ctx;
780 STORVSC_DRIVER_OBJECT* storvsc_drv_obj = &blkvsc_drv_ctx->drv_obj; 780 struct storvsc_driver_object *storvsc_drv_obj = &blkvsc_drv_ctx->drv_obj;
781 781
782 struct device_context *device_ctx = device_to_device_context(device); 782 struct device_context *device_ctx = device_to_device_context(device);
783 struct hv_device *device_obj = &device_ctx->device_obj; 783 struct hv_device *device_obj = &device_ctx->device_obj;
@@ -907,7 +907,7 @@ static int blkvsc_submit_request(struct blkvsc_request *blkvsc_req, void (*reque
907 struct device_context *device_ctx=blkdev->device_ctx; 907 struct device_context *device_ctx=blkdev->device_ctx;
908 struct driver_context *driver_ctx = driver_to_driver_context(device_ctx->device.driver); 908 struct driver_context *driver_ctx = driver_to_driver_context(device_ctx->device.driver);
909 struct blkvsc_driver_context *blkvsc_drv_ctx = (struct blkvsc_driver_context*)driver_ctx; 909 struct blkvsc_driver_context *blkvsc_drv_ctx = (struct blkvsc_driver_context*)driver_ctx;
910 STORVSC_DRIVER_OBJECT* storvsc_drv_obj = &blkvsc_drv_ctx->drv_obj; 910 struct storvsc_driver_object *storvsc_drv_obj = &blkvsc_drv_ctx->drv_obj;
911 int ret =0; 911 int ret =0;
912 912
913 struct hv_storvsc_request *storvsc_req; 913 struct hv_storvsc_request *storvsc_req;
diff --git a/drivers/staging/hv/include/StorVscApi.h b/drivers/staging/hv/include/StorVscApi.h
index 2deefbda73b..56193ff663e 100644
--- a/drivers/staging/hv/include/StorVscApi.h
+++ b/drivers/staging/hv/include/StorVscApi.h
@@ -54,14 +54,14 @@ typedef int (*PFN_ON_HOST_RESET)(struct hv_device *Device);
54typedef void (*PFN_ON_HOST_RESCAN)(struct hv_device *Device); 54typedef void (*PFN_ON_HOST_RESCAN)(struct hv_device *Device);
55 55
56/* Matches Windows-end */ 56/* Matches Windows-end */
57typedef enum _STORVSC_REQUEST_TYPE{ 57enum storvsc_request_type{
58 WRITE_TYPE, 58 WRITE_TYPE,
59 READ_TYPE, 59 READ_TYPE,
60 UNKNOWN_TYPE, 60 UNKNOWN_TYPE,
61} STORVSC_REQUEST_TYPE; 61};
62 62
63struct hv_storvsc_request { 63struct hv_storvsc_request {
64 STORVSC_REQUEST_TYPE Type; 64 enum storvsc_request_type Type;
65 u32 Host; 65 u32 Host;
66 u32 Bus; 66 u32 Bus;
67 u32 TargetId; 67 u32 TargetId;
@@ -85,7 +85,7 @@ struct hv_storvsc_request {
85}; 85};
86 86
87/* Represents the block vsc driver */ 87/* Represents the block vsc driver */
88typedef struct _STORVSC_DRIVER_OBJECT { 88struct storvsc_driver_object {
89 /* Must be the first field */ 89 /* Must be the first field */
90 /* Which is a bug FIXME! */ 90 /* Which is a bug FIXME! */
91 struct hv_driver Base; 91 struct hv_driver Base;
@@ -105,13 +105,13 @@ typedef struct _STORVSC_DRIVER_OBJECT {
105 /* Specific to this driver */ 105 /* Specific to this driver */
106 PFN_ON_IO_REQUEST OnIORequest; 106 PFN_ON_IO_REQUEST OnIORequest;
107 PFN_ON_HOST_RESET OnHostReset; 107 PFN_ON_HOST_RESET OnHostReset;
108} STORVSC_DRIVER_OBJECT; 108};
109 109
110typedef struct _STORVSC_DEVICE_INFO { 110struct storvsc_device_info {
111 unsigned int PortNumber; 111 unsigned int PortNumber;
112 unsigned char PathId; 112 unsigned char PathId;
113 unsigned char TargetId; 113 unsigned char TargetId;
114} STORVSC_DEVICE_INFO; 114};
115 115
116/* Interface */ 116/* Interface */
117int StorVscInitialize(struct hv_driver *driver); 117int StorVscInitialize(struct hv_driver *driver);
diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c
index a3d591dac04..155ba1df4b3 100644
--- a/drivers/staging/hv/storvsc_drv.c
+++ b/drivers/staging/hv/storvsc_drv.c
@@ -72,7 +72,7 @@ struct storvsc_cmd_request {
72struct storvsc_driver_context { 72struct storvsc_driver_context {
73 /* !! These must be the first 2 fields !! */ 73 /* !! These must be the first 2 fields !! */
74 struct driver_context drv_ctx; 74 struct driver_context drv_ctx;
75 STORVSC_DRIVER_OBJECT drv_obj; 75 struct storvsc_driver_object drv_obj;
76}; 76};
77 77
78/* Static decl */ 78/* Static decl */
@@ -133,7 +133,7 @@ Desc: StorVsc driver initialization.
133static int storvsc_drv_init(PFN_DRIVERINITIALIZE pfn_drv_init) 133static int storvsc_drv_init(PFN_DRIVERINITIALIZE pfn_drv_init)
134{ 134{
135 int ret=0; 135 int ret=0;
136 STORVSC_DRIVER_OBJECT *storvsc_drv_obj=&g_storvsc_drv.drv_obj; 136 struct storvsc_driver_object *storvsc_drv_obj = &g_storvsc_drv.drv_obj;
137 struct driver_context *drv_ctx=&g_storvsc_drv.drv_ctx; 137 struct driver_context *drv_ctx=&g_storvsc_drv.drv_ctx;
138 138
139 DPRINT_ENTER(STORVSC_DRV); 139 DPRINT_ENTER(STORVSC_DRV);
@@ -186,7 +186,7 @@ Desc:
186--*/ 186--*/
187static void storvsc_drv_exit(void) 187static void storvsc_drv_exit(void)
188{ 188{
189 STORVSC_DRIVER_OBJECT *storvsc_drv_obj=&g_storvsc_drv.drv_obj; 189 struct storvsc_driver_object *storvsc_drv_obj = &g_storvsc_drv.drv_obj;
190 struct driver_context *drv_ctx=&g_storvsc_drv.drv_ctx; 190 struct driver_context *drv_ctx=&g_storvsc_drv.drv_ctx;
191 struct device *current_dev=NULL; 191 struct device *current_dev=NULL;
192 int ret; 192 int ret;
@@ -236,14 +236,14 @@ static int storvsc_probe(struct device *device)
236 236
237 struct driver_context *driver_ctx = driver_to_driver_context(device->driver); 237 struct driver_context *driver_ctx = driver_to_driver_context(device->driver);
238 struct storvsc_driver_context *storvsc_drv_ctx = (struct storvsc_driver_context*)driver_ctx; 238 struct storvsc_driver_context *storvsc_drv_ctx = (struct storvsc_driver_context*)driver_ctx;
239 STORVSC_DRIVER_OBJECT* storvsc_drv_obj = &storvsc_drv_ctx->drv_obj; 239 struct storvsc_driver_object *storvsc_drv_obj = &storvsc_drv_ctx->drv_obj;
240 240
241 struct device_context *device_ctx = device_to_device_context(device); 241 struct device_context *device_ctx = device_to_device_context(device);
242 struct hv_device *device_obj = &device_ctx->device_obj; 242 struct hv_device *device_obj = &device_ctx->device_obj;
243 243
244 struct Scsi_Host *host; 244 struct Scsi_Host *host;
245 struct host_device_context *host_device_ctx; 245 struct host_device_context *host_device_ctx;
246 STORVSC_DEVICE_INFO device_info; 246 struct storvsc_device_info device_info;
247 247
248 DPRINT_ENTER(STORVSC_DRV); 248 DPRINT_ENTER(STORVSC_DRV);
249 249
@@ -339,7 +339,7 @@ static int storvsc_remove(struct device *device)
339 339
340 struct driver_context *driver_ctx = driver_to_driver_context(device->driver); 340 struct driver_context *driver_ctx = driver_to_driver_context(device->driver);
341 struct storvsc_driver_context *storvsc_drv_ctx = (struct storvsc_driver_context*)driver_ctx; 341 struct storvsc_driver_context *storvsc_drv_ctx = (struct storvsc_driver_context*)driver_ctx;
342 STORVSC_DRIVER_OBJECT* storvsc_drv_obj = &storvsc_drv_ctx->drv_obj; 342 struct storvsc_driver_object *storvsc_drv_obj = &storvsc_drv_ctx->drv_obj;
343 343
344 struct device_context *device_ctx = device_to_device_context(device); 344 struct device_context *device_ctx = device_to_device_context(device);
345 struct hv_device *device_obj = &device_ctx->device_obj; 345 struct hv_device *device_obj = &device_ctx->device_obj;
@@ -665,7 +665,7 @@ static int storvsc_queuecommand(struct scsi_cmnd *scmnd, void (*done)(struct scs
665 struct device_context *device_ctx=host_device_ctx->device_ctx; 665 struct device_context *device_ctx=host_device_ctx->device_ctx;
666 struct driver_context *driver_ctx = driver_to_driver_context(device_ctx->device.driver); 666 struct driver_context *driver_ctx = driver_to_driver_context(device_ctx->device.driver);
667 struct storvsc_driver_context *storvsc_drv_ctx = (struct storvsc_driver_context*)driver_ctx; 667 struct storvsc_driver_context *storvsc_drv_ctx = (struct storvsc_driver_context*)driver_ctx;
668 STORVSC_DRIVER_OBJECT* storvsc_drv_obj = &storvsc_drv_ctx->drv_obj; 668 struct storvsc_driver_object *storvsc_drv_obj = &storvsc_drv_ctx->drv_obj;
669 669
670 struct hv_storvsc_request *request; 670 struct hv_storvsc_request *request;
671 struct storvsc_cmd_request *cmd_request; 671 struct storvsc_cmd_request *cmd_request;
@@ -887,7 +887,7 @@ static int storvsc_host_reset_handler(struct scsi_cmnd *scmnd)
887 struct driver_context *driver_ctx = driver_to_driver_context(device_ctx->device.driver); 887 struct driver_context *driver_ctx = driver_to_driver_context(device_ctx->device.driver);
888 struct storvsc_driver_context *storvsc_drv_ctx = (struct storvsc_driver_context*)driver_ctx; 888 struct storvsc_driver_context *storvsc_drv_ctx = (struct storvsc_driver_context*)driver_ctx;
889 889
890 STORVSC_DRIVER_OBJECT *storvsc_drv_obj = &storvsc_drv_ctx->drv_obj; 890 struct storvsc_driver_object *storvsc_drv_obj = &storvsc_drv_ctx->drv_obj;
891 891
892 DPRINT_ENTER(STORVSC_DRV); 892 DPRINT_ENTER(STORVSC_DRV);
893 893