omap3530/shared/tps65950/tps65950.cpp
changeset 51 254b9435d75e
parent 0 6663340f3fc9
equal deleted inserted replaced
48:23f868c54bc5 51:254b9435d75e
    82 
    82 
    83 static TUint8 TempWriteBuf[2];
    83 static TUint8 TempWriteBuf[2];
    84 
    84 
    85 // Spinlock to protect queue when adding or removing items
    85 // Spinlock to protect queue when adding or removing items
    86 //static TSpinLock QueueLock(TSpinLock::EOrderGenericIrqLow1+1);
    86 //static TSpinLock QueueLock(TSpinLock::EOrderGenericIrqLow1+1);
    87 static TSpinLock QueueLock();
    87 //static TSpinLock QueueLock();
    88 
    88 
    89 GLDEF_D TDfcQue*	TheDfcQue;
    89 GLDEF_D TDfcQue*	TheDfcQue;
    90 
    90 
    91 const TInt KDfcQuePriority	= 27;
    91 const TInt KDfcQuePriority	= 27;
    92 _LIT( KDriverNameDes, "tps65950" );
    92 _LIT( KDriverNameDes, "tps65950" );
    97 
    97 
    98 LOCAL_C void InternalPanic( TInt aLine )
    98 LOCAL_C void InternalPanic( TInt aLine )
    99 	{
    99 	{
   100 	Kern::Fault( "tps65950", aLine );
   100 	Kern::Fault( "tps65950", aLine );
   101 	}
   101 	}
   102 
   102 #ifdef _DEBUG
   103 LOCAL_C void PanicClient( TPS65950::TPanic aPanic )
   103 LOCAL_C void PanicClient( TPS65950::TPanic aPanic )
   104 	{
   104 	{
   105 	Kern::PanicCurrentThread( KDriverNameDes, aPanic );
   105 	Kern::PanicCurrentThread( KDriverNameDes, aPanic );
   106 	}
   106 	}
   107 
   107 #endif
   108 namespace TPS65950
   108 namespace TPS65950
   109 {
   109 {
   110 void CompletionDfcFunction( TAny* aParam );
   110 void CompletionDfcFunction( TAny* aParam );
   111 void SyncDfcFunction( TAny* aParam );
   111 void SyncDfcFunction( TAny* aParam );
   112 void DummyDfcFunction( TAny* aParam );
   112 void DummyDfcFunction( TAny* aParam );