1/*
2 * Copyright (c) 2014, The Linux Foundation. All rights reserved.
3 * Permission to use, copy, modify, and/or distribute this software for
4 * any purpose with or without fee is hereby granted, provided that the
5 * above copyright notice and this permission notice appear in all copies.
6 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
7 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
8 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
9 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
10 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
11 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
12 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
13 */
14
15
16/**
17 * @defgroup fal_igmp FAL_IGMP
18 * @{
19 */
20#ifndef _FAL_IGMP_H_
21#define _FAL_IGMP_H_
22
23#ifdef __cplusplus
24extern "C" {
25#endif                          /* __cplusplus */
26
27#include "common/sw.h"
28#include "fal/fal_type.h"
29#include "fal/fal_multi.h"
30
31
32    sw_error_t
33    fal_port_igmps_status_set(a_uint32_t dev_id, fal_port_t port_id, a_bool_t enable);
34
35
36
37    sw_error_t
38    fal_port_igmps_status_get(a_uint32_t dev_id, fal_port_t port_id, a_bool_t *enable);
39
40
41
42    sw_error_t
43    fal_igmp_mld_cmd_set(a_uint32_t dev_id, fal_fwd_cmd_t cmd);
44
45
46
47    sw_error_t
48    fal_igmp_mld_cmd_get(a_uint32_t dev_id, fal_fwd_cmd_t * cmd);
49
50
51
52    sw_error_t
53    fal_port_igmp_mld_join_set(a_uint32_t dev_id, fal_port_t port_id, a_bool_t enable);
54
55
56
57    sw_error_t
58    fal_port_igmp_mld_join_get(a_uint32_t dev_id, fal_port_t port_id, a_bool_t * enable);
59
60
61
62    sw_error_t
63    fal_port_igmp_mld_leave_set(a_uint32_t dev_id, fal_port_t port_id, a_bool_t enable);
64
65
66
67    sw_error_t
68    fal_port_igmp_mld_leave_get(a_uint32_t dev_id, fal_port_t port_id, a_bool_t * enable);
69
70
71
72    sw_error_t
73    fal_igmp_mld_rp_set(a_uint32_t dev_id, fal_pbmp_t pts);
74
75
76
77    sw_error_t
78    fal_igmp_mld_rp_get(a_uint32_t dev_id, fal_pbmp_t * pts);
79
80
81
82    sw_error_t
83    fal_igmp_mld_entry_creat_set(a_uint32_t dev_id, a_bool_t enable);
84
85
86
87    sw_error_t
88    fal_igmp_mld_entry_creat_get(a_uint32_t dev_id, a_bool_t * enable);
89
90
91    sw_error_t
92    fal_igmp_mld_entry_static_set(a_uint32_t dev_id, a_bool_t static_en);
93
94
95    sw_error_t
96    fal_igmp_mld_entry_static_get(a_uint32_t dev_id, a_bool_t * static_en);
97
98
99    sw_error_t
100    fal_igmp_mld_entry_leaky_set(a_uint32_t dev_id, a_bool_t enable);
101
102
103    sw_error_t
104    fal_igmp_mld_entry_leaky_get(a_uint32_t dev_id, a_bool_t * enable);
105
106
107    sw_error_t
108    fal_igmp_mld_entry_v3_set(a_uint32_t dev_id, a_bool_t enable);
109
110
111    sw_error_t
112    fal_igmp_mld_entry_v3_get(a_uint32_t dev_id, a_bool_t * enable);
113
114
115    sw_error_t
116    fal_igmp_mld_entry_queue_set(a_uint32_t dev_id, a_bool_t enable, a_uint32_t queue);
117
118
119    sw_error_t
120    fal_igmp_mld_entry_queue_get(a_uint32_t dev_id, a_bool_t * enable, a_uint32_t * queue);
121
122
123    sw_error_t
124    fal_port_igmp_mld_learn_limit_set(a_uint32_t dev_id, fal_port_t port_id,
125                                      a_bool_t enable, a_uint32_t cnt);
126
127
128    sw_error_t
129    fal_port_igmp_mld_learn_limit_get(a_uint32_t dev_id, fal_port_t port_id,
130                                      a_bool_t * enable, a_uint32_t * cnt);
131
132
133    sw_error_t
134    fal_port_igmp_mld_learn_exceed_cmd_set(a_uint32_t dev_id, fal_port_t port_id,
135                                           fal_fwd_cmd_t cmd);
136
137
138    sw_error_t
139    fal_port_igmp_mld_learn_exceed_cmd_get(a_uint32_t dev_id, fal_port_t port_id,
140                                           fal_fwd_cmd_t * cmd);
141
142    sw_error_t
143    fal_igmp_sg_entry_set(a_uint32_t dev_id, fal_igmp_sg_entry_t * entry);
144
145    sw_error_t
146    fal_igmp_sg_entry_clear(a_uint32_t dev_id, fal_igmp_sg_entry_t * entry);
147
148    sw_error_t
149    fal_igmp_sg_entry_show(a_uint32_t dev_id);
150
151    sw_error_t
152    fal_igmp_sg_entry_query(a_uint32_t dev_id, fal_igmp_sg_info_t * info);
153
154#ifdef __cplusplus
155}
156#endif                          /* __cplusplus */
157#endif                          /* _FAL_IGMP_H_ */
158
159/**
160 * @}
161 */
162