kernel/eka/include/d32usbcsc.inl
changeset 189 a5496987b1da
parent 0 a41df078684a
child 257 3e88ff8f41d5
equal deleted inserted replaced
177:a232af6b0b1f 189:a5496987b1da
     1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1995-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   116 
   116 
   117 
   117 
   118 
   118 
   119 /** @capability CommDD
   119 /** @capability CommDD
   120 */
   120 */
   121 inline TInt RDevUsbcScClient::Open(TInt aUnit)
   121 inline TInt RDevUsbcScClient::Open(TInt aUnit, TBool aShare)
   122 	{
   122 	{
   123 	_LIT(KUsbDevName, "usbcsc");
   123 	_LIT(KUsbDevName, "usbcsc");
   124 	return (DoCreate(KUsbDevName, VersionRequired(), aUnit, NULL, NULL, EOwnerThread));
   124 	return (DoCreate(KUsbDevName, VersionRequired(), aUnit, NULL, NULL, EOwnerThread, aShare));
       
   125 	}
       
   126 
       
   127 inline TInt RDevUsbcScClient::Open(RMessagePtr2 aMessage,TInt aParam,TOwnerType aType)
       
   128 	{
       
   129 	iEndpointStatus = 0;
       
   130 	iAltSettingSeq = 0;
       
   131 	iAlternateSetting = 0;
       
   132 	iNewAltSetting = 0;
       
   133 	return RBusLogicalChannel::Open(aMessage,aParam,aType);
   125 	}
   134 	}
   126 
   135 
   127 
   136 
   128 inline TVersion RDevUsbcScClient::VersionRequired() const
   137 inline TVersion RDevUsbcScClient::VersionRequired() const
   129 	{
   138 	{
   712 inline TInt RDevUsbcScClient::StartNextInAlternateSetting()
   721 inline TInt RDevUsbcScClient::StartNextInAlternateSetting()
   713 	{
   722 	{
   714 	return DoControl(EControlStartNextInAlternateSetting);
   723 	return DoControl(EControlStartNextInAlternateSetting);
   715 	}
   724 	}
   716 
   725 
       
   726 
       
   727 
   717 //Buffer Interface Layer (BIL) inline functions
   728 //Buffer Interface Layer (BIL) inline functions
   718 
   729 
   719 
   730 
   720 inline TInt TEndpointBuffer::GetBuffer(TUint& aOffset,TUint& aSize,TBool& aZLP,TRequestStatus& aStatus,TUint aLength)
   731 inline TInt TEndpointBuffer::GetBuffer(TUint& aOffset,TUint& aSize,TBool& aZLP,TRequestStatus& aStatus,TUint aLength)
   721 	{
   732 	{
   728 inline TInt TEndpointBuffer::GetEndpointNumber()
   739 inline TInt TEndpointBuffer::GetEndpointNumber()
   729 	{
   740 	{
   730 	return iEndpointNumber;
   741 	return iEndpointNumber;
   731 	}
   742 	}
   732 
   743 
       
   744 inline TInt TEndpointBuffer::BufferNumber()
       
   745 	{
       
   746 	return iBufferNum;
       
   747 	}
       
   748 
       
   749 
   733 #endif // #ifndef __KERNEL_MODE__
   750 #endif // #ifndef __KERNEL_MODE__
   734 
   751 
   735 #endif // #ifndef __D32USBCSC_INL__
   752 #endif // #ifndef __D32USBCSC_INL__