2 * Copyright (C) 2013 Realtek Semiconductor Corp.
5 * Unless you and Realtek execute a separate written software license
6 * agreement governing use of this software, this software is licensed
7 * to you under the terms of the GNU General Public License version 2,
8 * available at https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
11 * $Date: 2017-03-08 15:13:58 +0800 (¶g¤T, 08 ¤T¤ë 2017) $
13 * Purpose : RTL8367C switch high-level API for RTL8367C
14 * Feature : Ingress bandwidth control related functions
18 #ifndef _RTL8367C_ASICDRV_INBWCTRL_H_
19 #define _RTL8367C_ASICDRV_INBWCTRL_H_
21 #include <rtl8367c_asicdrv.h>
23 extern ret_t
rtl8367c_setAsicPortIngressBandwidth(rtk_uint32 port
, rtk_uint32 bandwidth
, rtk_uint32 preifg
, rtk_uint32 enableFC
);
24 extern ret_t
rtl8367c_getAsicPortIngressBandwidth(rtk_uint32 port
, rtk_uint32
* pBandwidth
, rtk_uint32
* pPreifg
, rtk_uint32
* pEnableFC
);
25 extern ret_t
rtl8367c_setAsicPortIngressBandwidthBypass(rtk_uint32 enabled
);
26 extern ret_t
rtl8367c_getAsicPortIngressBandwidthBypass(rtk_uint32
* pEnabled
);
29 #endif /*_RTL8367C_ASICDRV_INBWCTRL_H_*/