![]() |
![]() |
This is the Queue Manager Low Level Driver file. More...
#include <qmss_types.h>
#include <string.h>
#include <ti/drv/qmss/qmss_drv.h>
#include <ti/drv/qmss/include/qmss_pvt.h>
#include <ti/drv/qmss/include/qmss_intd.h>
#include <qmss_osal.h>
#include <ti/drv/rm/rm_public_lld.h>
This is the Queue Manager Low Level Driver file.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
uint32_t Qmss_getMemRegDescSize | ( | uint32_t | memRegion | ) |
Description
The function returns size of the descriptors in the specified memory region.
This is for *internal* LLD usage.
[in] | memRegion | Memory region number. |
Descriptor | size |
int32_t Qmss_getMemRegQueueHandle | ( | uint32_t | memRegion | ) |
Description
The function return the source queue handle on which the descriptors configured for the specified memory region are stored.
This is for *internal* LLD usage.
[in] | memRegion | Memory region number |
Success | - Queue Handle | |
Failure | - QMSS_NOT_INITIALIZED |
static Qmss_QueueHnd Qmss_internalQueueOpen | ( | Qmss_QueueType | queType, | |
int | queNum, | |||
uint8_t * | isAllocated | |||
) | [static] |
Description
Internal queue open function; is called to allocate a queue when critical section is provided by the caller.
A queue can be opened in two ways: 1) If "queNum" is set to QMSS_PARAM_NOT_SPECIFIED, then a new available queue of type "queType" is allocated. 2) If "queNum" is a valid queue number i.e., >= 0, then a queue is allocated if free else a handle to a previously opened queue is returned. In this case "queType" parameter is not used.
[in] | queType | Specifies the type of queue that should be opened. |
[in] | queNum | Specifies the queue number that should be opened. |
[out] | isAllocated | Indicates whether the requested queue is a new queue allocation(1). or was already allocated. If the queue was previously allocated this parameter returns the reference count. |
*
Success | - Queue Handle. Used as an input parameter for operation on this queue. | |
Failure | - QMSS_RESOURCE_USE_DENIED | |
Failure | - <0 |