49 const TInt KUsbcBuildVersion = KE32BuildVersionNumber; |
49 const TInt KUsbcBuildVersion = KE32BuildVersionNumber; |
50 |
50 |
51 /** Must correspond to the max enum of TRequest + 1; |
51 /** Must correspond to the max enum of TRequest + 1; |
52 currently this is ERequestOtgFeaturesNotify = 10. |
52 currently this is ERequestOtgFeaturesNotify = 10. |
53 */ |
53 */ |
54 const TInt KUsbcMaxRequests = 11; |
54 const TInt KUsbcMaxRequests = 12; |
55 |
55 |
56 // |
56 // |
57 //########################### Logical Device Driver (LDD) ############################# |
57 //########################### Logical Device Driver (LDD) ############################# |
58 // |
58 // |
59 |
59 |
295 DPlatChunkHw* ReAllocate(TInt aBuffersize, DPlatChunkHw* aHwChunk, TUint32 aCacheAttribs); |
295 DPlatChunkHw* ReAllocate(TInt aBuffersize, DPlatChunkHw* aHwChunk, TUint32 aCacheAttribs); |
296 DPlatChunkHw* Allocate(TInt aBuffersize, TUint32 aCacheAttribs); |
296 DPlatChunkHw* Allocate(TInt aBuffersize, TUint32 aCacheAttribs); |
297 void ClosePhysicalChunk(DPlatChunkHw* &aHwChunk); |
297 void ClosePhysicalChunk(DPlatChunkHw* &aHwChunk); |
298 void CancelNotifyEndpointStatus(); |
298 void CancelNotifyEndpointStatus(); |
299 void CancelNotifyOtgFeatures(); |
299 void CancelNotifyOtgFeatures(); |
|
300 void CancelNotifyChargerType(); |
300 static void StatusChangeCallback(TAny* aDLddUsbcChannel); |
301 static void StatusChangeCallback(TAny* aDLddUsbcChannel); |
301 static void EndpointStatusChangeCallback(TAny* aDLddUsbcChannel); |
302 static void EndpointStatusChangeCallback(TAny* aDLddUsbcChannel); |
302 static void OtgFeatureChangeCallback(TAny* aDLddUsbcChannel); |
303 static void OtgFeatureChangeCallback(TAny* aDLddUsbcChannel); |
|
304 static void ChargerTypeChangeCallback(TAny* aDLddUsbcChannel); |
303 static void EmergencyCompleteDfc(TAny* aDLddUsbcChannel); |
305 static void EmergencyCompleteDfc(TAny* aDLddUsbcChannel); |
304 void DeConfigure(TInt aErrorCode); |
306 void DeConfigure(TInt aErrorCode); |
305 TInt SelectAlternateSetting(TUint aAlternateSetting); |
307 TInt SelectAlternateSetting(TUint aAlternateSetting); |
306 TInt EpFromAlternateSetting(TUint aAlternateSetting, TInt aEndpoint); |
308 TInt EpFromAlternateSetting(TUint aAlternateSetting, TInt aEndpoint); |
307 TInt ProcessAlternateSetting(TUint aAlternateSetting); |
309 TInt ProcessAlternateSetting(TUint aAlternateSetting); |
331 TUsbcStatusCallback iStatusCallbackInfo; |
333 TUsbcStatusCallback iStatusCallbackInfo; |
332 TAny* iEndpointStatusChangePtr; |
334 TAny* iEndpointStatusChangePtr; |
333 TUsbcEndpointStatusCallback iEndpointStatusCallbackInfo; |
335 TUsbcEndpointStatusCallback iEndpointStatusCallbackInfo; |
334 TAny* iOtgFeatureChangePtr; |
336 TAny* iOtgFeatureChangePtr; |
335 TUsbcOtgFeatureCallback iOtgFeatureCallbackInfo; |
337 TUsbcOtgFeatureCallback iOtgFeatureCallbackInfo; |
|
338 TAny* iChargerTypeChangePtr; |
|
339 TUsbcChargerTypeCallback iChargerTypeCallbackInfo; |
336 TInt iNumberOfEndpoints; |
340 TInt iNumberOfEndpoints; |
337 RArray<DPlatChunkHw*> iHwChunksEp0; |
341 RArray<DPlatChunkHw*> iHwChunksEp0; |
338 RArray<DPlatChunkHw*> iHwChunks; |
342 RArray<DPlatChunkHw*> iHwChunks; |
339 |
343 |
340 TUsbcDeviceState iDeviceState; |
344 TUsbcDeviceState iDeviceState; |
348 TVirtualPinObject *iPinObj2; |
352 TVirtualPinObject *iPinObj2; |
349 TVirtualPinObject *iPinObj3; |
353 TVirtualPinObject *iPinObj3; |
350 TClientDataRequest<TUint> *iStatusChangeReq; |
354 TClientDataRequest<TUint> *iStatusChangeReq; |
351 TClientDataRequest<TUint> *iEndpointStatusChangeReq; |
355 TClientDataRequest<TUint> *iEndpointStatusChangeReq; |
352 TClientDataRequest<TUint> *iOtgFeatureChangeReq; |
356 TClientDataRequest<TUint> *iOtgFeatureChangeReq; |
|
357 TClientDataRequest<TUint> *iChargerTypeChangeReq; |
353 TEndpointTransferInfo iTfrInfo; |
358 TEndpointTransferInfo iTfrInfo; |
354 }; |
359 }; |
355 |
360 |
356 |
361 |
357 #include <usb/usbc.inl> |
362 #include <usb/usbc.inl> |