 |
AM243x MCU+ SDK
11.02.00
|
|
Go to the documentation of this file.
69 #define UDMA_RING_INVALID ((uint16_t) TISCI_MSG_VALUE_RM_NULL_RING_TYPE)
74 #define UDMA_RING_ANY ((uint16_t) 0xFFFEU)
79 #define UDMA_RING_VIRTID_INVALID ((uint16_t) 0xFFFFU)
82 #define UDMA_RING_SIZE_CHECK_SKIP (0xABDCABCDU)
87 #define UDMA_RING_ORDERID_MAX (0x0FU)
101 #define UDMA_RING_ES_4BYTES ((uint8_t) 0x00U)
103 #define UDMA_RING_ES_8BYTES ((uint8_t) 0x01U)
105 #define UDMA_RING_ES_16BYTES ((uint8_t) 0x02U)
107 #define UDMA_RING_ES_32BYTES ((uint8_t) 0x03U)
109 #define UDMA_RING_ES_64BYTES ((uint8_t) 0x04U)
111 #define UDMA_RING_ES_128BYTES ((uint8_t) 0x05U)
113 #define UDMA_RING_ES_256BYTES ((uint8_t) 0x06U)
int32_t Udma_ringDequeueRaw(Udma_RingHandle ringHandle, uint64_t *phyDescMem)
UDMA dequeue descriptor from a ring - raw version (Takes all physical pointers).
void Udma_ringPrime(Udma_RingHandle ringHandle, uint64_t phyDescMem)
UDMA prime descriptor to a exposed/"RING" mode ring - raw version (Takes all physical pointers)....
UDMA ring parameters.
Definition: udma_types.h:98
int32_t Udma_ringAttach(Udma_DrvHandle drvHandle, Udma_RingHandle ringHandle, uint16_t ringNum)
UDMA ring attach API. This API is used to attach to an already allocated and configured ring....
struct Udma_DrvObjectInt * Udma_DrvHandle
UDMA driver handle.
Definition: udma_types.h:84
uint32_t count
Definition: tisci_rm_ra.h:6
uint32_t Udma_ringGetElementCnt(Udma_RingHandle ringHandle)
Returns the ring element count which is passed during ring alloc.
uint32_t Udma_ringGetMode(Udma_RingHandle ringHandle)
Returns the ring mode which is configured during ring alloc.
uint32_t Udma_ringGetReverseRingOcc(Udma_RingHandle ringHandle)
Returns the reverse ring occupancy.
void UdmaRingPrms_init(Udma_RingPrms *ringPrms)
Udma_RingPrms structure init function.
int32_t Udma_ringQueueRaw(Udma_RingHandle ringHandle, uint64_t phyDescMem)
UDMA queue descriptor to a ring - raw version (Takes all physical pointers)
uint8_t * Udma_ringGetMemPtr(Udma_RingHandle ringHandle)
Returns the ring memory pointer which is passed during ring alloc.
int32_t Udma_ringFlushRaw(Udma_RingHandle ringHandle, uint64_t *phyDescMem)
UDMA dequeue descriptor from a ring when UDMA channel is disabled - raw version (Takes all physical p...
uint32_t Udma_ringGetWrIdx(Udma_RingHandle ringHandle)
Returns the ring write index value.
uint16_t Udma_ringGetNum(Udma_RingHandle ringHandle)
Returns the ring number allocated for this ring.
void Udma_ringSetDoorBell(Udma_RingHandle ringHandle, int32_t count)
UDMA ring API to set the doorbell in exposed/"RING" mode ring. This will commit the previously primed...
void Udma_ringPrimeRead(Udma_RingHandle ringHandle, uint64_t *phyDescMem)
UDMA read descriptor from a exposed/"RING" mode ring - raw version (Reads physical pointers)....
int32_t Udma_ringDetach(Udma_RingHandle ringHandle)
UDMA detach ring API.
uint32_t Udma_ringGetRdIdx(Udma_RingHandle ringHandle)
Returns the ring read index value.
struct Udma_RingObjectInt * Udma_RingHandle
UDMA ring handle.
Definition: udma_types.h:90
int32_t Udma_ringAlloc(Udma_DrvHandle drvHandle, Udma_RingHandle ringHandle, uint16_t ringNum, const Udma_RingPrms *ringPrms)
UDMA ring allocation and configuration API.
int32_t Udma_ringFree(Udma_RingHandle ringHandle)
UDMA free ring.
uint32_t Udma_ringGetForwardRingOcc(Udma_RingHandle ringHandle)
Returns the forward ring occupancy.