kerneltest/f32test/shostmassstorage/testclient/usbtestmsclient/protocol/include/tscsiservercmds.h
equal
deleted
inserted
replaced
141 { |
141 { |
142 ECurrentErrors = 0x70, |
142 ECurrentErrors = 0x70, |
143 EDeferredErrors = 0x71 |
143 EDeferredErrors = 0x71 |
144 }; |
144 }; |
145 |
145 |
146 static const TUint KCommandLength = 18; |
146 enum |
|
147 { |
|
148 KCommandLength = 18 |
|
149 }; |
147 |
150 |
148 TScsiServerRequestSenseResp() {}; |
151 TScsiServerRequestSenseResp() {}; |
149 |
152 |
150 void Encode(TDes8& aBuffer) const; |
153 void Encode(TDes8& aBuffer) const; |
151 void SetResponseCode(TResponseCode aResponseCode) {iResponseCode = aResponseCode;} |
154 void SetResponseCode(TResponseCode aResponseCode) {iResponseCode = aResponseCode;} |
187 |
190 |
188 */ |
191 */ |
189 class TScsiServerInquiryResp: public MScsiServerResp |
192 class TScsiServerInquiryResp: public MScsiServerResp |
190 { |
193 { |
191 public: |
194 public: |
192 static const TUint KResponseLength = 36; |
195 |
|
196 enum |
|
197 { |
|
198 KResponseLength = 36 |
|
199 }; |
193 |
200 |
194 TScsiServerInquiryResp(const TMassStorageConfig& aConfig); |
201 TScsiServerInquiryResp(const TMassStorageConfig& aConfig); |
195 void Encode(TDes8& aBuffer) const; |
202 void Encode(TDes8& aBuffer) const; |
196 |
203 |
197 //void SetConfig(const TMassStorageConfig& aConfig) {iConfig = aConfig;} |
204 //void SetConfig(const TMassStorageConfig& aConfig) {iConfig = aConfig;} |
238 |
245 |
239 */ |
246 */ |
240 class TScsiServerModeSense6Resp: public MScsiServerResp |
247 class TScsiServerModeSense6Resp: public MScsiServerResp |
241 { |
248 { |
242 public: |
249 public: |
243 static const TUint KCommandLength = 4; |
250 |
|
251 enum |
|
252 { |
|
253 KCommandLength = 4 |
|
254 }; |
244 |
255 |
245 TScsiServerModeSense6Resp(); |
256 TScsiServerModeSense6Resp(); |
246 void SetWp(TBool aWp); |
257 void SetWp(TBool aWp); |
247 void Encode(TDes8& aBuffer) const; |
258 void Encode(TDes8& aBuffer) const; |
248 |
259 |
303 |
314 |
304 */ |
315 */ |
305 class TScsiServerReadFormatCapacitiesResp: public MScsiServerResp |
316 class TScsiServerReadFormatCapacitiesResp: public MScsiServerResp |
306 { |
317 { |
307 public: |
318 public: |
308 static const TUint KResponseLength = 12; |
319 |
|
320 enum |
|
321 { |
|
322 KResponseLength = 12 |
|
323 }; |
309 TScsiServerReadFormatCapacitiesResp(TAllocationLength aAllocationLength); |
324 TScsiServerReadFormatCapacitiesResp(TAllocationLength aAllocationLength); |
310 void SetNumberBlocks(TUint32 aNumberBlocks) {iNumberBlocks = aNumberBlocks;} |
325 void SetNumberBlocks(TUint32 aNumberBlocks) {iNumberBlocks = aNumberBlocks;} |
311 void Encode(TDes8& aBuffer) const; |
326 void Encode(TDes8& aBuffer) const; |
312 private: |
327 private: |
313 TAllocationLength iAllocationLength; |
328 TAllocationLength iAllocationLength; |
334 |
349 |
335 */ |
350 */ |
336 class TScsiServerReadCapacity10Resp: public MScsiServerResp |
351 class TScsiServerReadCapacity10Resp: public MScsiServerResp |
337 { |
352 { |
338 public: |
353 public: |
339 static const TUint KCommandLength = 8; |
354 |
|
355 enum |
|
356 { |
|
357 KCommandLength = 8 |
|
358 }; |
|
359 |
340 TScsiServerReadCapacity10Resp() {}; |
360 TScsiServerReadCapacity10Resp() {}; |
341 void Set(TUint aBlockSize, const TInt64& aNumberBlocks); |
361 void Set(TUint aBlockSize, const TInt64& aNumberBlocks); |
342 void Encode(TDes8& aBuffer) const; |
362 void Encode(TDes8& aBuffer) const; |
343 |
363 |
344 private: |
364 private: |