aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/storvsc_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/hv/storvsc_api.h')
-rw-r--r--drivers/staging/hv/storvsc_api.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/drivers/staging/hv/storvsc_api.h b/drivers/staging/hv/storvsc_api.h
index 8505a1c5f9e..46f031e0afc 100644
--- a/drivers/staging/hv/storvsc_api.h
+++ b/drivers/staging/hv/storvsc_api.h
@@ -53,58 +53,58 @@ enum storvsc_request_type{
53}; 53};
54 54
55struct hv_storvsc_request { 55struct hv_storvsc_request {
56 enum storvsc_request_type Type; 56 enum storvsc_request_type type;
57 u32 Host; 57 u32 host;
58 u32 Bus; 58 u32 bus;
59 u32 TargetId; 59 u32 target_id;
60 u32 LunId; 60 u32 lun_id;
61 u8 *Cdb; 61 u8 *cdb;
62 u32 CdbLen; 62 u32 cdb_len;
63 u32 Status; 63 u32 status;
64 u32 BytesXfer; 64 u32 bytes_xfer;
65 65
66 unsigned char *SenseBuffer; 66 unsigned char *sense_buffer;
67 u32 SenseBufferSize; 67 u32 sense_buffer_size;
68 68
69 void *Context; 69 void *context;
70 70
71 void (*OnIOCompletion)(struct hv_storvsc_request *Request); 71 void (*on_io_completion)(struct hv_storvsc_request *request);
72 72
73 /* This points to the memory after DataBuffer */ 73 /* This points to the memory after DataBuffer */
74 void *Extension; 74 void *extension;
75 75
76 struct hv_multipage_buffer DataBuffer; 76 struct hv_multipage_buffer data_buffer;
77}; 77};
78 78
79/* Represents the block vsc driver */ 79/* Represents the block vsc driver */
80struct storvsc_driver_object { 80struct storvsc_driver_object {
81 /* Must be the first field */ 81 /* Must be the first field */
82 /* Which is a bug FIXME! */ 82 /* Which is a bug FIXME! */
83 struct hv_driver Base; 83 struct hv_driver base;
84 84
85 /* Set by caller (in bytes) */ 85 /* Set by caller (in bytes) */
86 u32 RingBufferSize; 86 u32 ring_buffer_size;
87 87
88 /* Allocate this much private extension for each I/O request */ 88 /* Allocate this much private extension for each I/O request */
89 u32 RequestExtSize; 89 u32 request_ext_size;
90 90
91 /* Maximum # of requests in flight per channel/device */ 91 /* Maximum # of requests in flight per channel/device */
92 u32 MaxOutstandingRequestsPerChannel; 92 u32 max_outstanding_req_per_channel;
93 93
94 /* Specific to this driver */ 94 /* Specific to this driver */
95 int (*OnIORequest)(struct hv_device *Device, 95 int (*on_io_request)(struct hv_device *device,
96 struct hv_storvsc_request *Request); 96 struct hv_storvsc_request *request);
97}; 97};
98 98
99struct storvsc_device_info { 99struct storvsc_device_info {
100 unsigned int PortNumber; 100 unsigned int port_number;
101 unsigned char PathId; 101 unsigned char path_id;
102 unsigned char TargetId; 102 unsigned char target_id;
103}; 103};
104 104
105/* Interface */ 105/* Interface */
106int StorVscInitialize(struct hv_driver *driver); 106int StorVscInitialize(struct hv_driver *driver);
107int StorVscOnHostReset(struct hv_device *Device); 107int StorVscOnHostReset(struct hv_device *device);
108int BlkVscInitialize(struct hv_driver *driver); 108int BlkVscInitialize(struct hv_driver *driver);
109 109
110#endif /* _STORVSC_API_H_ */ 110#endif /* _STORVSC_API_H_ */