OpenNSL API Guide and Reference Manual
Welcome
OpenNSL Documentation
API Reference
Files
File List
Globals
include
opennsl
cosq.h
Go to the documentation of this file.
1
4
/*****************************************************************************
5
*
6
* (C) Copyright Broadcom Corporation 2013-2016
7
*
8
* Licensed under the Apache License, Version 2.0 (the "License");
9
* you may not use this file except in compliance with the License.
10
*
11
* You may obtain a copy of the License at
12
* http://www.apache.org/licenses/LICENSE-2.0
13
*
14
* Unless required by applicable law or agreed to in writing, software
15
* distributed under the License is distributed on an "AS IS" BASIS,
16
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
* See the License for the specific language governing permissions and
18
* limitations under the License.
19
*
20
***************************************************************************/
24
#ifndef __OPENNSL_COSQ_H__
25
#define __OPENNSL_COSQ_H__
26
27
#include <
opennsl/types.h
>
28
#include <
opennsl/switch.h
>
29
#include <
shared/port.h
>
30
31
#ifndef OPENNSL_HIDE_DISPATCHABLE
32
33
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
34
35
#ifndef OPENNSL_HIDE_DISPATCHABLE
36
37
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
38
39
#ifndef OPENNSL_HIDE_DISPATCHABLE
40
41
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
42
43
#ifndef OPENNSL_HIDE_DISPATCHABLE
44
45
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
46
47
#ifndef OPENNSL_HIDE_DISPATCHABLE
48
49
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
50
51
#ifndef OPENNSL_HIDE_DISPATCHABLE
52
53
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
54
55
#ifndef OPENNSL_HIDE_DISPATCHABLE
56
57
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
58
59
#ifndef OPENNSL_HIDE_DISPATCHABLE
60
61
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
62
63
#ifndef OPENNSL_HIDE_DISPATCHABLE
64
65
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
66
67
#ifndef OPENNSL_HIDE_DISPATCHABLE
68
69
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
70
71
#ifndef OPENNSL_HIDE_DISPATCHABLE
72
73
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
74
75
#ifndef OPENNSL_HIDE_DISPATCHABLE
76
77
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
78
79
#ifndef OPENNSL_HIDE_DISPATCHABLE
80
81
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
82
83
#ifndef OPENNSL_HIDE_DISPATCHABLE
84
85
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
86
87
#ifndef OPENNSL_HIDE_DISPATCHABLE
88
89
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
90
91
#ifndef OPENNSL_HIDE_DISPATCHABLE
92
93
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
94
95
#ifndef OPENNSL_HIDE_DISPATCHABLE
96
97
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
98
99
#ifndef OPENNSL_HIDE_DISPATCHABLE
100
101
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
102
103
#ifndef OPENNSL_HIDE_DISPATCHABLE
104
105
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
106
108
typedef
enum
opennsl_bst_stat_id_e
{
109
opennslBstStatIdInvalid
= -1,
112
opennslBstStatIdDevice
= 0,
113
opennslBstStatIdEgrPool
= 1,
114
opennslBstStatIdEgrMCastPool
= 2,
116
opennslBstStatIdIngPool
= 3,
117
opennslBstStatIdPortPool
= 4,
118
opennslBstStatIdPriGroupShared
= 5,
120
opennslBstStatIdPriGroupHeadroom
= 6,
122
opennslBstStatIdUcast
= 7,
123
opennslBstStatIdMcast
= 8,
124
opennslBstStatIdHeadroomPool
= 9,
126
opennslBstStatIdEgrPortPoolSharedUcast
= 10,
128
opennslBstStatIdEgrPortPoolSharedMcast
= 11,
130
opennslBstStatIdMaxCount
= 12
131
}
opennsl_bst_stat_id_t
;
132
/* __doxy_func_body_end__ */
133
134
typedef
struct
opennsl_cosq_bst_profile_s
{
135
uint32
byte
;
136
}
opennsl_cosq_bst_profile_t
;
137
/* __doxy_func_body_end__ */
138
139
#ifndef OPENNSL_HIDE_DISPATCHABLE
140
141
/***************************************************************************/
165
extern
int
opennsl_cosq_bst_profile_set
(
166
int
unit,
167
opennsl_gport_t
gport,
168
opennsl_cos_queue_t
cosq,
169
opennsl_bst_stat_id_t
bid,
170
opennsl_cosq_bst_profile_t
*profile)
LIB_DLL_EXPORTED
;
171
172
/***************************************************************************/
196
extern
int
opennsl_cosq_bst_profile_get
(
197
int
unit,
198
opennsl_gport_t
gport,
199
opennsl_cos_queue_t
cosq,
200
opennsl_bst_stat_id_t
bid,
201
opennsl_cosq_bst_profile_t
*profile)
LIB_DLL_EXPORTED
;
202
203
/***************************************************************************/
219
extern
int
opennsl_cosq_bst_stat_sync
(
220
int
unit,
221
opennsl_bst_stat_id_t
bid)
LIB_DLL_EXPORTED
;
222
223
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
224
225
#ifndef OPENNSL_HIDE_DISPATCHABLE
226
227
/***************************************************************************/
248
extern
int
opennsl_cosq_bst_stat_clear
(
249
int
unit,
250
opennsl_gport_t
gport,
251
opennsl_cos_queue_t
cosq,
252
opennsl_bst_stat_id_t
bid)
LIB_DLL_EXPORTED
;
253
254
/***************************************************************************/
278
extern
int
opennsl_cosq_bst_stat_get
(
279
int
unit,
280
opennsl_gport_t
gport,
281
opennsl_cos_queue_t
cosq,
282
opennsl_bst_stat_id_t
bid,
283
uint32
options,
284
uint64
*value)
LIB_DLL_EXPORTED
;
285
286
/***************************************************************************/
312
extern
int
opennsl_cosq_bst_stat_multi_get
(
313
int
unit,
314
opennsl_gport_t
gport,
315
opennsl_cos_queue_t
cosq,
316
uint32
options,
317
int
max_values,
318
opennsl_bst_stat_id_t
*id_list,
319
uint64
*values)
LIB_DLL_EXPORTED
;
320
321
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
322
323
#if defined(INCLUDE_TCB)
324
#endif
325
#if defined(INCLUDE_TCB)
326
#endif
327
#if defined(INCLUDE_TCB)
328
#endif
329
#include <
opennsl/cosqX.h
>
330
#endif
/* __OPENNSL_COSQ_H__ */
331
© 2016-17 by Broadcom Limited. All rights reserved.