# qmss_qosSched.h File Reference

This is the QMSS QOS packet scheduler header file. This corresponds to the firmware qos_sched_[be|le]_bin.h. More...

`#include <ti/drv/qmss/qmss_drv.h>`

## Data Structures

struct | Qmss_QosSchedQueueCfg
| QoS scheduler queue configuration structure. More...
struct | Qmss_QosSchedGroupCfg
| QoS scheduler group configuration. More...
struct | Qmss_QosSchedPortCfg
| QoS scheduler port configuration. More...
struct | Qmss_QosSchedStats
| QoS scheduler statistics. More...

## Defines

#define | QMSS_QOS_SCHED_PDSP_NUM 1
#define | QMSS_QOS_SCHED_FULL_MAX_PHYS_PORTS 2
#define | QMSS_QOS_SCHED_LITE_MAX_PHYS_PORTS 10
#define | QMSS_QOS_SCHED_MAX_PHYS_PORTS
#define | QMSS_QOS_SCHED_FULL_MAX_LOG_GROUPS 5
#define | QMSS_QOS_SCHED_LITE_MAX_LOG_GROUPS 1
#define | QMSS_QOS_SCHED_FULL_MAX_QUEUES_PER_GROUP 8
#define | QMSS_QOS_SCHED_LITE_MAX_QUEUES_PER_GROUP 4
#define | QMSS_QOS_SCHED_STATS_FORWARDED_BYTES 1
#define | QMSS_QOS_SCHED_RETCODE_SUCCESS 1
#define | QMSS_QOS_SCHED_INVALID_COMMAND 2
#define | QMSS_QOS_SCHED_INVALID_INDEX 3
#define | QMSS_QOS_SCHED_INVALID_OPTION 4
#define | QMSS_QOS_SCHED_INVALID_PORT 100
#define | QMSS_QOS_SCHED_INVALID_GROUP 101
#define | QMSS_QOS_SCHED_INVALID_QUEUE 102
#define | QMSS_QOS_SCHED_INVALID_WRRTYPE 103
#define | QMSS_QOS_SCHED_INVALID_CIRTYPE 104
#define | QMSS_QOS_SCHED_INVALID_CONGTYPE 105
#define | QMSS_QOS_SCHED_INVALID_PORT_STATE 106
#define | QMSS_QOS_SCHED_INVALID_GROUP_STATE 107
#define | QMSS_QOS_SCHED_INVALID_CIR_MAX 108
#define | QMSS_QOS_SCHED_INVALID_PIR_MAX 109
#define | QMSS_QOS_SCHED_PACKETS_SCALE_SHIFT 20
#define | QMSS_QOS_SCHED_BYTES_SCALE_SHIFT 11

## Enumerations

enum | Qmss_QosSchedAcctType { Qmss_QosSchedAcctType_PACKETS, Qmss_QosSchedAcctType_BYTES }
| QoS scheduler accounting types. More...

## Functions

Qmss_Result | Qmss_setQosSchedQueueBase (uint32_t queueNum)
Qmss_Result | Qmss_getQosSchedQueueBase (uint32_t *queueNum)
Qmss_Result | Qmss_configureQosSchedTimer (uint32_t timerConstant)
Qmss_Result | Qmss_enableQosSchedPort (uint32_t port)
Qmss_Result | Qmss_disableQosSchedPort (uint32_t port)
Qmss_Result | Qmss_putCfgQosSchedPort (uint32_t port, Qmss_QosSchedPortCfg *cfg)
Qmss_Result | Qmss_getCfgQosSchedPort (uint32_t port, Qmss_QosSchedPortCfg *cfg)
Qmss_Result | Qmss_getQosSchedStats (Qmss_QosSchedStats *stats, uint32_t port, uint32_t group, uint32_t queue, uint32_t which_reset)
uint32_t | Qmss_getQosSchedFwVersion (void)

## Detailed Description

This is the QMSS QOS packet scheduler header file. This corresponds to the firmware qos_sched_[be|le]_bin.h.

  ============================================================================
  (C) Copyright 2012, Texas Instruments, Inc.

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.

Copyright 2012, Texas Instruments Incorporated