1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2018-2022 Marvell International Ltd.
5 * Functions for AGL (RGMII) commong initialization, configuration.
12 * @param port to enable
14 * @return Zero on success, negative on failure
16 int cvmx_agl_enable(int port);
18 cvmx_helper_link_info_t cvmx_agl_link_get(int port);
21 * Set MII/RGMII link based on mode.
23 * @param port interface port to set the link.
24 * @param link_info Link status
26 * @return 0 on success and 1 on failure
28 int cvmx_agl_link_set(int port, cvmx_helper_link_info_t link_info);
31 * Disables the sending of flow control (pause) frames on the specified
32 * AGL (RGMII) port(s).
34 * @param interface Which interface (0 or 1)
35 * @param port_mask Mask (4bits) of which ports on the interface to disable
37 * 1 => disable backpressure
38 * 0 => enable backpressure
40 * @return 0 on success
43 int cvmx_agl_set_backpressure_override(u32 interface, uint32_t port_mask);
45 #endif /* __CVMX_AGL_H__ */