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_mirror FAL_MIRROR
18 * @{
19 */
20#ifndef _FAL_MIRROR_H_
21#define _FAL_MIRROR_H_
22
23#ifdef __cplusplus
24extern "C" {
25#endif                          /* __cplusplus */
26
27#include "common/sw.h"
28#include "fal/fal_type.h"
29
30
31
32    sw_error_t fal_mirr_analysis_port_set(a_uint32_t dev_id, fal_port_t port_id);
33
34
35
36    sw_error_t fal_mirr_analysis_port_get(a_uint32_t dev_id, fal_port_t * port_id);
37
38
39
40    sw_error_t
41    fal_mirr_port_in_set(a_uint32_t dev_id, fal_port_t port_id,
42                         a_bool_t enable);
43
44
45
46    sw_error_t
47    fal_mirr_port_in_get(a_uint32_t dev_id, fal_port_t port_id,
48                         a_bool_t * enable);
49
50
51
52    sw_error_t
53    fal_mirr_port_eg_set(a_uint32_t dev_id, fal_port_t port_id,
54                         a_bool_t enable);
55
56
57
58    sw_error_t
59    fal_mirr_port_eg_get(a_uint32_t dev_id, fal_port_t port_id,
60                         a_bool_t * enable);
61
62
63#ifdef __cplusplus
64}
65#endif                          /* __cplusplus */
66#endif                          /* _PORT_MIRROR_H_ */
67/**
68 * @}
69 */
70