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
10 * Purpose : RTL8367/RTL8367C switch high-level API
12 * Feature : The file includes EEE module high-layer API defination
16 #ifndef __RTK_API_EEE_H__
17 #define __RTK_API_EEE_H__
22 * EEE function initialization.
29 * RT_ERR_FAILED - Failed
30 * RT_ERR_SMI - SMI access error
32 * This API is used to initialize EEE status.
34 extern rtk_api_ret_t
rtk_eee_init(void);
37 * rtk_eee_portEnable_set
39 * Set enable status of EEE function.
42 * enable - enable EEE status.
47 * RT_ERR_FAILED - Failed
48 * RT_ERR_SMI - SMI access error
49 * RT_ERR_PORT_ID - Invalid port number.
50 * RT_ERR_ENABLE - Invalid enable input.
52 * This API can set EEE function to the specific port.
53 * The configuration of the port is as following:
57 extern rtk_api_ret_t
rtk_eee_portEnable_set(rtk_port_t port
, rtk_enable_t enable
);
60 * rtk_eee_portEnable_get
62 * Get port admin configuration of the specific port.
66 * pEnable - Back pressure status.
69 * RT_ERR_FAILED - Failed
70 * RT_ERR_SMI - SMI access error
71 * RT_ERR_PORT_ID - Invalid port number.
73 * This API can set EEE function to the specific port.
74 * The configuration of the port is as following:
78 extern rtk_api_ret_t
rtk_eee_portEnable_get(rtk_port_t port
, rtk_enable_t
*pEnable
);
81 #endif /* __RTK_API_EEE_H__ */