kernel/eka/include/drivers/dma_v2.inl
changeset 139 95f71bcdcdb7
parent 90 947f0dc9f7a8
equal deleted inserted replaced
109:b3a1d9898418 139:95f71bcdcdb7
    24 // TDmaChannel
    24 // TDmaChannel
    25 //
    25 //
    26 
    26 
    27 inline void TDmaChannel::Wait()
    27 inline void TDmaChannel::Wait()
    28 	{
    28 	{
    29 	__KTRACE_OPT(KDMA, Kern::Printf("TDmaChannel::Wait thread %O channel - %d",
       
    30 									&Kern::CurrentThread(), iPslId));
       
    31 	NKern::FMWait(&iLock);
    29 	NKern::FMWait(&iLock);
    32 	__KTRACE_OPT(KDMA, Kern::Printf("TDmaChannel::Wait thread %O channel - %d Acq",
       
    33 									&Kern::CurrentThread(), iPslId));
       
    34 	}
    30 	}
    35 
    31 
    36 inline void TDmaChannel::Signal()
    32 inline void TDmaChannel::Signal()
    37 	{
    33 	{
    38 	__KTRACE_OPT(KDMA, Kern::Printf("TDmaChannel::Signal thread %O channel - %d",
       
    39 									&Kern::CurrentThread(), iPslId));
       
    40 	NKern::FMSignal(&iLock);
    34 	NKern::FMSignal(&iLock);
    41 	}
    35 	}
    42 
    36 
    43 inline TBool TDmaChannel::Flash()
    37 inline TBool TDmaChannel::Flash()
    44 	{
    38 	{
    45 	__KTRACE_OPT(KDMA, Kern::Printf("TDmaChannel::Flash thread %O channel - %d",
    39 	return NKern::FMFlash(&iLock);
    46 									&Kern::CurrentThread(), iPslId));
       
    47 	const TBool r = NKern::FMFlash(&iLock);
       
    48 	__KTRACE_OPT(KDMA, Kern::Printf("TDmaChannel::Flash thread %O channel - %d Acq (%d)",
       
    49 									&Kern::CurrentThread(), iPslId, r));
       
    50 	return r;
       
    51 	}
    40 	}
    52 
    41 
    53 inline TBool TDmaChannel::IsOpened() const
    42 inline TBool TDmaChannel::IsOpened() const
    54 	{
    43 	{
    55 	__KTRACE_OPT(KDMA, Kern::Printf("Warning: TDmaChannel::IsOpened() is deprecated"));
    44 	__KTRACE_OPT(KDMA, Kern::Printf("Warning: TDmaChannel::IsOpened() is deprecated"));