|
AM64x MCU+ SDK
10.00.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)
595 typedef struct Udma_RingObject_t
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_ring.h:124
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....
uint32_t count
Definition: tisci_rm_ra.h:6
Opaque UDMA ring object.
Definition: udma_ring.h:596
uint32_t Udma_ringGetElementCnt(Udma_RingHandle ringHandle)
Returns the ring element count which is passed during ring alloc.
uint32_t mappedRingGrp
Definition: udma_ring.h:161
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.
void * Udma_RingHandle
UDMA ring handle.
Definition: udma_types.h:71
uint8_t mode
Definition: udma_ring.h:139
int32_t Udma_ringQueueRaw(Udma_RingHandle ringHandle, uint64_t phyDescMem)
UDMA queue descriptor to a ring - raw version (Takes all physical pointers)
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.
uint8_t elemSize
Definition: udma_ring.h:147
uint32_t mappedChNum
Definition: udma_ring.h:170
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...
uint32_t ringMemSize
Definition: udma_ring.h:132
uint16_t virtId
Definition: udma_ring.h:141
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.
void * Udma_DrvHandle
UDMA driver handle.
Definition: udma_types.h:65
uint8_t orderId
Definition: udma_ring.h:150
uint32_t Udma_ringGetRdIdx(Udma_RingHandle ringHandle)
Returns the ring read index value.
void * Udma_ringGetMemPtr(Udma_RingHandle ringHandle)
Returns the ring memory pointer which is passed during ring alloc.
int32_t Udma_ringAlloc(Udma_DrvHandle drvHandle, Udma_RingHandle ringHandle, uint16_t ringNum, const Udma_RingPrms *ringPrms)
UDMA ring allocation and configuration API.
uint32_t elemCnt
Definition: udma_ring.h:143
int32_t Udma_ringFree(Udma_RingHandle ringHandle)
UDMA free ring.
void * ringMem
Definition: udma_ring.h:125
uint32_t Udma_ringGetForwardRingOcc(Udma_RingHandle ringHandle)
Returns the forward ring occupancy.
uint8_t asel
Definition: udma_ring.h:153