OpenNSL API Guide and Reference Manual
switch.h
Go to the documentation of this file.
1 /*********************************************************************
2  *
3  * (C) Copyright Broadcom Corporation 2013-2016
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *********************************************************************
18  * File: switch.h
19  ********************************************************************/
20 
21 
22 #ifndef _SHR_SWITCH_H
23 #define _SHR_SWITCH_H
24 
25 #define _SHR_SWITCH_MAX_PIPES 4 /* Max number of pipes (or slices) */
26 
27 #define _SHR_SWITCH_STABLE_NONE 0 /* No storage */
28 #define _SHR_SWITCH_STABLE_DEVICE_NEXT_HOP 1 /* Use next hop table */
29 #define _SHR_SWITCH_STABLE_DEVICE_EXT_MEM 2 /* Use external TCAM/SRAM */
30 #define _SHR_SWITCH_STABLE_APPLICATION 3 /* Use application storage */
31 #define _SHR_SWITCH_STABLE_SHARED_MEM 4 /* Use Linux shmem for internal proccess NV storage */
32 
33 /*
34  * structure:
35  * _shr_temperature_monitor_t
36  * Purpose:
37  * entry type for retrieving temperature monitor value
38  *
39  */
41  int curr;
42  int peak;
44 /* __doxy_func_body_end__ */
45 
46 #endif /* !_SHR_SWITCH_H */