Home | History | Annotate | Download | only in Txn

Lines Matching refs:pTxn

79 #define TXN_PARAM_GET_PRIORITY(pTxn)            ( (pTxn->uTxnParams & 0x00000003) >> 0 )
80 #define TXN_PARAM_GET_FUNC_ID(pTxn) ( (pTxn->uTxnParams & 0x0000000C) >> 2 )
81 #define TXN_PARAM_GET_DIRECTION(pTxn) ( (pTxn->uTxnParams & 0x00000010) >> 4 )
82 #define TXN_PARAM_GET_FIXED_ADDR(pTxn) ( (pTxn->uTxnParams & 0x00000020) >> 5 )
83 #define TXN_PARAM_GET_MORE(pTxn) ( (pTxn->uTxnParams & 0x00000040) >> 6 )
84 #define TXN_PARAM_GET_SINGLE_STEP(pTxn) ( (pTxn->uTxnParams & 0x00000080) >> 7 )
85 #define TXN_PARAM_GET_STATUS(pTxn) ( (pTxn->uTxnParams & 0x00000F00) >> 8 )
88 #define TXN_PARAM_SET_PRIORITY(pTxn, uValue) ( pTxn->uTxnParams = (pTxn->uTxnParams & ~0x00000003) | (uValue << 0 ) )
89 #define TXN_PARAM_SET_FUNC_ID(pTxn, uValue) ( pTxn->uTxnParams = (pTxn->uTxnParams & ~0x0000000C) | (uValue << 2 ) )
90 #define TXN_PARAM_SET_DIRECTION(pTxn, uValue) ( pTxn->uTxnParams = (pTxn->uTxnParams & ~0x00000010) | (uValue << 4 ) )
91 #define TXN_PARAM_SET_FIXED_ADDR(pTxn, uValue) ( pTxn->uTxnParams = (pTxn->uTxnParams & ~0x00000020) | (uValue << 5 ) )
92 #define TXN_PARAM_SET_MORE(pTxn, uValue) ( pTxn->uTxnParams = (pTxn->uTxnParams & ~0x00000040) | (uValue << 6 ) )
93 #define TXN_PARAM_SET_SINGLE_STEP(pTxn, uValue) ( pTxn->uTxnParams = (pTxn->uTxnParams & ~0x00000080) | (uValue << 7 ) )
94 #define TXN_PARAM_SET_STATUS(pTxn, uValue) ( pTxn->uTxnParams = (pTxn->uTxnParams & ~0x00000F00) | (uValue << 8 ) )
96 #define TXN_PARAM_SET(pTxn, uPriority, uId, uDirection, uAddr) \
97 TXN_PARAM_SET_PRIORITY(pTxn, uPriority); \
98 TXN_PARAM_SET_FUNC_ID(pTxn, uId); \
99 TXN_PARAM_SET_DIRECTION(pTxn, uDirection); \
100 TXN_PARAM_SET_FIXED_ADDR(pTxn, uAddr);
102 #define BUILD_TTxnStruct(pTxn, uAddr, pBuf, uLen, fCB, hCB) \
103 pTxn->aBuf[0] = (TI_UINT8*)(pBuf); \
104 pTxn->aLen[0] = (TI_UINT16)(uLen); \
105 pTxn->aLen[1] = 0; \
106 pTxn->uHwAddr = uAddr; \
107 pTxn->hCbHandle = (void*)hCB; \
108 pTxn->fTxnDoneCb = (void*)fCB;
115 typedef void (*TBusDrvTxnDoneCb)(TI_HANDLE hCbHandle, void *pTxn);
118 typedef void (*TTxnQueueDoneCb)(TI_HANDLE hCbHandle, void *pTxn);
121 typedef void (*TTxnDoneCb)(TI_HANDLE hCbHandle, void *pTxn);
183 ETxnStatus busDrv_Transact (TI_HANDLE hBusDrv, TTxnStruct *pTxn);