1/* 2 * Copyright (c) 2012, 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#ifndef _ISISC_INTERFACE_CTRL_H_ 17#define _ISISC_INTERFACE_CTRL_H_ 18 19#ifdef __cplusplus 20extern "C" { 21#endif /* __cplusplus */ 22 23#include "fal/fal_interface_ctrl.h" 24 25 sw_error_t isisc_interface_ctrl_init(a_uint32_t dev_id); 26 27#ifdef IN_INTERFACECONTROL 28#define ISISC_INTERFACE_CTRL_INIT(rv, dev_id) \ 29 { \ 30 rv = isisc_interface_ctrl_init(dev_id); \ 31 SW_RTN_ON_ERROR(rv); \ 32 } 33#else 34#define ISISC_INTERFACE_CTRL_INIT(rv, dev_id) 35#endif 36 37#ifdef HSL_STANDALONG 38 39 HSL_LOCAL sw_error_t 40 isisc_port_3az_status_set(a_uint32_t dev_id, fal_port_t port_id, a_bool_t enable); 41 42 HSL_LOCAL sw_error_t 43 isisc_port_3az_status_get(a_uint32_t dev_id, fal_port_t port_id, a_bool_t * enable); 44 45 HSL_LOCAL sw_error_t 46 isisc_interface_mac_mode_set(a_uint32_t dev_id, fal_port_t port_id, fal_mac_config_t * config); 47 48 49 HSL_LOCAL sw_error_t 50 isisc_interface_mac_mode_get(a_uint32_t dev_id, fal_port_t port_id, fal_mac_config_t * config); 51 52 HSL_LOCAL sw_error_t 53 isisc_interface_phy_mode_set(a_uint32_t dev_id, a_uint32_t phy_id, fal_phy_config_t * config); 54 55 HSL_LOCAL sw_error_t 56 isisc_interface_phy_mode_get(a_uint32_t dev_id, a_uint32_t phy_id, fal_phy_config_t * config); 57 58 HSL_LOCAL sw_error_t 59 isisc_interface_fx100_ctrl_set(a_uint32_t dev_id, fal_fx100_ctrl_config_t* config); 60 61 HSL_LOCAL sw_error_t 62 isisc_interface_fx100_ctrl_get(a_uint32_t dev_id, fal_fx100_ctrl_config_t* config); 63 64 HSL_LOCAL sw_error_t 65 isisc_interface_fx100_status_get(a_uint32_t dev_id, a_uint32_t* status); 66 67 HSL_LOCAL sw_error_t 68 isisc_interface_mac06_exch_set(a_uint32_t dev_id, a_bool_t enable); 69 70 HSL_LOCAL sw_error_t 71 isisc_interface_mac06_exch_get(a_uint32_t dev_id, a_bool_t* enable); 72#endif 73 74#ifdef __cplusplus 75} 76#endif /* __cplusplus */ 77#endif /* _ISISC_INTERFACE_CTRL_H_ */ 78 79