OpenNSL API Guide and Reference Manual
types.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: types.h
19  * Details: Shared data types
20  *********************************************************************/
21 #ifndef _SHR_TYPES_H_
22 #define _SHR_TYPES_H_
23 
24 #include <sal/types.h>
25 
27 
28 typedef int _shr_module_t;
29 
30 typedef int _shr_if_t;
31 
33 
34 #define _SHR_PORT_INVALID (-1)
35 
36 
37 typedef enum {
44 } _shr_color_t;
45 /* __doxy_func_body_end__ */
46 
47 typedef enum {
48  _SHR_FORWARDING_TYPE_L2 = 0, /* L2 switching forwarding. */
49  _SHR_FORWARDING_TYPE_IP4UCAST = 1, /* IPv4 Unicast Routing forwarding. */
50  _SHR_FORWARDING_TYPE_IP4MCAST = 2, /* IPv4 Multicast Routing forwarding. */
51  _SHR_FORWARDING_TYPE_IP6UCAST = 3, /* IPv6 Unicast Routing forwarding. */
52  _SHR_FORWARDING_TYPE_IP6MCAST = 4, /* IPv6 Multicast Routing forwarding. */
53  _SHR_FORWARDING_TYPE_MPLS = 5, /* MPLS Switching forwarding. */
54  _SHR_FORWARDING_TYPE_TRILL = 6, /* Trill forwarding. */
55  _SHR_FORWARDING_TYPE_RXREASON = 7, /* Forwarding according to a RxReason. */
56  _SHR_FORWARDING_TYPE_TRAFFIC_MANAGMENT = 8, /* Traffic Management forwarding, when
57  an external Packet Processor sets the
58  forwarding decision. */
59  _SHR_FORWARDING_TYPE_SNOOP = 9, /* Snooped packet. */
60  _SHR_FORWARDING_TYPE_FCoE = 10, /* Fiber Channel over Ethernet
61  forwarding. */
62  _SHR_FORWARDING_TYPE_COUNT = 11 /* Always Last. Not a usable value. */
64 /* __doxy_func_body_end__ */
65 
66 #endif /* _SHR_TYPES_H_ */