kernel/eka/drivers/usbcc/descriptors.cpp
changeset 273 6a75fa55495f
parent 253 d37db4dcc88d
equal deleted inserted replaced
271:dc268b18d709 273:6a75fa55495f
   601 	        "TUsbcOtgDescriptor::Construct()" );
   601 	        "TUsbcOtgDescriptor::Construct()" );
   602 	iBuf.SetMax();
   602 	iBuf.SetMax();
   603 	SetBufferPointer(iBuf);
   603 	SetBufferPointer(iBuf);
   604 	iBuf[0] = iBuf.Size();									// bLength
   604 	iBuf[0] = iBuf.Size();									// bLength
   605 	iBuf[1] = KUsbDescType_Otg;								// bDescriptorType
   605 	iBuf[1] = KUsbDescType_Otg;								// bDescriptorType
   606 	iBuf[2] = (aHnpSupport ? KUsbOtgAttr_HnpSupp : 0) |
   606   // B HNP not supported which is temporarily hard coded here. 
   607 		(aSrpSupport ? KUsbOtgAttr_SrpSupp : 0);			// bmAttributes
   607 	iBuf[2] = ( aHnpSupport ? 0 : 0 ) | ( aSrpSupport ? KUsbOtgAttr_SrpSupp : 0 );			// bmAttributes			
       
   608 	iBuf[3] = KUsbOtgDesc_bcdOTG & 0x00ff;
       
   609   iBuf[4] = ( KUsbOtgDesc_bcdOTG >> 8 ) & 0x00ff;
       
   610 		
   608 	return KErrNone;
   611 	return KErrNone;
   609     }
   612     }
   610 
   613 
   611 
   614 
   612 // --- TUsbcClassSpecificDescriptor
   615 // --- TUsbcClassSpecificDescriptor