I want to check with you few things to make sure I got it right ... :smileyhappy:
Let us say I want to transmit trough a FMAN port the string "0123456789". I my mind the following sequence of steps must be followed.
1. global and per thread initializations
2. allocate the "dma memory"
3. allocate space within the "dma memory" to store the desired string
4. allocate a bman buffer which "points" to the memory from point 3. I must say that this step is not very clear to me. What are the best functions to use? bman_acquire or there are others?
after point 4 one should have a frame descriptor
5. enque the frame descriptor into the tx frame queue (by invoking qman_enqueue)
there are 2 default tx queues in the device tree
6. get the result in default confirm tx if everything is OK; otherwise in the default tx error.
Is this sequence of steps the correct one?